TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: TypeScript ORM with Access Control

2 pointsby carlualalmost 2 years ago
ZenStack is built on top of Primsa ORM, extending it with an access control layer that simplifies the development of a web app&#x27;s backend. By defining authorization policies and validation rules right inside the data schema, database client can automatically enforce these constraints at runtime bringing the following benefits:<p>- Centralized access control for better security and maintainability<p>- Less code to be written<p>The core of ZenStack is a transparent proxy around Prisma client which enforces access policies while keeping the APIs unchanged. It allows building the backend of new projects faster with minimal TS&#x2F;JS code, and can also be easily adopted into existing projects.<p>Some other benefits it provides:<p>- Automatic CRUD APIs - RESTful, tRPC<p>- Generating client-side data access libraries (aka hooks) - SWR, TanStack Query<p>- A plugin system for 3rd party extension<p>Finally, ZenStack is not opinionated toward any stack or framework, allowing integration with the entire JavaScript and TypeScript ecosystem.<p>GitHub: https:&#x2F;&#x2F;github.com&#x2F;zenstackhq&#x2F;zenstack<p>Website: https:&#x2F;&#x2F;zenstack.dev

1 comment

carlualalmost 2 years ago
To save your effort copy&#x2F;paste the link, here is the clickable link for the project:<p>GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;zenstackhq&#x2F;zenstack">https:&#x2F;&#x2F;github.com&#x2F;zenstackhq&#x2F;zenstack</a><p>Website: <a href="https:&#x2F;&#x2F;zenstack.dev&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;zenstack.dev&#x2F;</a>