nowfound

Dev tools · April 29, 2024

ZV

ZenStack V2 – RLS alternative with declarative Auth rules in Prisma

Half a year ago, we posed a Show HN about ZenStack V1 as "DSL to define data and access rules closer to the database" Throughout the month, we'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. 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”. In V2, besides the more…

In plain words

ZenStack V2 is a TypeScript toolkit built on Prisma ORM that provides fine-grained authorization rules, auto-generated type-safe APIs, and frontend hooks. It allows developers to define access control policies declaratively within their schema, supporting multiple authorization patterns like RBAC, ABAC, PBAC, and ReBAC. The tool targets developers seeking an alternative to traditional row-level security, with features including polymorphic relations, edge support, and optimistic updates, making authorization management simpler and more maintainable.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

Half a year ago, we posed a Show HN about ZenStack V1 as "DSL to define data and access rules closer to the database" Throughout the month, we'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. 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”. In V2, besides the more flexible Access Control Policy support for RBAC/ABAC/PBAC/ReBAC, here are some other major features we released: - Polymorphic Relations - Edge support - Using auth() in @default() - Fine-grained Optimistic Updates - Prisma-Like Schema Formatting Features may be easy to forget, but stories remain. If you're curious about the stories behind these features and what we have learned, check out the blog post below: https://zenstack.dev/blog/v2-stories We would love to hear your opinion on the new position. What we missed? What is your unresolved pain point? https://github.com/zenstackhq/zenstack

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 1d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, April 2024

the whole month →
  • Supabase2,328

    The Postgres developer platform is now generally available

    Dev tools · 2024 · supabase.com

  • Build your pixel-perfect booking experience with Atoms

    Dev tools · 2024 · cal.com

  • PaddleBoat1,161

    Perfect your sales pitch with realistic AI roleplays

    AI · 2024 · padboat.com

  • deco.cx 2.01,080

    Build web apps 10x faster with Deno, JSX, TS & Tailwind

    Dev tools · 2024 · decocms.com

  • IXORD AI955

    Navigate tasks, ignite creativity

    AI · 2024

  • A central nervous system for all your productivity apps

    AI · 2024 · getassista.com