zenstackhq/zenstack
Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 5.5
- age_days: 1441
- days_rel: 10
- days_push: 9
- n_releases_24m: 87
Adoption not part of the score
2930 stars · 150 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ZenStack is a TypeScript data layer toolkit providing a schema-first, type-safe ORM with a Prisma-compatible API built on Kysely, plus built-in access control defined directly in the schema. It can automatically generate CRUD web APIs, Zod schemas, OpenAPI specs, and TanStack Query hooks from a single data model.
Use cases
- replace Prisma with a pure TypeScript ORM
- enforce row-level access control in a TypeScript app
- auto-generate CRUD APIs from a data model
- generate Zod validation schemas from database models
- build a multi-tenant SaaS with permissions
- generate typed TanStack Query hooks for the frontend
- model polymorphic data with inheritance in an ORM
When to choose
- you want a Prisma-compatible ORM without Rust/WASM dependencies
- you need authorization policies colocated with your data model
- you're building a full-stack TypeScript app with Next.js or similar
- you want automatic secured CRUD APIs with framework adapters
When to avoid
- you need a mature ORM with a very large ecosystem and long track record
- your project depends on Prisma-specific generators or features not in ZModel
- you prefer raw SQL-first workflows over schema-first modeling
Facets
library · maturity active
orm authorization api-framework serialization web-framework web-development backend databases developer-tools cross-platform prisma-compatible kysely row-level-security schema-first zod openapi tanstack-query nextjs crud-api rbac nodejs typescript web-server
10 sources
- readme: https://github.com/zenstackhq/zenstack · fetched 2026-08-28 · 133086513440
- homepage: https://zenstack.dev · fetched 2026-08-29 · 5bbce89e0e1f
- site_page: https://zenstack.dev/docs · fetched 2026-08-29 · bc076e3cbbf2
- site_page: https://zenstack.dev/docs/modeling · fetched 2026-08-29 · cfdc75f511fe
- site_page: https://zenstack.dev/docs/orm · fetched 2026-08-29 · 2ac3bcf78496
- site_page: https://zenstack.dev/docs/orm/polymorphism · fetched 2026-08-29 · 5ac7e9bc6582
- site_page: https://zenstack.dev/docs/orm/access-control · fetched 2026-08-29 · 4128354f9c32
- site_page: https://zenstack.dev/docs/service · fetched 2026-08-29 · 746e707ba8f8
- site_page: https://zenstack.dev/docs/service/server-adapter · fetched 2026-08-29 · c6e3cfb95db4
- site_page: https://zenstack.dev/docs/service/client-sdk/tanstack-query · fetched 2026-08-29 · 9d3becee290f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| zenstackhq/zenstack | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="zenstackhq/zenstack")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem