by ymc9 on 7/10/23, 11:26 AM with 7 comments
ZenStack is built on top of Primsa ORM, extending it with a powerful access control layer that simplifies the development of a web app's backend. By defining authorization policies and validation rules right inside the data schema, your database client can automatically enforce these constraints at runtime.
Why we built this:
Based on our experience developing several commercial SaaS products, we have observed that a significant portion of code is wrapping around the database and providing an access-controlled CRUD API. These boring boilerplate codes are both tedious to write and error-prone to maintain because it is scattered within the codebase.
Utilizing our previous experience with DSL, we created ZenStack to bring the below clear benefits:
- Centralized access control for better security and maintainability
- Less code to be written
The core of ZenStack is a transparent proxy around Prisma client which enforces access policies while keeping the APIs unchanged. It allows you to build the backend of new projects faster with minimal TS/JS code, and can also be easily adopted into existing projects.Some other benefits you can also enjoy:
- Automatic CRUD APIs - RESTful, tRPC
- Generating client-side data access libraries (aka hooks) - SWR, TanStack Query
- A plugin system for 3rd party extension
Finally, ZenStack is not opinionated toward any stack or framework, allowing seamless integration with the entire JavaScript and TypeScript ecosystem.We are still in the early stages and greatly value your feedback and insights as we strive to build the best DX toolkit for developers.
Website: https://zenstack.dev/
Github: https://github.com/zenstackhq/zenstack
Discord: https://go.zenstack.dev/chat
by elementg on 7/10/23, 1:02 PM
by p2hari on 7/11/23, 3:19 AM
by AlokNandan on 7/10/23, 4:24 PM
q: how are you different from convex.dev?