Next.js is evolving fast to become an increasingly appealing choice for building full-stack web apps. However, coding up the backend part of an app, especially implementing CRUD services efficiently and securely, is still tricky (and boring ๐ too).
ZenStack is a toolkit that simplifies the construction of CRUD services with a schema-first approach. It offers a modeling language for defining data models, relations, and access policies and then generates RESTful CRUD services (with authorization) and React hooks for you. It also allows you to share types between client and server-side coding and achieve end-to-end type safety without pain.
Our goal is to let you save time writing boilerplate code and focus on building what matters - the user experience.
If it feels relevant, please also check out the excellent detailed tutorial by @jiasheng for how to use it in action:
, or find more details directly at Github:
zenstackhq
/
zenstack
Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services
What's ZenStack
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:
- ๐ง Modern schema-first ORM that's compatible with Prisma's schema and API
- ๐ Versatile API - high-level ORM queries + low-level Kysely query builder
- ๐ Built-in access control and data validation
- ๐ Advanced data modeling patterns like polymorphism
- ๐งฉ Designed for extensibility and flexibility
- โ๏ธ Automatic CRUD web APIs with adapters for popular frameworks
- ๐๏ธ Automatic TanStack Query hooks for easy CRUD from the frontend
- ๐ Zod schema generation
What's New in V3
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โฆ
Also, join us on discord for chat and the latest updates!
Have fun!
Top comments (0)