Hacker ApprovedDepartments

Kysely

Hacker Approved

Ranked 5 of 8 SQL query builders by recommenders

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.

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.

13 people gave an opinion

recommend it
12
criticize it
1
approval share
92%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: not recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 12 people recommend itNeeds 10 or more, met.
  • 12 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 6 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Strong TypeScript type safety

    “The composability, type safety, and overall architecture fit our use case surprisingly well.”

    Comment from 25 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

    “more in-depth, type-safe, expressive, 1:1 and doesn't require importing as many things”

    Comment from 23 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

    “composability and incredibly rich typescript support”

    Comment from 4 Nov 2025 in “Why we migrated from Python to Node.js”
  • Composable queries stay maintainable

    “The composability, type safety, and overall architecture fit our use case surprisingly well.”

    Comment from 25 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

    “Allows you to compose some complex stuff but keep it maintainable af.”

    Comment from 23 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

    “composability and incredibly rich typescript support”

    Comment from 4 Nov 2025 in “Why we migrated from Python to Node.js”
  • Thin, lightweight abstraction over SQL

    “more in-depth, type-safe, expressive, 1:1 and doesn't require importing as many things”

    Comment from 23 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

    “I like writing SQL or using a lightweight builder like Kysely”

    Comment from 22 Feb 2026 in “Postgres Is Your Friend. ORM Is Not”

    “thinner abstraction with less risk of being acquired”

    Comment from 4 Mar 2026 in “Drizzle Joins PlanetScale”

What people warn about

Each mark is one comment

  • Moves queries away from raw SQL

    “Drizzle/Kysely fix this by moving the query into TypeScript, but then you're not really writing SQL anymore”

    Comment from 23 Jun 2026 in “Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM”

Other SQL query builders people recommend

The four most recommended other SQL query builders, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Kysely compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
sqlc20483%9—Approved
Ecto (Elixir)17577%8—Approved
sqlx13476%8—Approved
jOOQ13381%6—Approved
KyselyThis page12192%6—Approved
See all 8 SQL query builders, ranked

What people said

14 of the 18 comments that mention it, newest first. Each links to the original comment.

“Drizzle/Kysely fix this by moving the query into TypeScript, but then you're not really writing SQL anymore”

MixedComment from 23 Jun 2026 in “Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM”

“The composability, type safety, and overall architecture fit our use case surprisingly well.”

RecommendsComment from 25 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

“more in-depth, type-safe, expressive, 1:1 and doesn't require importing as many things”

MixedComment from 23 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

“Allows you to compose some complex stuff but keep it maintainable af.”

RecommendsComment from 23 May 2026 in “Kysely (the type-safe SQL query builder for TypeScript) v0.29 is out btw”

“I would have used Kysely instead of just raw porsager”

RecommendsComment from 13 Mar 2026 in “Vite 8.0 Is Out”

“thinner abstraction with less risk of being acquired”

RecommendsComment from 4 Mar 2026 in “Drizzle Joins PlanetScale”

“I've heard good things about kysely.”

RecommendsComment from 27 Feb 2026 in “What Claude Code Chooses”

“I like Kysely more than Drizzle”

RecommendsComment from 27 Feb 2026 in “What Claude Code Chooses”

“I like writing SQL or using a lightweight builder like Kysely”

RecommendsComment from 22 Feb 2026 in “Postgres Is Your Friend. ORM Is Not”

“for more complicated queries it all falls apart”

CriticizesComment from 17 Feb 2026 in “Show HN: Pg-typesafe – Strongly typed queries for PostgreSQL and TypeScript”

“Kysely for type-safe query building”

RecommendsComment from 8 Dec 2025 in “Show HN: Cloudflare D1 and Kysely toolkit”

“it mostly doesn't need to due to Kysely migration files and the database type definition being enough”

RecommendsComment from 1 Dec 2025 in “Writing a good Claude.md”

“composability and incredibly rich typescript support”

RecommendsComment from 4 Nov 2025 in “Why we migrated from Python to Node.js”

“its a match made in heaven”

RecommendsComment from 3 Nov 2025 in “Why we migrated from Python to Node.js”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.