Files
teatea-pension/.trellis/spec

Next.js Full-Stack Development Guidelines

Universal development guidelines for production Next.js applications with oRPC API layer and PostgreSQL.

Structure

Frontend

React 19 + Next.js 15 App Router frontend development patterns:

Backend

oRPC + Drizzle ORM backend development patterns:

Shared

Cross-cutting concerns:

Guides

Development thinking guides:

Common Issues / Pitfalls

Common issues and solutions:

Tech Stack

  • Frontend: Next.js 15, React 19, TailwindCSS 4, Radix UI, React Query
  • Backend: oRPC, Drizzle ORM, PostgreSQL, better-auth
  • AI: Vercel AI SDK (multi-provider)
  • Real-time: Ably / WebSocket / SSE
  • Build: Turborepo + pnpm (monorepo)
  • Monitoring: Sentry + OpenTelemetry

Usage

These guidelines can be used as:

  1. New Project Template - Copy the entire structure for new Next.js projects
  2. Reference Documentation - Consult specific guides when implementing features
  3. Code Review Checklist - Verify implementations against established patterns
  4. Onboarding Material - Help new developers understand project conventions