Opinionated app template: Preact + Vite + Hono API + Supabase + Docker. Includes AI collaboration framework for Claude Code (Haiku → Opus pipeline).
README
Opinionated full-stack app template for building internal tools and web apps with a consistent stack and an AI-assisted development workflow.
Stack
| Layer | Tool | |-------|------| | Language | TypeScript (strict mode, frontend + backend) | | Frontend | Preact + TSX + Vite + Tailwind CSS | | API | Hono (Node.js via tsx) | | Database | Supabase (Postgres + Auth + RLS) | | Deploy | Docker + Caddy |
AI workflow — a Haiku → Sonnet → Human review pipeline built around Claude Code, with structured handoff docs, roadmap templates, and spec-writing guidelines that let a smaller model implement entire features from a well-written spec.
Template sync — a GitHub Action that propagates shared protocol files (PROJECT_PROTOCOL.md, docs/branching.md, etc.) to downstream repos via automated PRs. The config's remove list propagates deprecations the same way: retired files (e.g. AI_HANDOFF.md) are deleted from downstream repos instead of lingering in old clones.
Ecosystem standards — this template implements the R7 Creative ecosystem development standards (r7c-context/standards/). See docs/r7c-standards.md for the standards index and rule hierarchy.
This template follows the local-first-development standard — all development happens locally; production is for running deployed applications only.
Prerequisites: Node 20+, a local .env (copy from .env.example).
| Command | What it does |
|---------|--------------|
| npm install | Install dependencies |
| npm run dev | Run the Hono API with tsx watch (auto-reload on save) |
| npm run dev:client | Run the Vite dev server (HMR for the SPA) |
| npm run build | Production build of the SPA into dist/ |
| npm run preview | Preview the production build locally |
| npm run start | Run the API in production mode (no watch) |
| npm run smoke | Health check + API route smoke tests |
| npm run typecheck | tsc --noEmit — stri