Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Knex.js

SQL query and schema builder for Postgres, MySQL, SQLite and more.

Databases, ORMs and clientsNPM

GitHubWebsite

1. License

License from npm.

github.com/knex/knex

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Knex.js does

SQL query and schema builder for Postgres, MySQL, SQLite and more.

Knex.js popularity

61 / 100
Gid Score, #974 overall
7.3M
downloads a week, npm
20.3K
GitHub stars
7
agent projects use it
Knex.js: downloads per weeknpm, knex 7,260,732
Knex.js: GitHub starsknex/knex 20,336

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Knex.js is used

  • Knex.js joined the catalog on its public numbers (7,260,732 downloads a week on npm and 20,336 GitHub stars), not on our project count: it is a dependency in 19 public GitHub projects of our scan, 7 of them set up for AI coding agents.
  • The most used alternative in our scan is Drizzle ORM (253 projects).
  • Projects that use it most often also use pg (73.7%), dotenv (68.4%), Express (47.4%).

Often used with

In 73.7% of its projects
In 68.4% of its projects
In 47.4% of its projects
In 42.1% of its projects
In 36.8% of its projects
In 36.8% of its projects
In 31.6% of its projects
In 31.6% of its projects

More about Knex.js

More in Databases, ORMs and clients

Alternatives

Knex.js This page

MITGid 617.3M/wk

Drizzle ORM

TypeScript ORM for SQL databases with type safety and zero-runtime overhead.

Apache-2.0Gid 8649.6M/wk

Prisma

Modern ORM with intuitive schema, migrations, and type-safe database queries.

Apache-2.0Gid 6426M/wk

Compare Knex.js with another tool

Get started

Install it.

npm install knex

No step-by-step start for Knex.js yet: we have not written its hand-checked card.