Patterns by topic
Component patterns
Reusability, composition, prop drilling vs. context.
Data modeling
Schema patterns for the most common app shapes.
Auth flows
Patterns for sign-up, password reset, MFA, session management.
State management
Where to put state — Convex, URL, local, Zustand.
Caching
What to cache, where, and how to invalidate.
Error handling
Error boundaries, retry policies, user-facing error UX.
Optimistic updates
Patterns for instant client feedback.
Pagination
Infinite scroll vs. paginated tables.
Search patterns
Full-text vs. vector vs. filter UIs.
File uploads
Direct-to-storage uploads, validation, previews.
Real-time sync patterns
Sync, presence, collaborative editing.
Multi-tenancy
Workspaces, isolation, per-tenant limits.
Rate limiting
Per-user, per-IP, per-endpoint patterns.
When to read this section
- Before starting a non-trivial app, skim the patterns relevant to your shape.
- When the agent’s default approach feels off, the patterns here describe the alternatives and tradeoffs.
- When debugging architecture-level issues (slow queries, leaky abstractions, scaling pain), check the relevant page.
