A Catalog of Sample Projects
The ZenStack team maintains the following three series of sample projects.
-
Schema Samples
A set of ZModel schemas demonstrating how to model different types of authorization patterns.
-
Multi-Tenant Todo App
This series demonstrates a complete implementation of a multi-tenant, SaaS-like application with a relatively complex authorization model. It is also the sample we used throughout The Complete Guide.
-
Simple Blog App
This series is for those who want to quickly understand the structure of a project using ZenStack, without the burden of comprehending a complex application. These samples are used in the Quick Start guides.
We also actively collect and share community-contributed samples.
Schema Samples
The sample repo includes the following patterns:
- ACL
- RBAC
- ABAC
- Multi-Tenancy
You can use this blog post as an introduction.
Multi-Tenant Todo Samples
- Next.js (App Router) + NextAuth + TanStack Query
- Next.js (Pages Router) + NextAuth + SWR
- Next.js (Pages Router) + NextAuth + tRPC
- Nuxt V3 + TanStack Query
- SvelteKit + TanStack Query
- RedwoodJS
Blog Samples
- Next.js (App Router) + SWR
- Next.js (Pages Router) + SWR
- Next.js (App Route) + tRPC
- Nuxt V3 + TanStack Query
- SvelteKit
- Remix
- Express Backend API
- NestJS Backend API
- Clerk Integration
Community Samples
-
Monorepo Todo App by ErikDakoda
- PNPM workspace
- Turborepo
- Next.js + NextAuth
-
Warehouse Management System by Eliav2
- Decoupled frontend and backend with monorepo
- Backend: ZenStack + Express + GitHub SSO
- Frontend: React + TanStack-Query + TanStack-Router + MUI5 + Vite
-
Cloudflare Pages + Worker by Kiran
- Decoupled frontend and backend on Cloudflare
- Hono for backend (Cloudflare Worker)
- React SPA for frontend (Cloudflare Pages)
- This repo is also a cool demo of the ZenStack UI package made by Kiran.