English | 中文
A production-ready SaaS starter for independent developers.
Built with Next.js 16, Tailwind CSS, shadcn/ui, Supabase, PostgreSQL, Sentry, Vercel, GitHub Actions, Alibaba Cloud OSS, and Appark.
- Next.js 16 App Router with Route Groups
- React Server Components with Server Actions
- Supabase SSR authentication (Email, GitHub, Google)
- PostgreSQL with Row Level Security
- Multi-tenant team management
- Stripe-ready subscription billing
- shadcn/ui component library (fully customizable)
- Dark/Light mode with system detection
- Responsive design (mobile-first)
- Toast notifications
- Loading skeletons & error boundaries
- Overview with stats and activity feed
- Analytics with usage metrics
- Profile management with edit form
- Team management with roles and invites
- Billing with subscription tiers
- Notification preferences
- Sentry error monitoring (client + server + edge)
- Security headers (XSS, CSRF, clickjacking)
- Rate limiting infrastructure
- GitHub Actions CI/CD
- Alibaba Cloud OSS for file storage
# Clone
git clone <repo-url> indiestack
cd indiestack
# Install
pnpm install
# Configure
cp .env.example .env.local
# Edit .env.local with your Supabase credentials
# Run
pnpm devOpen http://localhost:3000.
Live demo: https://indie-stack-theta.vercel.app · Docs: https://indie-stack-docs-site.vercel.app
The project ships two documentation systems:
The /docs directory contains 7 Markdown files covering architecture, setup, tech stack, Supabase, deployment, and configuration.
| File | Description |
|---|---|
architecture.md |
Project architecture, data flow, route design |
setup.md |
Local dev setup, environment variables |
tech-stack.md |
Deep dive into each technology |
supabase.md |
DB schema, auth, RLS policies |
deployment.md |
Vercel, Alibaba Cloud, Sentry, GitHub Actions guides |
configuration.md |
All environment variables and config |
A VitePress docs site supporting bilingual (zh/en) content and dark/light themes; deployable independently.
cd docs-site
pnpm install
pnpm dev # dev server (default http://localhost:5173)
pnpm build # build static site (output to .vitepress/dist/)
pnpm preview # preview the build locallyDeployment: Vercel — import the docs-site/ directory, or cd docs-site && vercel --prod. Docker — cd docs-site && docker build -t indiestack-docs . && docker run -d -p 8080:80 indiestack-docs.
src/
├── app/ # Next.js App Router
│ ├── (marketing)/ # Public pages
│ ├── auth/ # Auth pages
│ ├── dashboard/ # Dashboard pages
│ └── api/ # API routes
├── components/
│ ├── ui/ # shadcn/ui components
│ ├── auth/ # Auth forms
│ ├── layout/ # Header, footer, theme
│ ├── dashboard/ # Dashboard components
│ ├── forms/ # Form components
│ └── shared/ # Shared components
├── hooks/ # Custom hooks
├── lib/
│ ├── supabase/ # Supabase clients
│ ├── validations/ # Zod schemas
│ ├── actions/ # Server actions
│ ├── constants.ts # App constants
│ └── utils.ts # Utilities
└── middleware.ts # Auth middleware
| Command | Description |
|---|---|
pnpm dev |
Start development server |
pnpm build |
Build for production |
pnpm start |
Start production server |
pnpm lint |
Run ESLint |
pnpm type-check |
TypeScript type check |
pnpm format |
Format code with Prettier |
pnpm check |
type-check + lint + i18n symmetry check |
pnpm check:locales |
Verify en/zh-CN key symmetry and that values are actually translated |
pnpm db:migrate |
Push database migrations |
pnpm db:types |
Generate TypeScript types from DB |
pnpm check:security |
Verify secrets/env policy and security-scanner configuration |
pnpm check:migrations |
Enforce immutable migration checksums + filename/ordering rules |
pnpm update:migrations-manifest |
Re-baseline the migration checksum manifest (append-only) |
pnpm check:migration-history |
Compare local Supabase migration history (needs supabase start) |
pnpm test |
Vitest unit + component tests (node + jsdom projects) |
pnpm test:e2e |
Playwright E2E smoke tests |
pnpm test:visual |
Compare Linux Chromium visual regression baselines |
pnpm verify:build |
Full local release gate: checks, tests, bundle, production build |
pnpm check:release-docs |
Validate release/rollback/smoke documentation artifacts |
Before a release, run pnpm verify:build, pnpm test:e2e, pnpm audit --audit-level high, and pnpm check:release-docs. Follow the v0.11.0 release runbook, record the production smoke matrix, and keep the rollback runbook available to the operator. v0.11.0 ships migrations 032 and 033, which must be applied before the application is deployed.
- Unit/Component: Vitest dual projects (node + jsdom); the core-logic coverage floors are enforced by
pnpm test:coverageand defined invitest.config.ts. - E2E: Playwright smoke tests (
pnpm test:e2e; local Mock mode needs no Supabase). - Visual regression: Linux Chromium baselines for key public pages (
pnpm test:visual). - Database identity matrix:
pnpm smoke:supabase-identityruns the RLS/Storage matrix against a real local/staging Supabase. - CI: GitHub Actions — Lint & Type Check / Build / E2E / Build Docs / CodeQL + gitleaks security scan.
The project ships 10 specialized collaboration agents (see AGENTS.md): Code Writer, Code Reviewer, Project Auditor, Architect, Test Engineer, Documentation Writer, DBA, DevOps, UI/UX, Release Manager.
| Category | Technology |
|---|---|
| Framework | Next.js 16 (App Router, RSC) |
| Styling | Tailwind CSS + shadcn/ui |
| Auth | Supabase Auth (Email, GitHub, Google) |
| Database | PostgreSQL (via Supabase) |
| Storage | Alibaba Cloud OSS |
| Monitoring | Sentry |
| CI/CD | GitHub Actions |
| Hosting | Vercel |
| APM | Appark |
| Payments | Stripe (ready) |
| Validation | Zod |
A VitePress-based standalone docs site (docs-site/), bilingual, dark/light theme, independently deployable.
cd docs-site
pnpm install
pnpm dev # dev server (default http://localhost:5173)
pnpm build # build to .vitepress/dist/
pnpm preview # preview locallyIf you find this project helpful, consider buying the author a coffee to support ongoing development ☕
![]() Alipay |
![]() |
MIT

