Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services
2,939
stars
2,103
commits
TypeScript
primary language
Sep 10, 2026
updated
Read full documentation at 👉🏻 https://zenstack.dev/docs.
ZenStack is a TypeScript database toolkit for developing full-stack or backend Node.js/Bun applications. It provides a unified data modeling and query solution with the following features:
ZenStack V3 is a major rewrite. It replaced Prisma ORM with its own ORM engine built on top of Kysely while keeping a Prisma-compatible query API. This architecture change brings the level of flexibility that we couldn't imagine in previous versions. Please check this blog post for why we made this bold decision.
Even without using advanced features, ZenStack offers the following benefits as a drop-in replacement to Prisma:
Use the following command to scaffold a simple TypeScript command line application with ZenStack configured:
npm create zenstack@latest my-project
Or, if you have an existing project, use the CLI to initialize it:
npx @zenstackhq/cli@latest init
Alternatively, you can set it up manually:
npm install -D @zenstackhq/cli
npm install @zenstackhq/schema @zenstackhq/orm
Then create a zenstack folder and a schema.zmodel file in it.
Thank you for your generous support!
Join our discord server for chat and updates!
Thanks to all the contributors who have helped make ZenStack better!
(top 30 of 79)
TypeScript
99.8%
Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services
2,939
stars
2,103
commits
TypeScript
primary language
Sep 10, 2026
updated
Read full documentation at 👉🏻 https://zenstack.dev/docs.
ZenStack is a TypeScript database toolkit for developing full-stack or backend Node.js/Bun applications. It provides a unified data modeling and query solution with the following features:
ZenStack V3 is a major rewrite. It replaced Prisma ORM with its own ORM engine built on top of Kysely while keeping a Prisma-compatible query API. This architecture change brings the level of flexibility that we couldn't imagine in previous versions. Please check this blog post for why we made this bold decision.
Even without using advanced features, ZenStack offers the following benefits as a drop-in replacement to Prisma:
Use the following command to scaffold a simple TypeScript command line application with ZenStack configured:
npm create zenstack@latest my-project
Or, if you have an existing project, use the CLI to initialize it:
npx @zenstackhq/cli@latest init
Alternatively, you can set it up manually:
npm install -D @zenstackhq/cli
npm install @zenstackhq/schema @zenstackhq/orm
Then create a zenstack folder and a schema.zmodel file in it.
Thank you for your generous support!
Join our discord server for chat and updates!
Thanks to all the contributors who have helped make ZenStack better!
(top 30 of 79)
TypeScript
99.8%