Architecture
A typical product build is a thin, explicit set of layers - not a mystery monolith.
Layers
- Clients - web UI and/or messaging channels (e.g. WhatsApp).
- App layer - UI, API routes, auth session handling; often Lovable-assisted for product apps.
- AI agents - tool-using models (e.g. Anthropic) with clear boundaries and human-in-the-loop where needed.
- Data - Supabase Postgres with Row Level Security as the default tenant boundary.
- Integrations - Twilio, Stripe, email, and others at the edges.
What changes per project
Messaging-heavy products (WhatsApp ordering pipelines) push Twilio and agents forward. Commerce sites emphasise storefront and email. Analytics products may lean on Fabric/Databricks rather than Supabase alone. The diagram is the default shape - not a cage.
Static marketing sites
This website is intentionally simpler: static Astro output, no app database, contact via Web3Forms. Tier the architecture to the problem.