# Knex.js — card for AI agents

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

Category: Databases, ORMs and clients · npm package `knex` · latest version 3.3.0 (checked 2026-11-01)
Install: `npm install knex`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 60.7 (#974 of all tools, 29 of 120 in its category)
- Used in 7 public projects set up for AI coding agents (0.1%)
- Downloads last week: 7,260,732 (as of 2026-11-24), +30.4% over 4 weeks
- GitHub stars: 20,336 (as of 2026-11-24)
- Last push: 2026-06-26

## Often used with
pg 73.7%, dotenv 68.4%, Express 47.4%, better-sqlite3 42.1%, concurrently 36.8%, ts-node 36.8%

## Checked alternatives (same job)
- Drizzle ORM: https://agentgid.com/tools/drizzle-orm/agent.md
- Prisma: https://agentgid.com/tools/prisma/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/knex/
- Homepage: https://knexjs.org/
- Repository: https://github.com/knex/knex

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
