# Knex.js

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


Source: https://findsoftware.frbit.cloud/knex/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://knexjs.org/
- repository: https://github.com/knex/knex
- docs: https://knexjs.org/guide/
- plugins: https://github.com/knex/knex/blob/master/ECOSYSTEM.md

### Identity

- status: active
- maintainer: Tim Griesser
- maintainerType: unknown
- parent: unknown
- firstRelease: 2013
- hqCountry: unknown

### Kind

- category: library
- hosting: node
- language: javascript
- runtime: node
- runtimeMin: node 16
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: postgres, mariadb, mysql, sqlserver, sqlite, oracle
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm install knex --save

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 3
- latestReleaseDate: 2026-06-26

### Adoption

- githubStargazers: 20337
- packagistDownloads: not applicable
- npmWeeklyDownloads: 6786967
- contributors: 432
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 94868
- dependentPackages: 3407

### Sources

- urls: https://knexjs.org/ (read 2026-11-16)
- urls: https://api.github.com/repos/knex/knex (read 2026-11-16)
- urls: https://knexjs.org/guide/ (read 2026-11-16)
- maintainer: https://github.com/knex/knex/blob/master/LICENSE (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/knex (read 2026-11-16)
- category: https://knexjs.org/ (read 2026-11-16)
- language: https://api.github.com/repos/knex/knex (read 2026-11-16)
- runtime: https://github.com/knex/knex/blob/master/README.md (read 2026-11-16)
- runtimeMin: https://github.com/knex/knex/blob/3.3.0/package.json (read 2026-11-16)
- databases: https://github.com/knex/knex/blob/master/README.md (read 2026-11-16)
- installMethod: https://knexjs.org/guide/ (read 2026-11-16)
- urls: https://github.com/knex/knex/blob/master/README.md (read 2026-11-16)
- license: https://api.github.com/repos/knex/knex (read 2026-11-16)
- licenseModel: https://github.com/knex/knex/blob/master/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/knex/knex/releases/latest (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/knex/knex/releases/latest (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/knex/knex (read 2026-11-16)
- contributors: https://api.github.com/repos/knex/knex/contributors?per_page=1 (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/knex (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/knex (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/knex (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
