{"repo":"bikeshaving/ZenDB","free":true,"listed":false,"github":"https://github.com/bikeshaving/ZenDB","clone":"git clone https://github.com/bikeshaving/ZenDB.git","description":"Define Zod tables. Write raw SQL. Get typed objects.","language":"TypeScript","stars":23,"topics":["mysql","postgresql","sql","sqlite","typescript","zod"],"license":"MIT","category":"databases-storage","readme_excerpt":"ZenDB Define Zod tables. Write raw SQL. Get typed objects. Website · GitHub · npm Installation Quick Start Why ZenDB? Zen is the missing link between SQL and typed data. By writing tables with Zod schema, you get idempotent migration helpers, typed CRUD, normalized object references, and many features other database clients cannot provide. What Zen is not: - Zen is not a query builder — Rather than building SQL with fluent chains .where().orderBy().limit() , you write it directly with templates: db.all(Posts) WHERE published = ${true} ORDER BY created at DESC LIMIT 20 Helper functions help you write the tedious parts of SQL without hiding it or limiting your queries. - Zen is not an ORM — Tables are not classes. They are Zod-powered singletons which provide schema-aware utilities. These tables can be used to validate writes, generate DDL, and deduplicate joined data. - Zen is not a startup — Zen is an open-source library, not a venture-backed SaaS. There will never be a managed “ZenDB” instance or a “Zen Studio.” The library is a thin wrapper around Zod and JavaScript SQL drivers, with a focus on runtime abstractions rather than complicated tooling. Safety - No lazy loading — Related data comes from your JOINs - No ORM identity map — Normalization is per-query, not session-wide - No down migrations — Forward-only versioning (1 → 2 → 3) - No destructive helpers — No dropColumn() , dropTable() , renameColumn() - No automatic migrations — Schema changes are explicit in upgrade e","default_branch":null,"files":null,"tree":[],"storefront":"/r/bikeshaving","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bikeshaving/ZenDB/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}