
Knex.js
SQL query builder for JavaScript that runs on Node.js and builds queries for several SQL databases.
knexjs.org/repositorydocsplugins
Knex.js is a SQL query builder for JavaScript that runs on Node.js. A program writes queries as JavaScript calls, and the library turns them into SQL for the database it is configured with, across the SQL databases it supports.
Worth knowing
The installation guide describes a browser build made with a bundler, which is limited to the constraints of WebSQL. It says that composing SQL in the browser for execution on the server is highly discouraged because it can cause serious security vulnerabilities, and that browser builds outside WebSQL are meant for learning.
Identity
Rendering and deploy
- Install with
- npm install knex --save3
Releases
Adoption
Sources
- 2026-11-16: links, Categories
knexjs.org/ - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/knex/knex - 2026-11-16: links, Install with
knexjs.org/guide/ - 2026-11-16: Maintainer, License model
github.com/knex/knex/blob/master/LICENSE - 2026-11-16: First release
registry.npmjs.org/knex - 2026-11-16: Runtime, Databases, links
github.com/knex/knex/blob/master/README.md - 2026-11-16: Minimum runtime
github.com/knex/knex/blob/3.3.0/package.json - 2026-11-16: Current major version, Last release
api.github.com/repos/knex/knex/releases/latest - 2026-11-16: Contributors
api.github.com/repos/knex/knex/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/knex - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/knex