#4040th of 102 in Backends, databases and hosting

kysely

Type-safe SQL query builder for TypeScript with autocompletion

Stars
14.3k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
TypeScript
Stars, last 29 weeks+751
21 Apr 2026: 13,597 stars28 Apr 2026: 13,643 stars5 May 2026: 13,670 stars12 May 2026: 13,695 stars19 May 2026: 13,734 stars26 May 2026: 13,788 stars2 Jun 2026: 13,834 stars9 Jun 2026: 13,867 stars16 Jun 2026: 13,894 stars23 Jun 2026: 13,913 stars30 Jun 2026: 13,934 stars7 Jul 2026: 13,962 stars14 Jul 2026: 13,994 stars21 Jul 2026: 14,015 stars28 Jul 2026: 14,032 stars4 Aug 2026: 14,053 stars11 Aug 2026: 14,071 stars18 Aug 2026: 14,095 stars25 Aug 2026: 14,130 stars1 Sept 2026: 14,154 stars8 Sept 2026: 14,175 stars15 Sept 2026: 14,196 stars22 Sept 2026: 14,213 stars29 Sept 2026: 14,223 stars6 Oct 2026: 14,242 stars13 Oct 2026: 14,258 stars20 Oct 2026: 14,282 stars27 Oct 2026: 14,304 stars3 Nov 2026: 14,327 stars10 Nov 2026: 14,348 stars

13,597 on 21 Apr 202614,348 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Kysely is a TypeScript SQL query builder inspired by Knex.js. It checks table and column references at compile time and infers result row types, including aliases, subqueries and `with` statements. It targets Node.js and also runs on Deno, Bun, Cloudflare Workers and browsers. It is not an AI project, so it fits this list only loosely.

Who it is for: TypeScript developers who want typed SQL without an ORM

Strengths

  • Result types contain only selected columns, with aliases inferred from the query
  • Dialects for PostgreSQL, MySQL, MSSQL, SQLite and PGlite
  • Runs on Node.js, Deno, Bun, Cloudflare Workers and browsers
  • `sql` template tag and DynamicModule cover queries that cannot be typed statically

Weaknesses

  • Query builder only: no auth, storage or API layer, and no AI features
  • Table types must be declared or generated, for example with kysely-codegen
  • Not an ORM, so no relation mapping or model layer

What it needs

  • no GPU
  • Compose
  • Needs PostgreSQL, MySQL, MSSQL, SQLite or PGlite database

Quick answers

Is kysely open source?

Yes. Its code is on GitHub under the MIT license.

Can you run kysely with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Also in Backends, databases and hosting

See all 102
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.7k starscustom license93 out of 100
2strapiHeadless CMS that generates REST and GraphQL APIs from content models Live demo ↗ (opens in a new tab)73.5k stars+245 (+0.3%) in 30 dayscustom license92 out of 100
3traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.5k stars+446 (+0.7%) in 30 daysMIT92 out of 100
#4appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58k stars+463 (+0.8%) in 30 daysBSD-3-Clause92 out of 100
#5medusaNode.js commerce platform with modular products, carts, orders and payments37.2k starscustom license92 out of 100