Data Flow
How data moves through Danvas
Understanding data flow is critical for debugging and feature development. This diagram shows the primary paths for authenticated requests through Danvas.
System Data Flow
flowchart TD
subgraph Auth["Authentication"]
CLERK[Clerk Auth<br/>OAuth/SSO/Webhooks]
end
subgraph Frontend["Frontend Layer"]
APP[apps/app<br/>Next.js 16]
WEB[apps/web<br/>Marketing]
end
subgraph Backend["Backend Packages"]
AUTH[@repo/auth<br/>User provisioning<br/>Access control]
DB[@repo/database<br/>Drizzle ORM<br/>PostgreSQL]
ANALYTICS[@repo/analytics<br/>PostHog client<br/>External API]
MATRIX[@repo/matrix<br/>Matrix Synapse<br/>Bot client]