Web and API Architecture
- Built around Next.js App Router route handlers, Server Components, protected app routes, and a shared API boundary used by both the browser app and native iOS client.
- Uses Clerk as the identity authority, with private routes resolved through bearer-token auth and app-level route helpers.
- Validates request payloads with Zod, centralizes environment validation, and separates public marketing pages from authenticated creation, gallery, account, and billing surfaces.