nowfound

Dev tools · April 29, 2024

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…

ZenStack V2 – RLS alternative with declarative Auth rules in Prisma launched on April 29, 2024 with 14 votes, #987 of 4,347 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 2 years on.

Visit zenstack.dev ↗Alternativestop 23% of April 2024

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

ZenStack is the modern data layer for TypeScript apps - with a type-safe ORM, built-in access control, and automatic query services.

Define a thoughtful data model, and let it power every part of your application. Define a thoughtful data model, and let it power every part of your application. Define a thoughtful data model, and let it power every part of your application. Schema-first data modeling with an intuitive language: terse, expressive, extensible. Compatible with Prisma schema. Use a concise and extensible schema language to define data models. Compared to traditional ORMs, ZenStack reduces scattered configuration and boilerplate, delivering structured and expressive modeling. Schema-first data modeling with an intuitive language: terse, expressive, extensible. Compatible with Prisma schema. A fully typed ORM…from zenstack.dev

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…

Does a similar job

all alternatives →
  • ZenStack2023 · github.com · ▲119

    Build scalable web apps with minimal code

  • ZenStack V3 – TypeScript ORM Combines Strength of Prisma + Drizzle2025 · github.com · ▲16

    We launched ZenStack V2(https://news.ycombinator.com/item?id=40205699) one year ago. It is built on Prisma, adding advanced features like access control, polymorphism, API/Hook generation, etc. But as we added more features, we felt more constrained by our foundation, Prisma(Check out the specific constraints here https://zenstack.dev/blog/next-chapter-1). Therefore, we made a bold decision for ZenStack V3 to reimplement the ORM part from scratch, keeping full compatibility with the Prisma schema and API. As a result, you could get the best of both…

  • ZenStack – DSL to define data and access rules closer to the database2023 · github.com · ▲19

    We're excited to announce the launch of ZenStack V1 after a year of refinement. With ZenStack, we introduce ZModel, a domain-specific language (DSL) that simplifies the definition of data and access rules, bringing it closer to the database level. This eliminates the need for extensive, repetitive coding on the application side. We would love to hear your feedback and opinions on it. Thank you!

  • Prisma2018 · prisma.io · ▲522

    Build a GraphQL server with any database

  • Prisma ORM2021 · prisma.io · ▲220

    Next-generation ORM for Node.js and TypeScript

  • ZenStack – access control at the ORM layer, built for coding agentsJul 2026 · zenstack.framer.website · ▲8

    Hi HN, I'm Jiasheng, co-creator of ZenStack. Access control usually ends up scattered across app code instead of living with the data model — and that's riskier when the code is written by an agent, since it's easy to ship a query with a missing or incomplete authorization check. ZenStack enforces policy (RBAC/ABAC/relation-based) directly at the ORM layer, on top of Kysely, so every query gets checked the same way regardless of who wrote it and who is calling it. Postgres RLS is an option too, but it's hard to maintain and scale, and it's Postgres-only — ZenStack's approach is…

More dev tools this month

the category →
  • /dev/null▲468

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 25d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲340

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 20d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 27d ago · corespeed.io

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, April 2024

the whole month →
  • Supabase▲2,325

    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

  • PaddleBoat▲1,162

    Perfect your sales pitch with realistic AI roleplays

    AI · 2024 · padboat.com

  • deco.cx 2.0▲1,078

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

    Dev tools · 2024 · decocms.com

  • IXORD AI▲955

    Navigate tasks, ignite creativity

    AI · 2024

  • A central nervous system for all your productivity apps

    AI · 2024 · getassista.com