create-tigra
v3.3.0
Published
Create a production-ready full-stack app with Next.js 16 + Fastify 5 + Prisma + Redis
Maintainers
Readme
create-tigra
Scaffold a production-ready full-stack application with Next.js 16 + Fastify 5 + Prisma + Redis.
Quick Start
npx create-tigra my-appWhat's Included
Client (Next.js 16)
| Feature | Technology | |---|---| | Framework | Next.js 16 (App Router, React 19) | | Styling | Tailwind CSS v4, shadcn/ui, OKLCH color system | | State | Redux Toolkit (auth), React Query v5 (server data) | | Forms | React Hook Form + Zod validation | | HTTP | Axios with httpOnly cookie auth + auto refresh | | Auth UI | Login, Register, Dashboard pages | | Components | Header, Footer, Loading, Error, Empty states | | Theme | Light/Dark mode with next-themes |
Server (Fastify 5)
| Feature | Technology | |---|---| | Framework | Fastify 5 with TypeScript (strict) | | Database | MySQL 8.0 + Prisma 6 ORM | | Cache | Redis 7 (ioredis) | | Auth | JWT (httpOnly cookies), session management | | Validation | Zod schemas on all inputs | | Security | Helmet, CORS, rate limiting, password hashing (Argon2) | | File uploads | Multipart + Sharp image optimization | | Logging | Pino with pretty dev output | | Testing | Vitest with 80% coverage thresholds | | Dev tools | Docker Compose (MySQL, phpMyAdmin, Redis, Redis Commander) |
Codex Development
Includes concise AGENTS.md guidance at the project root and scoped guidance inside client/ and server/, with matching CLAUDE.md files that import them so Claude Code reads the same rules. Generated projects also include Cloudflare's MIT-licensed security-audit repository skill (in .agents/skills/ for Codex, with a thin pointer in .claude/skills/ for Claude Code). Meaningful server changes must use its focused guidance and, before completion, scan the working-tree patch: security-diff-scan when the Codex Security plugin is installed, or /security-review in Claude Code.
The security workflow falls back to the bundled skill when Codex Security is unavailable, while full or deep repository audits remain explicit operations rather than an automatic cost on every edit.
Prerequisites
- Node.js 22.12+
- Docker (for MySQL and Redis)
After Scaffolding
# 1. Start infrastructure
cd my-app/server
docker compose up -d
# 2. Install server dependencies & set up database
npm install
cp .env.example .env
npm run prisma:generate
npm run prisma:migrate:dev -- --name init
# 3. Start the server
npm run dev
# 4. In a new terminal, set up the client
cd my-app/client
npm install
cp .env.example .env
npm run dev- Server: http://localhost:8000
- Client: http://localhost:3000
- phpMyAdmin: http://localhost:8080 (optional — see below)
- Redis Commander: http://localhost:8081 (optional — see below)
The admin UIs (phpMyAdmin, Redis Commander) are behind the docker-compose tools profile and do not start with plain docker compose up -d. Start them with:
cd my-app/server
docker compose --profile tools up -dSecurity and Migration Notes
License
MIT
