kysely-org/kysely
kysely-org/kysely has 14,349 GitHub stars and 458 forks. GitHot measured +1 stars in 24 hours and +15 in 7 days. Last checked 2026-11-12 08:18 UTC. Last push 2026-11-04.
一个类型安全的 TypeScript SQL 查询构建器
实测星标增长
- 24小时
- +1
- 7天
- +15
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,830 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,395 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,473 星标