kysely
npmv0.29.4Type safe SQL query builder
Overview
kysely is an npm package that type safe SQL query builder. It is extremely widely used, with about 10.3M downloads per week and 1 known dependents in the graph. The latest version is 0.29.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need type safe SQL query builder and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (10.3M weekly downloads).
- Clear open-source license (MIT).
Cons
- Large dependency tree (35 direct dependencies) increases install size and audit surface.
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of kysely.
Dependencies
Dev (35)
Used by
Popular packages that depend on kysely.
Alternatives to kysely
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
Drizzle ORM package for SQL databases
🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).
sql named placeholders to unnamed compiler
Fastest full featured PostgreSQL client for Node.js
PostgreSQL client - pure javascript & libpq with the same API
Module for reading .pgpass
AWS RDS SSL certificates bundles.
The fastest and simplest library for SQLite in Node.js.
Asynchronous, non-blocking SQLite3 bindings
Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 3.7mb gzipped.
Frequently installed together
TypeScript definitions for pg
PostgreSQL client - pure javascript & libpq with the same API
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Fastest full featured PostgreSQL client for Node.js
Type definitions and documentation for Bun, an incredibly fast JavaScript runtime
The fastest and simplest library for SQLite in Node.js.
TypeScript typings for Cloudflare Workers
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
TypeScript definitions for better-sqlite3
Asynchronous, non-blocking SQLite3 bindings
libSQL driver for TypeScript and JavaScript
The official Node.js client library for Gel
Version history
| Version | Published | License |
|---|---|---|
| 0.29.4latest | 1 day ago | MIT |
| 0.29.3 | 13 days ago | MIT |
| 0.29.2 | 2 months ago | MIT |
| 0.29.1 | 2 months ago | MIT |
| 0.29.0 | 2 months ago | MIT |
| 0.28.17 | 2 months ago | MIT |
| 0.29.0-rc.0 | 2 months ago | MIT |
| 0.28.16 | 3 months ago | MIT |
| 0.28.15 | 3 months ago | MIT |
| 0.28.14 | 4 months ago | MIT |
| 0.28.13 | 4 months ago | MIT |
| 0.28.12 | 4 months ago | MIT |
| 0.28.11 | 5 months ago | MIT |
| 0.28.10 | 6 months ago | MIT |
| 0.28.9 | 7 months ago | MIT |
| 0.28.8 | 9 months ago | MIT |
| 0.28.7 | 10 months ago | MIT |
| 0.28.6 | 10 months ago | MIT |
| 0.28.5 | 11 months ago | MIT |
| 0.28.4 | 11 months ago | MIT |
Maintainers
Frequently asked questions
How do I install kysely?
Run `npm install kysely` to add kysely to your npm project.
What license is kysely released under?
kysely is distributed under the MIT license.
How popular is kysely?
kysely has approximately 10,340,260 downloads per week and 1 known dependent packages.