This skill provides opinionated TypeScript patterns designed for modern full-stack development with Next.js, tRPC, and Drizzle ORM. It emphasizes a "derive, don't declare" philosophy, ensuring a single source of truth by extracting types from runtime sources like Zod schemas and API routers. By enforcing strict compiler settings and providing patterns for branded types, discriminated unions, and server-side type protection, it enables developers to build robust, type-safe applications while minimizing manual type maintenance and eliminating common errors like type leakage across network and architectural boundaries.
Key Features
01Type derivation from tRPC RouterOutputs and RouterInputs
02Discriminated union patterns for type-safe state machines
03Automated type generation from Zod and Drizzle schemas
04Strict enforcement of client-server type boundaries
05Implementation of branded types for strict ID and primitive safety
060 GitHub stars