productdevbook / sumak
PublicType-safe SQL query builder. Zero dependencies, AST-first, hookable, tree-shakeable. Pure TypeScript.
Sumak is a TypeScript library that lets you build type-safe SQL queries for PostgreSQL, MySQL, SQLite, and SQL Server with automatic type checking and dialect-aware SQL generation.
How It Works
You hear about sumak while searching for a simple way to talk to your database without making mistakes.
You bring sumak into your work with a quick, easy step.
You list out your data tables and their fields in plain terms.
You create a search or update command using friendly guides that catch errors before they happen.
You connect multiple tables or add sorting and limits just as easily.
You preview the exact database instructions it creates, perfect every time.
Your app now chats with the database confidently, with types ensuring no surprises.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.