English · 简体中文
One product, one UI, one set of business logic, one database —
an open-source full-stack admin system (admin dashboard template) implemented independently with React, Vue, Next.js, Nuxt, and NestJS.
📚 Documentation · 🧩 Feature matrix · 🤖 Dev conventions · 📈 Progress log
better-admin-promo-16x9.mp4
- Five-stack parity: one product, one UI, one set of business logic, one database — implemented independently with React, Vue, Next.js, Nuxt, and NestJS.
- 29/29 feature parity: all four frontends stay aligned, with only two intentional architecture differences (feature matrix).
- Auth & RBAC: dual-token JWT sessions and permission bitmasks, enforced on the server (auth docs).
- Contract-first API: OpenAPI is the single source of truth for every app (API contract).
- One data layer: PostgreSQL + Drizzle ORM with the same 17 tables across stacks (database design).
- UI consistency: React is the UI source of truth; Hero UI and Nuxt UI v4 are aligned visually and behaviorally (UI spec).
All sites run in read-only demo mode: the login page offers one-click "Admin / Random user" sign-in, and write operations are blocked by a read-only guard.
| App | URL | Hosting |
|---|---|---|
| Docs | https://better-admin.baiwumm.com | Tencent Cloud EdgeOne Makers (static export) |
| React (UI reference) | https://react.baiwumm.com | Vercel |
| Vue | https://vue.baiwumm.com | Vercel |
| Next.js | https://next.baiwumm.com | Vercel |
| Nuxt | https://nuxt.baiwumm.com | Vercel |
| NestJS API | https://nest.baiwumm.com | Render |
- Swagger: https://nest.baiwumm.com/docs
- API contract (single source of truth):
apps/nest/openapi/openapi.yaml - Database: one PostgreSQL instance (Supabase) shared by every app, accessed through Drizzle ORM
| Page | Contents |
|---|---|
| Overview | App responsibilities, data flow, and architecture rules |
| Quick start | Run all five apps locally |
| API contract | Response envelope, pagination, and error codes |
| Auth & RBAC | Dual-token JWT and permission bitmasks |
| Database design | 17 tables and permission-bit storage |
| UI spec | Design tokens and component priority |
| React implementation | UI reference, structure, and data flow |
| Vue implementation | React parity with Nuxt UI v4 |
| Next.js implementation | Full-stack App Router implementation |
| Nuxt implementation | Full-stack Nitro implementation |
| App | Directory | Stack | UI library |
|---|---|---|---|
| React | apps/react |
React 19 + Vite 8 + TanStack Router/Query + Zustand | Hero UI v3 |
| Vue | apps/vue |
Vue 3.5 + Vite 8 + Pinia + vue-query | Nuxt UI v4 |
| Next.js | apps/next |
Next 16 App Router (full-stack, no NestJS dependency) | Hero UI v3 |
| Nuxt | apps/nuxt |
Nuxt 4 + Nitro (full-stack, no NestJS dependency) | Nuxt UI v4 |
| NestJS | apps/nest |
Nest 11 + Drizzle ORM + PostgreSQL | — |
| Docs site | apps/website |
Next 16 static export; fumadocs for /docs |
fumadocs-ui |
React is the UI source of truth: the four frontends share page structure, interactions, visuals, and design tokens (see docs/ui-spec.md).
better-admin/
├── apps/ # Independently runnable / buildable / deployable apps
├── docs/ # Requirements, UI spec, progress, mechanisms
├── assets/logo/ # Shared brand assets
├── scripts/ # Repo-level scripts (version sync)
├── package.json # Single source of truth for the product version
└── AGENTS.md # Development conventions
Each app is self-contained: no pnpm workspace, separate lockfile / install / build / deploy.
# Backend API (data source for React / Vue; needs DATABASE_URL and friends in .env)
cd apps/nest && pnpm install
pnpm db:migrate && pnpm db:seed
pnpm start:dev # http://localhost:3000/api (Swagger at /docs)
# Any frontend
cd apps/react && pnpm install && pnpm dev # or apps/vue
cd apps/next && pnpm install && pnpm dev # or apps/nuxt (full-stack, connects to the DB directly)Requirements: Node.js ≥ 20, pnpm (version pinned per app), and a PostgreSQL connection string in server-side env vars (see each app's .env.example).
This repository is indexed by XERJ Corpus Hub as an agent-readable corpus. Point an AI coding agent at the repo and ask where a feature lives or how it works — answers cite files and lines instead of relying on model memory.
- AI entry point for the docs site:
llms.txt
Repository documentation:
| Document | Contents |
|---|---|
AGENTS.md |
Development conventions and agent rules |
docs/requirements.md |
Product requirements |
docs/feature-matrix.md |
Feature parity across the four frontends |
docs/launch-runbook.md |
Deployment, smoke tests, rollback |
What is Better Admin? An open-source full-stack admin system (admin dashboard template): one product, UI, business logic, and database, implemented independently with React, Vue, Next.js, Nuxt, and NestJS.
Why implement the same product five times? To compare how one product lands across different stacks and provide a reference implementation; every app runs, builds, and deploys independently.
Do all versions share the same database? Yes. One PostgreSQL database with Drizzle ORM; schema, data model, business rules, data types, and API contract stay aligned.
Can I use it commercially? Yes. The project is MIT licensed; keep the copyright notice. Issues and pull requests are welcome.
Issues and pull requests are welcome. Read AGENTS.md before making changes; when adding a feature or changing feature status, update docs/feature-matrix.md too.
MIT — see LICENSE for copyright (© 2026 baiwumm).