# vishaldeep1377/zevra-official architecture

> Architecture diagram of the GitHub repository vishaldeep1377/zevra-official, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishaldeep1377/zevra-official
- Repository: https://github.com/vishaldeep1377/zevra-official

## Overview

ZEVRA is an authenticated AI and software-development ecosystem, alongside a public club website. The main user journey is sign-in, entry to a unified dashboard, and work across eight pillars: intelligence, discovery, learning, development, creativity, research, automation, and community. Pillar workspaces expose domain capabilities through API routes and supporting services; intelligence and learning also use shared model routing. The graph preserves the documented pillar branches, but most route-to-feature wiring was not sampled, so those connections are omitted rather than inferred. Evidence is limited to the supplied README and source excerpts/index.

Main entry points: [`lib/supabase/server.ts`](https://github.com/vishaldeep1377/zevra-official/blob/main/lib/supabase/server.ts) (Supabase), [`app/api/intelligence/chat/route.ts`](https://github.com/vishaldeep1377/zevra-official/blob/main/app/api/intelligence/chat/route.ts) (Intelligence chat API), [`features/discovery/services/catalog-repository.ts`](https://github.com/vishaldeep1377/zevra-official/blob/main/features/discovery/services/catalog-repository.ts) (Discovery catalog), [`features/intelligence/services/model-router.ts`](https://github.com/vishaldeep1377/zevra-official/blob/main/features/intelligence/services/model-router.ts) (Model router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Public and access"]
  node_public["Public website<br/>[page.tsx]"]
  node_auth["Authentication<br/>[page.tsx]"]
  node_callback["Auth callback<br/>[route.ts]"]
end

subgraph group_workspace["Dashboard and pillars"]
  node_dashboard["Dashboard hub"]
  node_registry["Pillar registry<br/>[registry.ts]"]
  node_discovery["Discovery workspace"]
  node_catalog[("Discovery catalog")]
  node_learning["Learning academy"]
  node_academy["Academy services<br/>[academy-service.ts]"]
  node_development["Development workspace<br/>[BuildWorkspace.tsx]"]
  node_devtools["Development tools"]
  node_otherpillars["Create, research, automate"]
end

subgraph group_ai["AI services"]
  node_intelligence["Intelligence workspace"]
  node_chatapi["Intelligence chat API<br/>[route.ts]"]
  node_modelrouter["Model router<br/>[model-router.ts]"]
  node_rag["Retrieval and context<br/>[rag.ts]"]
end

subgraph group_community["Community and member data"]
  node_community["Community workspace"]
  node_communityapi[("Community services")]
  node_profiles["Profile and activity<br/>[streak-engine.ts]"]
end

subgraph group_platform["Platform services"]
  node_supabase[("Supabase<br/>[server.ts]")]
  node_ratelimit["Rate limiting<br/>[index.ts]"]
end

node_visitor(("Visitor / member"))
node_aiproviders["AI providers"]

node_visitor -->|"browses"| node_public
node_visitor -->|"signs in"| node_auth
node_auth -->|"completes OAuth"| node_callback
node_visitor -->|"enters workspace"| node_dashboard
node_dashboard -->|"loads pillar definitions"| node_registry
node_visitor -->|"uses"| node_intelligence
node_chatapi -->|"requests generation"| node_modelrouter
node_modelrouter -->|"dispatches model requests"| node_aiproviders
node_visitor -->|"explores tools"| node_discovery
node_catalog -->|"reads catalog"| node_supabase
node_catalog -->|"falls back to catalog data"| node_catalog
node_visitor -->|"learns"| node_learning
node_academy -->|"stores academy progress"| node_supabase
node_visitor -->|"builds software"| node_development
node_devtools -->|"requests AI analysis"| node_modelrouter
node_visitor -->|"creates, researches, automates"| node_otherpillars
node_visitor -->|"participates"| node_community
node_communityapi -->|"reads community records"| node_supabase
node_communityapi -->|"resolves member authors"| node_profiles
node_profiles -->|"reads activity logs"| node_supabase
node_chatapi -->|"authenticates and logs activity"| node_supabase
node_chatapi -->|"applies request limits"| node_ratelimit

click node_public "https://github.com/vishaldeep1377/zevra-official/blob/main/app/page.tsx"
click node_auth "https://github.com/vishaldeep1377/zevra-official/blob/main/app/(auth)/login/page.tsx"
click node_callback "https://github.com/vishaldeep1377/zevra-official/blob/main/app/auth/callback/route.ts"
click node_dashboard "https://github.com/vishaldeep1377/zevra-official/blob/main/features/dashboard/DashboardHomeClient.tsx"
click node_registry "https://github.com/vishaldeep1377/zevra-official/blob/main/lib/pillars/registry.ts"
click node_intelligence "https://github.com/vishaldeep1377/zevra-official/blob/main/features/intelligence/components/IntelligenceWorkspace.tsx"
click node_chatapi "https://github.com/vishaldeep1377/zevra-official/blob/main/app/api/intelligence/chat/route.ts"
click node_modelrouter "https://github.com/vishaldeep1377/zevra-official/blob/main/features/intelligence/services/model-router.ts"
click node_rag "https://github.com/vishaldeep1377/zevra-official/blob/main/features/intelligence/services/rag.ts"
click node_discovery "https://github.com/vishaldeep1377/zevra-official/blob/main/features/discovery/components/DiscoveryWorkspace.tsx"
click node_catalog "https://github.com/vishaldeep1377/zevra-official/blob/main/features/discovery/services/catalog-repository.ts"
click node_learning "https://github.com/vishaldeep1377/zevra-official/blob/main/features/learning/components/AcademyWorkspace.tsx"
click node_academy "https://github.com/vishaldeep1377/zevra-official/blob/main/features/learning/services/academy-service.ts"
click node_development "https://github.com/vishaldeep1377/zevra-official/blob/main/features/development/components/BuildWorkspace.tsx"
click node_devtools "https://github.com/vishaldeep1377/zevra-official/blob/main/features/development/services/devtools/utilities-engine.ts"
click node_otherpillars "https://github.com/vishaldeep1377/zevra-official/tree/main/features"
click node_community "https://github.com/vishaldeep1377/zevra-official/blob/main/features/community/components/CommunityWorkspace.tsx"
click node_communityapi "https://github.com/vishaldeep1377/zevra-official/blob/main/features/community/services/community-repository.ts"
click node_profiles "https://github.com/vishaldeep1377/zevra-official/blob/main/features/profile/services/streak-engine.ts"
click node_supabase "https://github.com/vishaldeep1377/zevra-official/blob/main/lib/supabase/server.ts"
click node_ratelimit "https://github.com/vishaldeep1377/zevra-official/blob/main/lib/ratelimit/index.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_public,node_auth,node_callback toneBlue
class node_dashboard,node_registry,node_discovery,node_catalog,node_learning,node_academy,node_development,node_devtools,node_otherpillars toneAmber
class node_intelligence,node_chatapi,node_modelrouter,node_rag toneMint
class node_community,node_communityapi,node_profiles toneRose
class node_supabase,node_ratelimit,node_visitor,node_aiproviders toneIndigo
```

## Components

### Public and access

- [Public website](https://github.com/vishaldeep1377/zevra-official/blob/main/app/page.tsx): `app/page.tsx`
- [Authentication](https://github.com/vishaldeep1377/zevra-official/blob/main/app/(auth)/login/page.tsx): `app/(auth)/login/page.tsx`
- [Auth callback](https://github.com/vishaldeep1377/zevra-official/blob/main/app/auth/callback/route.ts): `app/auth/callback/route.ts`

### Dashboard and pillars

- [Dashboard hub](https://github.com/vishaldeep1377/zevra-official/blob/main/features/dashboard/DashboardHomeClient.tsx): `features/dashboard/DashboardHomeClient.tsx`
- [Pillar registry](https://github.com/vishaldeep1377/zevra-official/blob/main/lib/pillars/registry.ts): `lib/pillars/registry.ts`
- [Discovery workspace](https://github.com/vishaldeep1377/zevra-official/blob/main/features/discovery/components/DiscoveryWorkspace.tsx): `features/discovery/components/DiscoveryWorkspace.tsx`
- [Discovery catalog](https://github.com/vishaldeep1377/zevra-official/blob/main/features/discovery/services/catalog-repository.ts): `features/discovery/services/catalog-repository.ts`
- [Learning academy](https://github.com/vishaldeep1377/zevra-official/blob/main/features/learning/components/AcademyWorkspace.tsx): `features/learning/components/AcademyWorkspace.tsx`
- [Academy services](https://github.com/vishaldeep1377/zevra-official/blob/main/features/learning/services/academy-service.ts): `features/learning/services/academy-service.ts`
- [Development workspace](https://github.com/vishaldeep1377/zevra-official/blob/main/features/development/components/BuildWorkspace.tsx): `features/development/components/BuildWorkspace.tsx`
- [Development tools](https://github.com/vishaldeep1377/zevra-official/blob/main/features/development/services/devtools/utilities-engine.ts): `features/development/services/devtools/utilities-engine.ts`
- [Create, research, automate](https://github.com/vishaldeep1377/zevra-official/tree/main/features): `features`

### AI services

- [Intelligence workspace](https://github.com/vishaldeep1377/zevra-official/blob/main/features/intelligence/components/IntelligenceWorkspace.tsx): `features/intelligence/components/IntelligenceWorkspace.tsx`
- [Intelligence chat API](https://github.com/vishaldeep1377/zevra-official/blob/main/app/api/intelligence/chat/route.ts): `app/api/intelligence/chat/route.ts`
- [Model router](https://github.com/vishaldeep1377/zevra-official/blob/main/features/intelligence/services/model-router.ts): `features/intelligence/services/model-router.ts`
- [Retrieval and context](https://github.com/vishaldeep1377/zevra-official/blob/main/features/intelligence/services/rag.ts): `features/intelligence/services/rag.ts`

### Community and member data

- [Community workspace](https://github.com/vishaldeep1377/zevra-official/blob/main/features/community/components/CommunityWorkspace.tsx): `features/community/components/CommunityWorkspace.tsx`
- [Community services](https://github.com/vishaldeep1377/zevra-official/blob/main/features/community/services/community-repository.ts): `features/community/services/community-repository.ts`
- [Profile and activity](https://github.com/vishaldeep1377/zevra-official/blob/main/features/profile/services/streak-engine.ts): `features/profile/services/streak-engine.ts`

### Platform services

- [Supabase](https://github.com/vishaldeep1377/zevra-official/blob/main/lib/supabase/server.ts): `lib/supabase/server.ts`
- [Rate limiting](https://github.com/vishaldeep1377/zevra-official/blob/main/lib/ratelimit/index.ts): `lib/ratelimit/index.ts`

### Other components

- **Visitor / member**
- **AI providers**

## Connections

- Visitor / member → Public website: browses (evidence: `README.md`)
- Visitor / member → Authentication: signs in (evidence: `README.md`)
- Authentication → Auth callback: completes OAuth (evidence: `app/auth/callback/route.ts`)
- Visitor / member → Dashboard hub: enters workspace (evidence: `README.md`)
- Dashboard hub → Pillar registry: loads pillar definitions (evidence: `features/dashboard/DashboardHomeClient.tsx`)
- Visitor / member → Intelligence workspace: uses (evidence: `README.md`)
- Intelligence chat API → Model router: requests generation (evidence: `app/api/intelligence/chat/route.ts`)
- Model router → AI providers: dispatches model requests (evidence: `features/intelligence/services/model-router.ts`)
- Visitor / member → Discovery workspace: explores tools (evidence: `README.md`)
- Discovery catalog → Supabase: reads catalog (evidence: `features/discovery/services/catalog-repository.ts`)
- Discovery catalog → Discovery catalog: falls back to catalog data (evidence: `features/discovery/services/catalog-repository.ts`)
- Visitor / member → Learning academy: learns (evidence: `README.md`)
- Academy services → Supabase: stores academy progress (evidence: `features/learning/services/academy-service.ts`)
- Visitor / member → Development workspace: builds software (evidence: `README.md`)
- Development tools → Model router: requests AI analysis (evidence: `features/development/services/devtools/utilities-engine.ts`)
- Visitor / member → Create, research, automate: creates, researches, automates (evidence: `README.md`)
- Visitor / member → Community workspace: participates (evidence: `README.md`)
- Community services → Supabase: reads community records (evidence: `features/community/services/community-repository.ts`)
- Community services → Profile and activity: resolves member authors (evidence: `features/community/services/community-repository.ts`)
- Profile and activity → Supabase: reads activity logs (evidence: `features/profile/services/streak-engine.ts`)
- Intelligence chat API → Supabase: authenticates and logs activity (evidence: `app/api/intelligence/chat/route.ts`)
- Intelligence chat API → Rate limiting: applies request limits (evidence: `app/api/intelligence/chat/route.ts`)
