FindSoftware

Knex.js

SQL query builder for JavaScript that runs on Node.js and builds queries for several SQL databases.

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

Status
Active
Maintainer
Tim Griesser4
First release
20135

Rendering and deploy

Install with
npm install knex --save3

Releases

Current major version
38
Last release
2026-06-268

Adoption

GitHub stars
20,3372
npm downloads a week
6,786,96710
Contributors
4329
Dependent repositories
94,86811
Dependent packages
3,40711

Why these figures do not compare

Sources

  1. 2026-11-16: links, Categories
    knexjs.org/
  2. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/knex/knex
  3. 2026-11-16: links, Install with
    knexjs.org/guide/
  4. 2026-11-16: Maintainer, License model
    github.com/knex/knex/blob/master/LICENSE
  5. 2026-11-16: First release
    registry.npmjs.org/knex
  6. 2026-11-16: Runtime, Databases, links
    github.com/knex/knex/blob/master/README.md
  7. 2026-11-16: Minimum runtime
    github.com/knex/knex/blob/3.3.0/package.json
  8. 2026-11-16: Current major version, Last release
    api.github.com/repos/knex/knex/releases/latest
  9. 2026-11-16: Contributors
    api.github.com/repos/knex/knex/contributors?per_page=1
  10. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/knex
  11. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/knex

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON