kysely-org/kysely
Fork: 413 Star: 13909 (更新于 2026-06-03 11:49:58)
license: MIT
Language: TypeScript .
最后发布版本: v0.29.2 ( 2026-05-16 23:52:03)
A type-safe TypeScript SQL query builder
Join the discussion ⠀⠀⠀⠀⠀⠀⠀
Get started
Kysely
Kysely (pronounce “Key-Seh-Lee”) is a type-safe and autocompletion-friendly TypeScript SQL query builder. Inspired by Knex.js. Mainly developed for Node.js but also runs on all other JavaScript environments like Deno, Bun, Cloudflare Workers and web browsers.

Kysely makes sure you only refer to tables and columns that are visible to the part of the query you're writing. The result type only has the selected columns with correct types and aliases. As an added bonus you get autocompletion for all that stuff.
As shown in the gif above, through the pure magic of modern TypeScript, Kysely is even able to parse
the alias given to pet.name and add the pet_name column to the result row type. Kysely is able to infer
column names, aliases and types from selected subqueries, joined subqueries, with statements and pretty
much anything you can think of.
Of course there are cases where things cannot be typed at compile time, and Kysely offers escape hatches for these situations. See the sql template tag and the DynamicModule for more info.
All API documentation is written in the typing files and you can simply hover over the module, class or method you're using to see it in your IDE. The same documentation is also hosted here.
If you start using Kysely and can't find something you'd want to use, please open an issue or join our Discord server.
Getting started
Please visit our documentation site kysely.dev to get started. We also have a comprehensive API documentation hosted here, but you can access the same documentation in your IDE by hovering over a class/method/property/whatever.
Core team
Project leads
Responsible for project direction, API design, maintenance, code reviews, community support, documentation, and working on some of the most impactful/challenging things.
Sami Koskimäki (the author) |
Igal Klebanov (the dynamo) |
Honorable mentions
People who had special impact on the project and its growth.
Fernando Hurtado (1st docs) |
Wirekang (playground) |
Tim Griesser (Knex) |
Robin Blomberg (codegen) |
Shoubhit Dash (prisma idea) |
Valtýr Örn Kjartansson (prisma impl) |
Dax Raad (early adopter) |
Theo Browne (early promoter) |
Lee Robinson (early promoter) |
Ethan Resnick (timely feedback) |
Harminder Virk (dope writeup) |
Johan Eliasson (promoter/educator) |
All contributors
Want to contribute? Check out our contribution guidelines.
最近版本更新:(数据更新于 2026-06-07 11:07:30)
2026-05-16 23:52:03 v0.29.2
2026-05-16 08:01:27 v0.29.1
2026-05-09 07:54:19 v0.29.0
2026-05-03 09:10:50 v0.28.17
2026-04-25 04:13:08 v0.29.0-rc.0
2026-04-11 02:07:40 v0.28.16
2026-03-31 09:49:35 v0.28.15
2026-03-20 19:28:01 v0.28.14
2026-03-19 06:12:57 v0.28.13
2026-03-14 17:13:30 v0.28.12
主题(topics):
typescript nodejs postgresql database sqlite mysql browser sql mssql bun deno query-builder type-safe microsoft-sql-server
kysely-org/kysely同语言 TypeScript最近更新仓库
2026-06-11 22:56:45 n8n-io/n8n
2026-06-11 19:30:30 cline/cline
2026-06-11 16:50:20 jetkvm/kvm
2026-06-11 15:50:46 QwenLM/qwen-code
2026-06-11 13:04:35 abhigyanpatwari/GitNexus
2026-06-11 12:09:58 refactoringhq/tolaria