Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience real numbers from our own analytics — open to see them
–Visitors
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · counted by iTechGuides's own first-party analytics, bots removed, every figure rounded down · how we count

Sumak review

Free#33 of 51 in Database Query Builders

A free, open-source query builder for TypeScript teams that need compiled SQL and introspection.

5.7/10Editor score
Sumak5.7 Visit Sumak

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Sumak is a free, open-source TypeScript SQL query builder for teams that want a chainable way to define tables and construct database queries. Its static type checking covers common operations, including SELECT, INSERT, UPDATE, and DELETE. The project also supports joins, subqueries, common table expressions, transactions, and schema tools, making it relevant to small and mid-market TypeScript teams building applications around relational databases.

Its AST-based compiler generates SQL for PostgreSQL, MySQL, SQLite, and Microsoft SQL Server. Developers can compile queries without a database driver, while supplying a driver enables optional asynchronous execution. Reusable compiled queries use parameter placeholders; raw SQL tagged templates and unsafe expressions provide escape hatches when the builder does not express a needed query. Plugin and hook APIs can transform queries and results. This combination suits teams that want typed construction alongside control over generated SQL, though raw expressions require care outside the guarantees of the typed builder.

Schema DDL generation and database introspection extend Sumak beyond query construction, and the MIT license makes it an option for teams seeking open-source tooling. Its fit is strongest for TypeScript codebases that value static typing, compiled queries, and schema inspection across its supported dialects. Teams looking for a database-independent, multi-language query layer should consider alternatives, as Sumak is specifically a TypeScript project. Those needing asynchronous database access should also account for providing a driver; without one, the described workflow generates SQL rather than executing queries.

Sumak pros and cons

  • Where it wins
    • Build type-checked queries for common SQL operations
    • Compile SQL for PostgreSQL, MySQL, SQLite, and MSSQL
    • Generate schema DDL and introspect databases
  • Where it doesn't
    • Asynchronous execution requires a supplied database driver
    • Raw SQL escape hatches allow expressions outside the typed builder
    • Focused on TypeScript rather than multiple programming languages

Sumak fact sheet, pricing and score →

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. How we rank.

Last updated · How we research and update