</>PackageGraphPackageGraph

kysely

npmv0.29.5

Type 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

1.6 MB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
kyselythis page16.3M1MIT1 month ago
knex01MIT5 days ago
drizzle-orm20.3M0Apache-2.06 days ago
sql-escaper4.9M1MIT5 days ago
postgres01Unlicense5 days ago
named-placeholders01MIT5 days ago

Dependencies

Declared by kysely v0.29.5. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (35)

@arethetypeswrong/cli 0.18.5@electric-sql/pglite 0.5.4@types/better-sqlite3 9.6.0@types/chai 5.2.3@types/chai-as-promised 8.0.2@types/mocha 10.0.10@types/node 26.2.0@types/pg 8.21.0@types/pg-cursor 2.7.2@types/prototype-pollution-vulnerable-lodash.merge-dont-upgrade npm:@types/lodash.merge@4.6.1@types/semver 7.8.0@types/sinon 22.0.0better-sqlite3 13.0.3chai 6.2.2chai-as-promised 8.0.2esbuild 0.28.2jsr 0.14.3mocha 11.8.0mysql2 3.23.2pathe 2.0.3pg 8.23.0pg-cursor 2.22.0playwright 1.62.1prettier 3.9.6prototype-pollution-vulnerable-lodash.merge-dont-upgrade npm:lodash.merge@4.6.1remeda 2.39.0semver 7.8.5sinon 22.1.0std-env 4.2.0tarn 3.1.2tedious 20.0.0tsd 0.33.0tsx 4.23.11typescript 7.0.2typescript-6 npm:typescript@6.0.3

Used by

Popular packages that depend on kysely.

Relationship graph

Dependencies (left) and dependents (right) of kysely.

drizzle-ormkysely
kysely dependencies dependents

Frequently installed together

Release history

29 releases in the last two years, typically about 11 days apart.

Recent versions of kysely
VersionPublishedSizeLicense
0.29.5latest1 month ago1.6 MBMIT
0.30.0-beta.11 month ago1.7 MBMIT
0.30.0-beta.01 month ago1.7 MBMIT
0.29.41 month ago1.6 MBMIT
0.29.32 months ago1.6 MBMIT
0.29.23 months ago1.6 MBMIT
0.29.13 months ago1.6 MBMIT
0.29.04 months ago1.6 MBMIT
0.28.174 months ago3.1 MBMIT
0.29.0-rc.04 months ago1.6 MBMIT
0.28.165 months ago3.1 MBMIT
0.28.155 months ago3.1 MBMIT
0.28.145 months ago3.1 MBMIT
0.28.135 months ago3.1 MBMIT
0.28.126 months ago3.1 MBMIT

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

Keywords

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.