Squel.js is a library for building SQL query strings.
Squel.js is lightweight and works with Node.js or in the browser. The library is well-tested and supports the default methods, such as SELECT, INSERT, DELETE and others.
While Squel.js is great client-side, you shouldn’t use the library for browser-side query management, as it massively increases your chances of being hacked.