Download Template
Download as ZIP and extract to
.trellis/spec/What’s Included
| Category | Files | Coverage |
|---|---|---|
| Frontend | 12 files | Components, hooks, state, oRPC, AI SDK, CSS |
| Backend | 10 files | oRPC router, database, auth, performance, logging |
| Guides | 3 files | Cross-layer thinking, pre-implementation |
| Shared | 4 files | TypeScript, code quality, dependencies |
| Pitfalls | 5 files | PostgreSQL, build system, mobile CSS |
Template Structure
Key Topics
Frontend
- Next.js 15 App Router with React 19
- oRPC client + React Query integration
- Server Components vs Client Components
- Authentication with better-auth
- Vercel AI SDK (useChat, tool calls, streaming)
- TailwindCSS 4 + Radix UI patterns
Backend
- oRPC router, procedures, and middleware
- Drizzle ORM + PostgreSQL (N+1 prevention, transactions, JSON/JSONB)
- better-auth server configuration
- Performance patterns (concurrency, caching, rate limiting)
- Structured logging with Sentry
Guides
- Pre-implementation checklist (search before write)
- Cross-layer thinking for Next.js full-stack changes
Common Pitfalls
- PostgreSQL
jsonvsjsonbwith Drizzle ORM - Sentry + next-intl plugin conflict
- Turbopack vs Webpack flexbox differences
- WebKit tap highlight on mobile
Usage
- Download the ZIP file
- Extract to your project’s
.trellis/spec/directory - Replace
@your-app/*placeholders with your monorepo package paths - Customize for your specific conventions
- Remove sections that don’t apply
View on GitHub
Browse the template source code