Skip to main content

Modern Data Layer for TypeScript Applications

Intuitive data modeling, type-safe ORM, built-in access control, automatic query services, and more.

Coherent Schema

Coherent Schema

Simple schema language to capture the most important aspects of your application in one place: data and security.

Powerful ORM

Powerful ORM

One-of-a-kind ORM that combines type-safety, query flexibility, and access control in one package.

Limitless Utility

Limitless Utility

Deriving crucial artifacts that streamline development from backend APIs to frontend components.

Intuitive and Expressive Data Modeling

  • ✅ Define data models and relations
  • ✅ Define access control policies
  • ✅ Express data validation rules
  • ✅ Model polymorphic inheritance
  • ✅ Add custom attributes and functions to introduce custom semantics
  • ✅ Implement custom code generators
The schema language is a superset of Prisma Schema Language. Migrating a Prisma schema is as simple as file renaming.

Flexible and Awesomely Typed ORM

  • 🔋 High-level ORM query API
  • 🔋 Low-level SQL query builder API
  • 🔋 Access control enforcement coming soon
  • 🔋 Runtime data validation coming soon
  • 🔋 Computed fields and custom procedures
  • 🔋 Plugin system for tapping into various lifecycle events
ZenStack's ORM is built on top of the awesome Kysely SQL query builder. Its query API is compatible with that of Prisma Client, so migrating an existing Prisma project will require minimal code changes.

Automatic HTTP Query Service
coming soon

  • 🚀 Fully mirrors the ORM API
  • 🚀 Seamlessly integrates with popular frameworks
  • 🚀 Works with any authentication solution
  • 🚀 Type-safe client SDK powered by TanStack Query
  • 🚀 Highly customizable

Since the ORM is protected with access control, ZenStack can directly map it to an HTTP service. ZenStack provides out-of-the-box integrations with popular frameworks including Next.js, Nuxt, Express, etc.

Client hooks based on TanStack Query can also be derived from the schema, allowing you to make type-safe queries to the service without writing a single line of code.

Perfect Match for AI-Assisted Programming

Single Source of Truth

Single Source of Truth

When LLMs see a self-contained, non-ambiguous, and well-defined application model, their inference works more efficiently and effectively.

Concise Query API

Concise Query API

Concise and expressive, while leveraging existing knowledge of Prisma and Kysely, the query API makes it easy for LLMs to generate high-quality query code.

Slim Code Base

Slim Code Base

By deriving artifacts from the schema instead of implementing them, ZenStack helps you maintain a slim code base that is easier for AI to digest.