# anandhu-experience/nora-prototype architecture

> Architecture diagram of the GitHub repository anandhu-experience/nora-prototype, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anandhu-experience/nora-prototype
- Repository: https://github.com/anandhu-experience/nora-prototype

## Overview

NORA + Profile is a prototype professional-profile application with a chat-first agent that evaluates profile and mock-domain data, proposes skill actions, obtains approval, and applies changes to the profile store. The graph also preserves the documented directory, locations, messaging, insights, and AI-drafting capabilities. The README describes mock services under src/mock/, but those files are absent from the supplied tree; those nodes use the documented directory path, and relationships rely on the README rather than inspected mock implementations.

Main entry points: [`src/profile/store.ts`](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/store.ts) (Profile store), [`src/App.tsx`](https://github.com/anandhu-experience/nora-prototype/blob/main/src/App.tsx) (Routes and auth), [`src/mock`](https://github.com/anandhu-experience/nora-prototype/tree/main/src/mock) (Mock API and graph), [`src/nora/noraEngine.ts`](https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/noraEngine.ts) (NORA engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and profile UI"]
  node_routes["Routes and auth<br/>[App.tsx]"]
  node_layout["Site layout<br/>[SiteLayout.tsx]"]
  node_profile_page["Profile page<br/>[ProfilePage.tsx]"]
  node_directory["Professionals directory<br/>[DirectoryPage.tsx]"]
  node_locations["Locations<br/>[LocationsPage.tsx]"]
  node_messages["Messages and referrals<br/>[MessagesPage.tsx]"]
  node_insights["Insights dashboard<br/>[InsightsPage.tsx]"]
  node_nora_ui["NORA panel<br/>[NoraPanel.tsx]"]
end

subgraph group_nora["NORA orchestration"]
  node_nora_context["NORA context<br/>[NoraContext.tsx]"]
  node_engine["NORA engine<br/>[noraEngine.ts]"]
  node_state_machine["NORA state machine<br/>[noraMachine.ts]"]
  node_registry["Skill registry<br/>[skillRegistry.ts]"]
  node_draft_generator["Skill draft generator"]
end

subgraph group_skills["Skills and mock services"]
  node_profile_skill["Profile completion<br/>[actions.ts]"]
  node_listing_skill["Listing optimization<br/>[actions.ts]"]
  node_analytics_skill["Analytics insight<br/>[actions.ts]"]
  node_voce_skill["VOCE explore<br/>[actions.ts]"]
  node_mock_services["Mock API and graph"]
end

subgraph group_data["Profile data"]
  node_store[("Profile store<br/>[store.ts]")]
  node_seed["Profile seed data<br/>[seed.ts]"]
  node_selectors["Profile selectors<br/>[selectors.ts]"]
end

subgraph group_ai["AI drafting"]
  node_ai_tasks["AI task definitions<br/>[aiTasks.ts]"]
  node_ai_client["Browser draft client<br/>[aiDrafts.ts]"]
  node_ai_server["Draft API handler<br/>[aiDraft.ts]"]
end

node_user(("User"))
node_anthropic["Anthropic model service"]

node_user -->|"opens app"| node_routes
node_routes -->|"routes through"| node_layout
node_routes -->|"routes to"| node_profile_page
node_routes -->|"routes to"| node_directory
node_routes -->|"routes to"| node_locations
node_routes -->|"routes to"| node_messages
node_routes -->|"routes to"| node_insights
node_layout -->|"renders"| node_nora_ui
node_nora_ui -->|"uses context"| node_nora_context
node_nora_context -->|"creates"| node_engine
node_engine -->|"dispatches state"| node_state_machine
node_engine -->|"evaluates skills"| node_registry
node_engine -->|"requests drafts"| node_draft_generator
node_registry -->|"registers"| node_profile_skill
node_registry -->|"registers"| node_listing_skill
node_registry -->|"registers"| node_analytics_skill
node_registry -->|"registers"| node_voce_skill
node_engine -->|"builds graph"| node_mock_services
node_profile_skill -->|"reads and writes"| node_mock_services
node_listing_skill -->|"uses mock API"| node_mock_services
node_analytics_skill -->|"uses mock API"| node_mock_services
node_voce_skill -->|"uses mock API"| node_mock_services
node_mock_services -->|"reads and updates"| node_store
node_store -->|"loads initial data"| node_seed
node_store -->|"computes rating stats"| node_selectors
node_profile_page -->|"reads and edits"| node_store
node_directory -->|"reads profiles"| node_store
node_locations -->|"reads profiles"| node_store
node_messages -->|"reads and updates"| node_store
node_insights -->|"reads metrics"| node_store
node_profile_skill -->|"uses bio task"| node_ai_tasks
node_draft_generator -->|"requests AI draft"| node_ai_client
node_ai_client -->|"posts draft request"| node_ai_server
node_ai_server -->|"uses task definitions"| node_ai_tasks
node_ai_server -->|"requests completion"| node_anthropic
node_user -->|"requests profile drafts"| node_ai_client

click node_routes "https://github.com/anandhu-experience/nora-prototype/blob/main/src/App.tsx"
click node_layout "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/ui/SiteLayout.tsx"
click node_profile_page "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/ProfilePage.tsx"
click node_directory "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/DirectoryPage.tsx"
click node_locations "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/LocationsPage.tsx"
click node_messages "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/MessagesPage.tsx"
click node_insights "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/InsightsPage.tsx"
click node_nora_ui "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/ui/NoraPanel.tsx"
click node_nora_context "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/NoraContext.tsx"
click node_engine "https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/noraEngine.ts"
click node_state_machine "https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/noraMachine.ts"
click node_registry "https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/skillRegistry.ts"
click node_draft_generator "https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/generateSkillDraft.ts"
click node_profile_skill "https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/profile/actions.ts"
click node_listing_skill "https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/listings/actions.ts"
click node_analytics_skill "https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/analytics/actions.ts"
click node_voce_skill "https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/voce/actions.ts"
click node_mock_services "https://github.com/anandhu-experience/nora-prototype/tree/main/src/mock"
click node_store "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/store.ts"
click node_seed "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/seed.ts"
click node_selectors "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/selectors.ts"
click node_ai_tasks "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/aiTasks.ts"
click node_ai_client "https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/aiDrafts.ts"
click node_ai_server "https://github.com/anandhu-experience/nora-prototype/blob/main/server/aiDraft.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_routes,node_layout,node_profile_page,node_directory,node_locations,node_messages,node_insights,node_nora_ui,node_user toneBlue
class node_nora_context,node_engine,node_state_machine,node_registry,node_draft_generator toneAmber
class node_profile_skill,node_listing_skill,node_analytics_skill,node_voce_skill,node_mock_services toneMint
class node_store,node_seed,node_selectors toneRose
class node_ai_tasks,node_ai_client,node_ai_server,node_anthropic toneIndigo
```

## Components

### App and profile UI

- [Routes and auth](https://github.com/anandhu-experience/nora-prototype/blob/main/src/App.tsx): `src/App.tsx`
- [Site layout](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/ui/SiteLayout.tsx): `src/profile/ui/SiteLayout.tsx`
- [Profile page](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/ProfilePage.tsx): `src/profile/pages/ProfilePage.tsx`
- [Professionals directory](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/DirectoryPage.tsx): `src/profile/pages/DirectoryPage.tsx`
- [Locations](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/LocationsPage.tsx): `src/profile/pages/LocationsPage.tsx`
- [Messages and referrals](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/MessagesPage.tsx): `src/profile/pages/MessagesPage.tsx`
- [Insights dashboard](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/pages/InsightsPage.tsx): `src/profile/pages/InsightsPage.tsx`
- [NORA panel](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/ui/NoraPanel.tsx): `src/profile/ui/NoraPanel.tsx`

### NORA orchestration

- [NORA context](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/NoraContext.tsx): `src/profile/NoraContext.tsx`
- [NORA engine](https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/noraEngine.ts): `src/nora/noraEngine.ts`
- [NORA state machine](https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/noraMachine.ts): `src/nora/noraMachine.ts`
- [Skill registry](https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/skillRegistry.ts): `src/nora/skillRegistry.ts`
- [Skill draft generator](https://github.com/anandhu-experience/nora-prototype/blob/main/src/nora/generateSkillDraft.ts): `src/nora/generateSkillDraft.ts`

### Skills and mock services

- [Profile completion](https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/profile/actions.ts): `src/skills/profile/actions.ts`
- [Listing optimization](https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/listings/actions.ts): `src/skills/listings/actions.ts`
- [Analytics insight](https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/analytics/actions.ts): `src/skills/analytics/actions.ts`
- [VOCE explore](https://github.com/anandhu-experience/nora-prototype/blob/main/src/skills/voce/actions.ts): `src/skills/voce/actions.ts`
- [Mock API and graph](https://github.com/anandhu-experience/nora-prototype/tree/main/src/mock): `src/mock`

### Profile data

- [Profile store](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/store.ts): `src/profile/store.ts`
- [Profile seed data](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/seed.ts): `src/profile/seed.ts`
- [Profile selectors](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/selectors.ts): `src/profile/selectors.ts`

### AI drafting

- [AI task definitions](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/aiTasks.ts): `src/profile/aiTasks.ts`
- [Browser draft client](https://github.com/anandhu-experience/nora-prototype/blob/main/src/profile/aiDrafts.ts): `src/profile/aiDrafts.ts`
- [Draft API handler](https://github.com/anandhu-experience/nora-prototype/blob/main/server/aiDraft.ts): `server/aiDraft.ts`

### Other components

- **User**
- **Anthropic model service**

## Connections

- User → Routes and auth: opens app (evidence: `src/App.tsx`)
- Routes and auth → Site layout: routes through (evidence: `src/App.tsx`)
- Routes and auth → Profile page: routes to (evidence: `src/App.tsx`)
- Routes and auth → Professionals directory: routes to (evidence: `src/App.tsx`)
- Routes and auth → Locations: routes to (evidence: `src/App.tsx`)
- Routes and auth → Messages and referrals: routes to (evidence: `src/App.tsx`)
- Routes and auth → Insights dashboard: routes to (evidence: `src/App.tsx`)
- Site layout → NORA panel: renders (evidence: `src/profile/ui/SiteLayout.tsx`)
- NORA panel → NORA context: uses context (evidence: `src/profile/ui/NoraPanel.tsx`)
- NORA context → NORA engine: creates (evidence: `src/profile/NoraContext.tsx`)
- NORA engine → NORA state machine: dispatches state (evidence: `src/nora/noraEngine.ts`)
- NORA engine → Skill registry: evaluates skills (evidence: `src/nora/noraEngine.ts`)
- NORA engine → Skill draft generator: requests drafts (evidence: `src/nora/noraEngine.ts`)
- Skill registry → Profile completion: registers (evidence: `src/nora/skillRegistry.ts`)
- Skill registry → Listing optimization: registers (evidence: `src/nora/skillRegistry.ts`)
- Skill registry → Analytics insight: registers (evidence: `src/nora/skillRegistry.ts`)
- Skill registry → VOCE explore: registers (evidence: `src/nora/skillRegistry.ts`)
- NORA engine → Mock API and graph: builds graph (evidence: `src/nora/noraEngine.ts`)
- Profile completion → Mock API and graph: reads and writes (evidence: `README.md`)
- Listing optimization → Mock API and graph: uses mock API (evidence: `src/skills/listings/actions.ts`)
- Analytics insight → Mock API and graph: uses mock API (evidence: `src/skills/analytics/actions.ts`)
- VOCE explore → Mock API and graph: uses mock API (evidence: `src/skills/voce/actions.ts`)
- Mock API and graph → Profile store: reads and updates (evidence: `README.md`)
- Profile store → Profile seed data: loads initial data (evidence: `src/profile/store.ts`)
- Profile store → Profile selectors: computes rating stats (evidence: `src/profile/store.ts`)
- Profile page → Profile store: reads and edits (evidence: `src/profile/pages/ProfilePage.tsx`)
- Professionals directory → Profile store: reads profiles (evidence: `src/profile/pages/DirectoryPage.tsx`)
- Locations → Profile store: reads profiles (evidence: `src/profile/pages/LocationsPage.tsx`)
- Messages and referrals → Profile store: reads and updates (evidence: `src/profile/pages/MessagesPage.tsx`)
- Insights dashboard → Profile store: reads metrics (evidence: `src/profile/pages/InsightsPage.tsx`)
- Profile completion → AI task definitions: uses bio task (evidence: `src/skills/profile/actions.ts`)
- Skill draft generator → Browser draft client: requests AI draft (evidence: `README.md`)
- Browser draft client → Draft API handler: posts draft request (evidence: `README.md`)
- Draft API handler → AI task definitions: uses task definitions (evidence: `server/aiDraft.ts`)
- Draft API handler → Anthropic model service: requests completion (evidence: `README.md`)
- User → Browser draft client: requests profile drafts (evidence: `README.md`)
