kysely
npmv0.29.5Type safe SQL query builder
Safe to adopt
Yes — kysely scores well across adoption, maintenance, weight, supply chain, and licensing. 16.3M downloads per week and 1 known dependents. Last published 31 days ago. 29 releases in the last 2 years.
- AAdoption: grade A, Excellent.
16.3M downloads per week and 1 known dependents.
- AMaintenance: grade A, Excellent.
Last published 31 days ago. 29 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 1.6 MB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding kysely to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=22.0.0
- Module format
- ESM + CommonJS
- TypeScript
- No bundled types
- Install scripts
- None
kysely vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| kyselythis page | 16.3M | 1 | MIT | 1 month ago |
| knex | 0 | 1 | MIT | 5 days ago |
| drizzle-orm | 20.3M | 0 | Apache-2.0 | 6 days ago |
| sql-escaper | 4.9M | 1 | MIT | 5 days ago |
| postgres | 0 | 1 | Unlicense | 5 days ago |
| named-placeholders | 0 | 1 | MIT | 5 days ago |
Dependencies
Declared by kysely v0.29.5. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (35)
Used by
Popular packages that depend on kysely.
Relationship graph
Dependencies (left) and dependents (right) of kysely.
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
libSQL driver for TypeScript and JavaScript
Public API for OpenTelemetry
Fastest SQLite for React Native (with node.js support)
Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.
The fastest and simplest library for SQLite in Node.js.
TypeScript definitions for better-sqlite3
A Fetch API-compatible PlanetScale database driver
AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native
TypeScript typings for Cloudflare Workers
Release history
29 releases in the last two years, typically about 11 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.29.5latest | 1 month ago | 1.6 MB | MIT |
| 0.30.0-beta.1 | 1 month ago | 1.7 MB | MIT |
| 0.30.0-beta.0 | 1 month ago | 1.7 MB | MIT |
| 0.29.4 | 1 month ago | 1.6 MB | MIT |
| 0.29.3 | 2 months ago | 1.6 MB | MIT |
| 0.29.2 | 3 months ago | 1.6 MB | MIT |
| 0.29.1 | 3 months ago | 1.6 MB | MIT |
| 0.29.0 | 4 months ago | 1.6 MB | MIT |
| 0.28.17 | 4 months ago | 3.1 MB | MIT |
| 0.29.0-rc.0 | 4 months ago | 1.6 MB | MIT |
| 0.28.16 | 5 months ago | 3.1 MB | MIT |
| 0.28.15 | 5 months ago | 3.1 MB | MIT |
| 0.28.14 | 5 months ago | 3.1 MB | MIT |
| 0.28.13 | 5 months ago | 3.1 MB | MIT |
| 0.28.12 | 6 months ago | 3.1 MB | MIT |
Overview
kysely is an npm package that type safe SQL query builder. It is extremely widely used, with about 16.3M downloads per week and 1 known dependents in the graph. The latest version is 0.29.5, 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 (16.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.
Maintainers
Frequently asked questions
Should I use kysely?
Yes — kysely scores well across adoption, maintenance, weight, supply chain, and licensing. 16.3M downloads per week and 1 known dependents. Last published 31 days ago. 29 releases in the last 2 years.
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 16,307,029 downloads per week and 1 known dependent packages.
Is kysely still maintained?
The most recent release of kysely (v0.29.5) was published 1 month ago.
Does kysely run install scripts?
No. kysely does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.