# Kysely

12 Hacker News commenters recommended Kysely and 1 criticized it, November 2025 to November 2026. It was recommended in 6 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** People recommend Kysely for type-safe query building with rich TypeScript support while keeping close to raw SQL. One critic says complicated queries fall apart.

## Why people recommend it

- Strong TypeScript type safety (4 comments): "The composability, type safety, and overall architecture fit our use case surprisingly well." ([source](https://news.ycombinator.com/item?id=48265460)) "more in-depth, type-safe, expressive, 1:1 and doesn't require importing as many things" ([source](https://news.ycombinator.com/item?id=48249804)) "composability and incredibly rich typescript support" ([source](https://news.ycombinator.com/item?id=45816504))
- Composable queries stay maintainable (3 comments): "The composability, type safety, and overall architecture fit our use case surprisingly well." ([source](https://news.ycombinator.com/item?id=48265460)) "Allows you to compose some complex stuff but keep it maintainable af." ([source](https://news.ycombinator.com/item?id=48248240)) "composability and incredibly rich typescript support" ([source](https://news.ycombinator.com/item?id=45816504))
- Thin, lightweight abstraction over SQL (3 comments): "more in-depth, type-safe, expressive, 1:1 and doesn't require importing as many things" ([source](https://news.ycombinator.com/item?id=48249804)) "I like writing SQL or using a lightweight builder like Kysely" ([source](https://news.ycombinator.com/item?id=47110978)) "thinner abstraction with less risk of being acquired" ([source](https://news.ycombinator.com/item?id=47245745))

## What people warn about

- Moves queries away from raw SQL (1 comments): "Drizzle/Kysely fix this by moving the query into TypeScript, but then you're not really writing SQL anymore" ([source](https://news.ycombinator.com/item?id=48645393))

## Alternatives hackers recommend

- [sqlc](https://hackerapproved.com/p/sqlc.md): 20 recommend
- [Ecto (Elixir)](https://hackerapproved.com/p/ecto.md): 17 recommend
- [sqlx](https://hackerapproved.com/p/sqlx.md): 13 recommend
- [jOOQ](https://hackerapproved.com/p/jooq.md): 13 recommend
- [Jdbi](https://hackerapproved.com/p/jdbi.md): 6 recommend

## Cite as

Hacker Approved, "Kysely", https://hackerapproved.com/p/kysely/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
