Grasp - Next.js + tRPC + Supabase
Statistics (via tRPC)
Error: Not authenticated
Public Query (No Auth Required)
Create Todo (via tRPC)
Todos List (via tRPC)
Error: Not authenticated
tRPC Data Preview (Cached)
Uses existing cached data - no additional database call needed!
Architecture Notes
- tRPC provides end-to-end type safety with auto-completion
- Drizzle ORM handles all database queries (type-safe SQL)
- tRPC procedures include business logic and computed fields
- TanStack Query handles automatic caching and refetching
- Shared types across the monorepo via @grasp/database and @grasp/api
- No direct database queries needed - tRPC + Drizzle handles everything