zenstack
Full-Stack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks. (by zenstackhq)
next-auth-example
Example showing how to use NextAuth.js with Next.js (by nextauthjs)

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured
zenstack | next-auth-example | |
---|---|---|
58 | 11 | |
2,564 | 3,945 | |
2.1% | 0.7% | |
9.4 | 7.5 | |
11 days ago | 4 months ago | |
TypeScript | TypeScript | |
MIT License | ISC License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zenstack
Posts with mentions or reviews of zenstack.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-06-09.
-
Turning Your Database Into an MCP Server With Auth
ZenStack
-
How to Build AI Agents to Enhance SaaS With Minimal Code and Effort
ZenStack - Full-stack toolkit with access control
-
A Principled Approach to Querying Data – A Type-Safe Search DSL (TypeScript)
It's most probably ZenStack given the description: https://zenstack.dev/
-
Automatically Generate REST and GraphQL APIs From Your Database
Prisma combined with ZenStack offers a more programmatic approach. While requiring more setup than PostgREST, it provides better TypeScript integration and more control over the generated API. This combination excels in projects where type safety and custom business logic are priorities.
-
When Embedded AuthN Meets Embedded AuthZ - Building Multi-Tenant Apps With Better-Auth and ZenStack
While better-auth solves the problem of determining a user's identity and roles, ZenStack continues from there and uses such information to control what actions the user can perform on a piece of data. ZenStack is built above Prisma ORM and extends Prisma's power with flexible access control and automatic CRUD API. Since better-auth has built-in integration with Prisma, the two can make a perfect combination for building secure multi-tenant applications. This post will walk you through the steps of creating one.
-
Building Multi-Tenant Apps Using Clerk's "Organization" and Next.js
ZenStack: the access control layer on top of Prisma
-
Typing Prisma Json Fields? Yes, You Can!
ZenStack's new "strongly typed JSON field" feature is designed to address this need. It allows you to define shapes of JSON data in the schema, and "fixes" PrismaClient to return data with correct types. The feature is in preview and only supports PostgreSQL for now.
- Show HN: E2E Type-Safe ORM from Database to API and UI Instantly
-
Supabase RLS Alternative
That's why we built ZenStack on top of Prisma ORM, adding the missing authorization layer and auto-generating type-safe APIs/hooks. It gives you the same convenience as using BaaS while maintaining flexibility with everything in your codebase.
-
Rendering Prisma Queries With React Table: The Low-Code Way
SQL databases are not meant to be consumed from the frontend. You need an API to mediate. You can build such an API in many ways, but here we'll use ZenStack to "unbuild" it. ZenStack is a full-stack toolkit built above Prisma, and one of the cool things it does is to automagically derive a backend API from the schema.
next-auth-example
Posts with mentions or reviews of next-auth-example.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-08-13.
-
Tell HN: Google OAuth consent screen issue could be costing you signups
https://next-auth-example.vercel.app/
-
NextAuth.js+App Router+Prisma
https://github.com/nextauthjs/next-auth-example https://next-auth.js.org/getting-started/example https://next-auth.js.org/configuration/initialization#route-handlers-app https://www.prisma.io/docs/getting-started/quickstart https://authjs.dev/reference/adapter/prisma
- Is there any case where we should use <a> instead of <Link>
-
Since many thought my code was terrible, here is some context for you to understand it better.
This is not true in the slightest. Just one example: https://github.com/nextauthjs/next-auth-example/blob/main/components/footer.tsx
-
Next-Auth and FastAPI Auth endpoint
Looking at the example repo for using next-auth (https://github.com/nextauthjs/next-auth-example), how would I add a provider to the [...auth].ts file so that I could have a user login with email and password, hit my FastAPI authentication endpoint, and resolve with the token if authentication is successful? Do I just use the Credentials Provider? https://next-auth.js.org/configuration/providers/credentials
-
Why I choose T3 stack as the fullstack to build the react app
If you want a full-featured authentication system with built-in providers (Google, Facebook, GitHub…), JWT, JWE, email/password, magic links, and more… use [next-auth](https://github.com/nextauthjs/next-auth-example).
-
General workflow for Auth0 with a seperated frontend + backend not clear
Just use (next-auth)[https://github.com/nextauthjs/next-auth-example], and without setting up a db it automatically defaults to JWTs. Only thing that I would do is make sure to setup a revocation policy on the server that allows you to revoke JWTs before its expiration. I usually keep a simple json document of revoked tokens, which I can then deny access to in-case the token was ever compromised.
-
Can someone explain the difference between Session and JWT for me? Why does it seem like I need both?
I see in the official example app,
- How would I use getsession in a middleware file
-
NextJS authentication in 5 minutes
First we need to clone example app from next-auth. You can find the whole guide from next-auth here or just follow my steps.
What are some alternatives?
When comparing zenstack and next-auth-example you can also consider the following projects:
json-api - A specification for building JSON APIs
graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
petstore-openapi-zenstack - A "Pet Store" OpenAPI implementation using Express.js and ZenStack
logto - 🧑🚀 Authentication and authorization infrastructure for SaaS and AI apps, built on OIDC and OAuth 2.1 with multi-tenancy, SSO, and RBAC.
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
pg-promise - PostgreSQL interface for Node.js

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured