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: ZenStack V2 – RLS alternative with declarative Auth rules in Prisma

14 pointsby carlualabout 1 year ago
Half a year ago, we posed a Show HN about ZenStack V1 as &quot;DSL to define data and access rules closer to the database&quot;<p>Throughout the month, we&#x27;ve attracted quite a few early adopters. Some of them, such as MermaidChart, have successfully launched into production. After talking with them, we realized that many individuals found ZenStack while seeking a cleaner and easier alternative to RLS.<p>As a result, we pivot ourselves to be a “TypeScript toolkit on top of Prisma ORM with a fine-grained Authorization layer, auto-generated type-safe APIs, and frontend hooks”.<p>In V2, besides the more flexible Access Control Policy support for RBAC&#x2F;ABAC&#x2F;PBAC&#x2F;ReBAC, here are some other major features we released:<p>- Polymorphic Relations<p>- Edge support<p>- Using auth() in @default()<p>- Fine-grained Optimistic Updates<p>- Prisma-Like Schema Formatting<p>Features may be easy to forget, but stories remain. If you&#x27;re curious about the stories behind these features and what we have learned, check out the blog post below:<p><a href="https:&#x2F;&#x2F;zenstack.dev&#x2F;blog&#x2F;v2-stories" rel="nofollow">https:&#x2F;&#x2F;zenstack.dev&#x2F;blog&#x2F;v2-stories</a><p>We would love to hear your opinion on the new position. What we missed? What is your unresolved pain point? <a href="https:&#x2F;&#x2F;github.com&#x2F;zenstackhq&#x2F;zenstack">https:&#x2F;&#x2F;github.com&#x2F;zenstackhq&#x2F;zenstack</a>

1 comment

nahtnamabout 1 year ago
Been using the betas for my side projects and I’m loving it. So much easier to read, write, and test compared to RLS with postgres&#x2F;supabase
评论 #40206600 未加载