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 13 + NextAuth + SWR
- Next.js 13 + NextAuth + TanStack Query
- Next.js 13 + NextAuth + tRPC
- Nuxt V3 + TanStack Query
- SvelteKit + TanStack Query
- RedwoodJS
Blog Samples
- Next.js 13 + Pages Route + SWR
- Next.js 13 + App Route + SWR
- Next.js 13 + App Route + tRPC
- Nuxt V3 + TanStack Query
- SvelteKit
- Remix
- Express 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