HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
zenstackhq
zenstack
TypeScript2023–2024
zenstackhq / zenstack

zenstack

Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services

4Distinct people
6Mentions
0Explicit recommenders
3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month6 dated mentions

Observed mentions: 2023-07-05 11:02:00 UTC to 2024-04-29 23:58:00 UTC.

012342023-07-01 00:00:00 UTC to 2023-08-01 00:00:00 UTC (exclusive): 4 mentions; 3 submissions, 1 commentsJul 20232023-08-01 00:00:00 UTC to 2023-09-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-09-01 00:00:00 UTC to 2023-10-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-01 00:00:00 UTC to 2023-11-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2023-11-01 00:00:00 UTC to 2023-12-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsNov 20232023-12-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2024-02-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-01 00:00:00 UTC to 2024-03-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-01 00:00:00 UTC to 2024-04-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-04-01 00:00:00 UTC to 2024-05-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsApr 2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jul 20232023-07-01 00:00:00 UTC2023-08-01 00:00:00 UTC431
Aug 20232023-08-01 00:00:00 UTC2023-09-01 00:00:00 UTC000
Sep 20232023-09-01 00:00:00 UTC2023-10-01 00:00:00 UTC000
Oct 20232023-10-01 00:00:00 UTC2023-11-01 00:00:00 UTC110
Nov 20232023-11-01 00:00:00 UTC2023-12-01 00:00:00 UTC000
Dec 20232023-12-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
Jan 20242024-01-01 00:00:00 UTC2024-02-01 00:00:00 UTC000
Feb 20242024-02-01 00:00:00 UTC2024-03-01 00:00:00 UTC000
Mar 20242024-03-01 00:00:00 UTC2024-04-01 00:00:00 UTC000
Apr 20242024-04-01 00:00:00 UTC2024-05-01 00:00:00 UTC110

What Hacker News says

6 sources
carlual·Apr 29, 2024Submission

Show HN: 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 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
Read the rest
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
14 points · Open discussion
jiashenggo·Oct 3, 2023Submission

Show HN: ZenStack – DSL to define data and access rules closer to the database

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!
19 points · Open discussion
carlual·Jul 25, 2023Submission

Show HN: TypeScript ORM with Access Control

ZenStack is built on top of Primsa ORM, extending it with an 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, database client can automatically enforce these constraints at runtime bringing the following 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 building the backend of new projects faster with minimal TS/JS code, and can also be easily adopted into existing projects. Some other benefits it provides: - Automatic CRUD APIs - RESTful, tRPC - Generating client-side data access libraries (aka hooks) - SWR, TanStack Query - A plugin
Read the rest
system for 3rd party extension Finally, ZenStack is not opinionated toward any stack or framework, allowing integration with the entire JavaScript and TypeScript ecosystem. GitHub: https://github.com/zenstackhq/zenstack Website: https://zenstack.dev
2 points · Open discussion
ymc9·Jul 10, 2023Submission

Show HN: ZenStack – open-source toolkit simplifying your Prisma ORM stack

We have been polishing ZenStack for the past few months with the community. As it has been successfully used in production by some of our users, we think it’s time to share our beta with you. 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. Ut
Read the rest
ilizing 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
6 points · Open discussion
zenstack·Jul 5, 2023Submission

Show HN: ZenStack-Open source toolkit simplifies your Prisma stack

We have been polishing ZenStack for the past few months with the community. As it has been successfully used in production by some of our users, we think it’s time to share our beta with you. 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. U
Read the rest
tilizing 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
12 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.