Skip to content

Kysely

Kysely is an open source, type-safe SQL query builder for TypeScript, released under the MIT license. It is a query builder, not a full ORM: it checks queries against your database types and compiles them to SQL. It supports PostgreSQL, MySQL, MS SQL Server, SQLite and PGlite.

By Sami Koskimäki and Kysely contributorsOpen sourceORM

Facts checked on against the sources listed at the end of this page.

Pricing
Open sourceFree plan: Yes. Kysely is free and open source.
Open source
YesMIT
GitHub stars
14,354+78 in the last 30 days
npm downloads a week
30Mup 4% on the week before
Latest release
v0.28.204 days ago
Releases in 90 days
7about 2 a month

A good fit for

  • TypeScript projects that want type-checked SQL without an ORM
  • Developers who know SQL and want queries to stay close to it
  • Apps that run on edge runtimes or Bun and Deno
  • Teams that want a small dependency footprint

Not a good fit for

  • Teams that want a full ORM with models and relations: Kysely is a query builder
  • Projects that want a schema and model layer generated for them
  • Developers who do not want to write SQL-shaped queries

Kysely pricing

Kysely is free and open source under the MIT license. There are no paid plans.

Prices in USD, checked on 6 October 2026. Current prices on kysely.dev.

Main features

Type-safe queries
Autocomplete and compile-time errors based on your database schema.
Composable queries
Reusable query fragments and subqueries.
Close to SQL
Queries compile to the SQL they describe.
Zero runtime dependencies
Nothing else is installed with it.
Multiple dialects
PostgreSQL, MySQL, MS SQL Server, SQLite and PGlite, plus community plugins.
Many runtimes
Node.js, Deno, Bun, Workers and browsers.

About Kysely

Kysely lets you write SQL queries in TypeScript with autocomplete and compile-time checks based on your database schema. The site describes its approach as what you see is what you get: the query you write maps closely to the SQL that runs.

It has no runtime dependencies and runs on Node.js, Deno, Bun, Workers and in browsers. PostgreSQL, MySQL, MS SQL Server, SQLite and PGlite are supported natively, and community plugins cover other databases.

Kysely is a query builder, not an ORM. It does not define models or relations the way a full ORM does. The site says it is used in production by Mozilla, Bluesky, Materialize, Cal.com and 40+ other companies.

Made by
Sami Koskimäki and Kysely contributors
Free plan
Yes. Kysely is free and open source.
Available on
Node.js, Deno, Bun, Cloudflare Workers, Browsers

Usage and activity

Weekly npm downloads of kysely, last 12 months.

010M20M30M40MOctDecFebAprJunAugNov18 October 2025: 1,203,673 downloads a week25 October 2025: 1,271,091 downloads a week1 November 2025: 1,251,986 downloads a week8 November 2025: 1,308,377 downloads a week15 November 2025: 1,309,931 downloads a week22 November 2025: 1,401,828 downloads a week29 November 2025: 1,331,598 downloads a week6 December 2025: 1,583,557 downloads a week13 December 2025: 1,605,587 downloads a week20 December 2025: 1,612,767 downloads a week27 December 2025: 1,048,520 downloads a week3 January 2026: 1,046,574 downloads a week10 January 2026: 1,785,676 downloads a week17 January 2026: 1,938,531 downloads a week24 January 2026: 2,128,046 downloads a week31 January 2026: 2,350,804 downloads a week7 February 2026: 2,494,859 downloads a week14 February 2026: 2,564,089 downloads a week21 February 2026: 2,557,383 downloads a week28 February 2026: 2,870,463 downloads a week7 March 2026: 3,007,452 downloads a week14 March 2026: 3,232,022 downloads a week21 March 2026: 3,432,445 downloads a week28 March 2026: 3,601,834 downloads a week4 April 2026: 3,748,516 downloads a week11 April 2026: 3,829,307 downloads a week18 April 2026: 3,948,205 downloads a week25 April 2026: 4,121,916 downloads a week2 May 2026: 4,283,089 downloads a week9 May 2026: 4,749,600 downloads a week16 May 2026: 5,639,714 downloads a week23 May 2026: 6,173,237 downloads a week30 May 2026: 6,290,051 downloads a week6 June 2026: 7,616,829 downloads a week13 June 2026: 9,253,249 downloads a week20 June 2026: 9,208,020 downloads a week27 June 2026: 9,189,582 downloads a week4 July 2026: 8,943,255 downloads a week11 July 2026: 10,493,499 downloads a week18 July 2026: 11,591,557 downloads a week25 July 2026: 12,314,924 downloads a week1 August 2026: 13,072,807 downloads a week8 August 2026: 12,694,487 downloads a week15 August 2026: 13,705,580 downloads a week22 August 2026: 13,250,036 downloads a week29 August 2026: 16,307,029 downloads a week5 September 2026: 18,553,134 downloads a week27 September 2026: 19,256,674 downloads a week4 October 2026: 22,957,595 downloads a week31 October 2026: 27,198,328 downloads a week7 November 2026: 29,144,397 downloads a week14 November 2026: 30,431,839 downloads a week

Recent releases

Kysely alternatives

All 6 alternatives to Kysely, side by side

Questions about Kysely

Is Kysely an ORM?

No. Kysely is a type-safe SQL query builder. It does not provide models or relations like a full ORM.

Is Kysely open source?

Yes. It is released under the MIT license.

Which databases does Kysely support?

PostgreSQL, MySQL, MS SQL Server, SQLite and PGlite natively. Community plugins cover other databases.

How do I install Kysely?

Install the kysely package from npm.

Who maintains Kysely?

The site credits Sami Koskimäki and Kysely contributors.

Sources and links

Work on Kysely? Claim this listing. Something wrong or out of date? Suggest a correction. Stats come from the public GitHub and npm APIs and update every day.

Kysely: pricing, features and alternatives (2026) | ScratchDB