Kysely

Kysely

Type-safe SQL query builder for TypeScript

About Kysely

Kysely is a type safe SQL query builder for TypeScript. Its homepage describes mature, predictable SQL with precise types and says it runs on Node, Deno, Bun, Workers and browsers. It states version 0.29.9, an MIT licence, availability since 2021, more than 20 million weekly npm downloads, more than 14,000 GitHub stars, zero runtime dependencies and over 150 contributors. The pitch is that non-existent tables, misspelled columns and mistyped values show up as you type, as agents code and as the schema evolves. The site offers a playground, API docs, and llms.txt files with the documentation for AI agents. It lists production users such as Notesnook, Teable and Uniswap, grouped by public proof. Kysely is a query builder, not a full ORM, so it suits developers who want to write SQL shaped queries with strong typing instead of a model layer. It is free and has no paid plans.

Key Features

  • Type safe query building
  • Runs on Node, Deno, Bun, Workers and browsers
  • Zero runtime dependencies
  • Playground and API docs

Pros & Cons

What we like

  • MIT licence
  • Close to plain SQL
  • Wide runtime support
  • Docs available for AI agents

Room for improvement

  • Query builder, not a full ORM
  • No built-in model layer
  • Download and star counts are the vendor's figures
  • Schema types need setup

Frequently Asked Questions

What is Kysely?
Kysely is a type safe SQL query builder for TypeScript.
Is Kysely free?
Yes, the site states an MIT licence and lists no paid plans.
Who is Kysely best for?
Developers who want SQL shaped queries with strong typing instead of an ORM.

Best For

Typed SQL in TypeScript appsEdge runtime database accessComplex joins with type checksAgent assisted database code

Featured in

Alternatives to Kysely

Reviews (0)

No reviews yet

Be the first to share your experience with Kysely

Sign in to write a review

Badge builder

Add Kysely to your website

Choose a badge style and size, preview it here, then copy the generated HTML. Badge images are self-contained SVGs and do not require an external script.

Kysely badge preview
<a href="https://toolindex.net/tools/kysely?ref=badge" target="_blank" rel="noopener">
  <img src="https://toolindex.net/badge/kysely/medium.svg" alt="Kysely - Listed on Tool Index" width="180" height="50" />
</a>

How to use the badge

  1. 1. Pick the style, size, and theme that fit your layout.
  2. 2. Copy the generated HTML from the code block.
  3. 3. Paste it into your footer, homepage, or press page.

Standard badge available

The standard listing badge is available now. Score and circle badges are limited to tools currently ranked in the top 10 of a category.

Badge clicks return visitors to this profile with a referral tag so the source remains identifiable.