Docs

Architecture

Internal app boundaries, data model, agentic guidance, and extension points for Varel.

1

Varel combines a SaaS foundation with repo-native agentic guidance for disciplined agent-assisted changes.

2

The private source-of-truth monorepo keeps the internal Varel app and core template source in apps/marketing.

3

Route groups separate public marketing, Clerk auth pages, authenticated app routes, and API handlers.

4

Data access is isolated behind repository interfaces and backed by Convex when configured.

5

Polar checkout and webhooks write shared customer, purchase, subscription, and entitlement records.

6

The workspace launch checklist proves the route, data, entitlement, email, and agent-preflight path end to end.

7

The operator dashboard is gated by ADMIN_EMAILS and reads users, workspaces, purchases, subscriptions, and integration health through repository boundaries.