- Added: api-patterns, app-builder, architecture, bash-linux, behavioral-modes, clean-code, code-review-checklist, database-design, deployment-procedures, docker-expert, documentation-templates, game-development, geo-fundamentals, i18n-localization, lint-and-validate, mobile-design, nestjs-expert, nextjs-best-practices, nodejs-best-practices, parallel-agents, performance-profiling, plan-writing, powershell-windows, prisma-expert, python-patterns, react-patterns, red-team-tactics, seo-fundamentals, server-management, tailwind-patterns, tdd-workflow, typescript-expert, vulnerability-scanner - Updated README: skill count 179 → 223 - Added credit for vudovn/antigravity-kit (MIT License) Source: https://github.com/vudovn/antigravity-kit
42 lines
801 B
Markdown
42 lines
801 B
Markdown
# tRPC Principles
|
|
|
|
> End-to-end type safety for TypeScript monorepos.
|
|
|
|
## When to Use
|
|
|
|
```
|
|
✅ Perfect fit:
|
|
├── TypeScript on both ends
|
|
├── Monorepo structure
|
|
├── Internal tools
|
|
├── Rapid development
|
|
└── Type safety critical
|
|
|
|
❌ Poor fit:
|
|
├── Non-TypeScript clients
|
|
├── Public API
|
|
├── Need REST conventions
|
|
└── Multiple language backends
|
|
```
|
|
|
|
## Key Benefits
|
|
|
|
```
|
|
Why tRPC:
|
|
├── Zero schema maintenance
|
|
├── End-to-end type inference
|
|
├── IDE autocomplete across stack
|
|
├── Instant API changes reflected
|
|
└── No code generation step
|
|
```
|
|
|
|
## Integration Patterns
|
|
|
|
```
|
|
Common setups:
|
|
├── Next.js + tRPC (most common)
|
|
├── Monorepo with shared types
|
|
├── Remix + tRPC
|
|
└── Any TS frontend + backend
|
|
```
|