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,306
npm downloads a week
23Mup 16% on the week before
Latest release
v0.28.181 week ago
Releases in 90 days
4about 1 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.

010M20M30MSepNovJanMarMayJulOct24 September 2025: 1,140,446 downloads a week1 October 2025: 1,191,835 downloads a week8 October 2025: 1,180,151 downloads a week15 October 2025: 1,187,523 downloads a week22 October 2025: 1,251,920 downloads a week29 October 2025: 1,261,836 downloads a week5 November 2025: 1,279,072 downloads a week12 November 2025: 1,295,804 downloads a week19 November 2025: 1,374,175 downloads a week26 November 2025: 1,430,831 downloads a week3 December 2025: 1,392,937 downloads a week10 December 2025: 1,639,149 downloads a week17 December 2025: 1,610,059 downloads a week24 December 2025: 1,356,031 downloads a week31 December 2025: 969,701 downloads a week7 January 2026: 1,424,453 downloads a week14 January 2026: 1,898,241 downloads a week21 January 2026: 2,034,499 downloads a week28 January 2026: 2,294,360 downloads a week4 February 2026: 2,418,917 downloads a week11 February 2026: 2,544,599 downloads a week18 February 2026: 2,503,323 downloads a week25 February 2026: 2,795,936 downloads a week4 March 2026: 2,916,801 downloads a week11 March 2026: 3,187,352 downloads a week18 March 2026: 3,341,962 downloads a week25 March 2026: 3,494,486 downloads a week1 April 2026: 3,775,427 downloads a week8 April 2026: 3,678,383 downloads a week15 April 2026: 3,949,020 downloads a week22 April 2026: 4,060,627 downloads a week29 April 2026: 4,355,908 downloads a week6 May 2026: 4,302,394 downloads a week13 May 2026: 5,296,869 downloads a week20 May 2026: 6,127,945 downloads a week27 May 2026: 5,962,725 downloads a week3 June 2026: 6,918,561 downloads a week10 June 2026: 9,043,024 downloads a week17 June 2026: 8,829,046 downloads a week24 June 2026: 9,552,433 downloads a week1 July 2026: 8,824,563 downloads a week8 July 2026: 9,917,794 downloads a week22 July 2026: 11,699,291 downloads a week29 July 2026: 12,704,468 downloads a week5 August 2026: 13,547,667 downloads a week12 August 2026: 12,862,035 downloads a week26 August 2026: 15,060,599 downloads a week2 September 2026: 17,573,578 downloads a week28 September 2026: 19,965,782 downloads a week5 October 2026: 23,245,776 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