Skip to content
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

Varel Core ships as one deployable Next.js app in apps/marketing, so marketing pages and the product share a single codebase.

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.