Hacker ApprovedDepartments

pg-typesafe

Shares rank 7 of 8 SQL query builders by recommenders

Recommended for typed PostgreSQL queries in TypeScript that catch misspelled column names, an improvement on pgtyped. Critics say dynamic queries and composability are hard.

Recommended for typed PostgreSQL queries in TypeScript that catch misspelled column names, an improvement on pgtyped. Critics say dynamic queries and composability are hard.

6 people gave an opinion

recommend it
5
criticize it
1
approval share
83%
Each figure is one person. RecommendsCriticizes

Recommended in 1 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: recommended
  5. March 2026: not recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: not 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 doesn’t carry the badge

  • 5 people recommend itNeeds 10 or more, not met.
  • 5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 1 of 13 monthsNeeds 4 or more, not 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

  • Seen as cool, worth trying

    “Seems very cool, if it works”

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

    “Very cool! I'll try it out!”

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

What people warn about

Each mark is one comment

  • Hard to handle dynamic queries

    “I haven’t found a good way to handle dynamic queries in pg-typesafe yet.”

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

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.

pg-typesafe compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
sqlc20483%9—Approved
Ecto (Elixir)17577%8—Approved
sqlx13476%8—Approved
jOOQ13381%6—Approved
pg-typesafeThis page5183%1——
See all 8 SQL query builders, ranked

What people said

7 of the 8 comments that mention it, newest first. Each links to the original comment.

“Very cool! I'll try it out!”

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

“The lack of composability makes this a hard no for me”

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

“you won’t cause problems when spelling the column names”

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

“I haven’t found a good way to handle dynamic queries in pg-typesafe yet.”

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

“This looks like a nice improvement on pgtyped, and another good option.”

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

“Seems very cool, if it works”

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

“writing SQL directly is more convenient”

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

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