Zentry is a multi-tenant authentication platform built in a pnpm TypeScript monorepo. The current product surface includes the core auth API, the hosted web app, the background worker, and the SDK used by client apps and backend services.
apps/api: the authentication API and session gatewayapps/web: the hosted Zentry web app for auth flows, organization management, and docsapps/worker: the background worker for async email and event-driven jobspackages/sdk: the integration SDK for React apps and Node backends
SDK details live in packages/sdk/README.md.
Zentry currently supports:
- email + password authentication
- Google OAuth
- email verification with OTP
- organization-scoped hosted auth with redirect
code + stateexchange - stateful session validation with Redis-backed live revocation
- cookie-based sessions for web clients and bearer-token support for API consumers
- TypeScript
- Node.js
- Express
- TanStack Start
- React
- PostgreSQL
- Prisma ORM
- Redis
- Kafka
- Zod
- React Email
- Nodemailer
- Docker Compose
- pnpm workspaces
zentry/
├── apps/
│ ├── api/
│ ├── web/
│ └── worker/
├── packages/
│ ├── database/
│ ├── sdk/
│ ├── types/
│ └── validation/
└── test-apps/
├── test-api/
└── test-ui/
pnpm install
docker compose up -d
pnpm devUseful commands:
pnpm dev: run the workspace apps in developmentpnpm dev:test: run the SDK test appspnpm build: build shared packages and appspnpm db:generate: generate Prisma clientpnpm db:push: push the current schema
test-apps/test-uiandtest-apps/test-apiare used to validate the SDK and end-to-end auth integration flows.- Root-level automated tests are not fully wired yet, so current validation is mainly through the running apps, Postman, and the test apps.