Knex.js

SQL query builder for Javascript

Also known as
knex-js

What is Knex.js?

SQL query builder for JavaScript with support for multiple database backends including PostgreSQL, MySQL, SQLite3, Oracle, and others. Features include promise-based async, transactions, connection pooling, and schema building.

Independently observed

What Knex.js does

The capabilities that matter for orm & database tools, normalised so it lines up with every alternative. “-” means we haven't confirmed it, not that it's missing.

Core
Type-safe queries
-
Schema migrations
-
Relations / joins API
-
Languages
JavaScript
Modelling
Schema-first modelling
-
Flexibility
Raw SQL escape hatch
-
Portability
Multiple database backends
Ops
Connection pooling
DX
Data browser / studio
-
Independently observed

Knex.js alternatives

Other orm & database tools we track, ranked by the same independent score.

Independent · unbought · dated

The Vioscale score: one lens on the evidence

Not user reviews and not a paid placement: a confidence-weighted blend of the independent signals below (adoption, activity, security posture, and more), which you can sort and re-weight yourself. Vendors can correct their listing but can never move their rank, and stars are weighted low as a vanity metric. It is one way to read the evidence for Knex.js, not the verdict.

Balanced composite 77 / 100
low · 30%
Signal contributions to the composite score
SignalScoreWeightContributionEvidence
Package Downloads8726.002264.7
Release Cadence9810.00977.8
Capabilities4616.00733.1
Github Stars815.00406.4
Integrations08.000.0-
Github Activity018.000.0-
Security Posture013.000.0-
Stackoverflow Activity012.000.0-

Computed . Re-weight it by intent, or see the full method.

All data & sourcesshow ↓

Every value we hold, with its source, retrieval date, and confidence. This is the evidence behind the score: don't trust it, verify it.

Adoption

AttributeValueEvidence
Github stars20,339highsource · 2026-08-03 · 90%
Package downloads weekly5,081,217highsource · 2026-08-03 · 85%

Features

AttributeValueEvidence
Capabilities{"multi_db":true,"languages":"JavaScript","connection_pooling":true}mediumsource · 2026-08-03 · 60%

Language

AttributeValueEvidence
PrimaryJavaScripthighsource · 2026-08-03 · 90%

License

AttributeValueEvidence
SpdxMIThighsource · 2026-08-03 · 99%

Release

AttributeValueEvidence
Cadence days4mediumsource · 2026-08-03 · 70%