How to wire up Claude API tool use in a Next.js App Router SaaS -- defining tools, running the agentic loop until stop_reason is not tool_use, and keeping the route thin while business logic stays in the service layer.
How to build validated forms in a Next.js SaaS using React Hook Form and Zod -- schema-first validation, field error display, and wiring server-side API errors back to form fields.
How to wire up SEO in a Next.js App Router SaaS -- root metadata, per-page titles, dynamic OG image generation, sitemap.ts, robots.ts, and JSON-LD structured data, all from a single boilerplate setup.
How to structure a Next.js SaaS using the 7-file DDD-lite module pattern -- schema, relations, types, validation, repository, service, and index -- so each feature is self-contained and easy to extend.
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.