How to structure SWR hooks in a Next.js App Router SaaS -- useSWR for reads, useSWRMutation for writes, and the mutate() pattern that keeps your UI in sync without a full page reload.
How to use Anthropic prompt caching to cut Claude API costs by up to 90% in a Next.js SaaS -- where to put cache breakpoints, how to verify cache hits, and what belongs in system vs messages.
How to add multi-tenant organization support to a Next.js SaaS -- org creation, role-based access, and token-based invitations using Drizzle ORM and JWT.
How to add image uploads to a Next.js SaaS using Cloudinary -- a protected API route, a reusable upload hook, and storing only the public_id in the database so transformation URLs stay flexible.
How to wire up transactional email in a Next.js SaaS using Resend and react-email -- from template components to service-layer sends and feature flags that keep the dev sandbox clean.
How to wire up Stripe subscription billing in a Next.js App Router SaaS -- from checkout session to webhook sync and customer portal -- in a single afternoon.