A full-stack TypeScript monorepo with Next.js, tRPC, and WebSocket support.
├── apps/
│ ├── web/ # Next.js frontend with tRPC client
│ └── server/ # Backend server with tRPC, REST, and WebSocket
├── packages/
│ ├── types/ # Shared TypeScript types
│ └── config/ # Shared configuration (tsconfig, eslint, etc.)
└── services/ # Future services (Python, Go, etc.)
- Frontend: Next.js 14, TypeScript, Tailwind CSS, tRPC Client
- Backend: Node.js, tRPC Server, Express, WebSocket (ws)
- Build System: Turborepo, pnpm workspaces
- Language Support: TypeScript, Python, Go (extensible)
- Node.js >= 18
- pnpm >= 8
pnpm install# Run all apps in development mode
pnpm dev
# Run specific app
pnpm --filter web dev
pnpm --filter server devpnpm buildThe monorepo is designed to support services in different languages:
- Create a new directory in
services/(e.g.,services/python-service) - Add your service with its own dependencies and configuration
- Update
turbo.jsonif needed for build orchestration