# harshal1428/knovia-ai architecture

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

- Interactive diagram: https://gitdiagram.com/harshal1428/knovia-ai
- Repository: https://github.com/harshal1428/knovia-ai

## Overview

KNOVIA AI is presented here as a React workbench UI for enterprise engineering workflows. The visible user journey is sign-in, enter the Workbench, and explore engineering analysis or drawing workflows, with project, knowledge, approval, and security areas available as separate pages. The README describes a broader on-premise AI platform, but the sampled implementation is a frontend prototype: its analysis page simulates progress, and no backend integrations are shown. Accordingly, the graph maps UI routing and documented capabilities without implying those services are implemented.

Main entry points: [`src/App.tsx`](https://github.com/harshal1428/knovia-ai/blob/main/src/App.tsx) (App router), [`src/context/NavContext.tsx`](https://github.com/harshal1428/knovia-ai/blob/main/src/context/NavContext.tsx) (Navigation state), [`src/components/Sidebar.tsx`](https://github.com/harshal1428/knovia-ai/blob/main/src/components/Sidebar.tsx) (Sidebar), [`src/components/Header.tsx`](https://github.com/harshal1428/knovia-ai/blob/main/src/components/Header.tsx) (Header)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_mount["React entry<br/>[main.tsx]"]
  node_app["App router<br/>[App.tsx]"]
  node_navigation["Navigation state<br/>[NavContext.tsx]"]
  node_sidebar["Sidebar<br/>[Sidebar.tsx]"]
  node_header["Header<br/>[Header.tsx]"]
  node_login["Sign-in<br/>[Login.tsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
end

subgraph group_workflow["Engineering Workflows"]
  node_workbench["Workbench chat<br/>[Workbench.tsx]"]
  node_engineering["Engineering analysis"]
  node_drawings["Drawing workspace"]
  node_multimodal["Multimodal workspace"]
end

subgraph group_knowledge["Knowledge Work"]
  node_documents["Document workspace<br/>[Documents.tsx]"]
  node_knowledgebase["Knowledge base<br/>[KnowledgeBase.tsx]"]
  node_notebooks["Research notebooks"]
end

subgraph group_operations["Work And Governance"]
  node_projects["Projects<br/>[Projects.tsx]"]
  node_projectdetail["Project detail<br/>[ProjectDetail.tsx]"]
  node_tasks["Tasks<br/>[Tasks.tsx]"]
  node_artifacts["Artifacts<br/>[Artifacts.tsx]"]
  node_approvals["Approvals<br/>[Approvals.tsx]"]
  node_audit["Audit trail<br/>[AuditTrail.tsx]"]
  node_security["Security center<br/>[SecurityCenter.tsx]"]
  node_rbac["Access control<br/>[RBAC.tsx]"]
  node_network["Network security"]
end

subgraph group_ai["AI And Platform"]
  node_agents["Agent catalog<br/>[Agents.tsx]"]
  node_router["Model routing<br/>[ModelRouter.tsx]"]
  node_models["Models<br/>[Models.tsx]"]
  node_gpu["GPU compute<br/>[GPU.tsx]"]
end

node_user(("Workbench user"))

node_mount -->|"renders"| node_app
node_user -.->|"uses"| node_app
node_app -->|"shows when unauthenticated"| node_login
node_app -->|"provides state"| node_navigation
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_header
node_sidebar -->|"reads and updates"| node_navigation
node_header -->|"reads and updates"| node_navigation
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_workbench
node_app -->|"routes to"| node_engineering
node_app -->|"routes to"| node_drawings
node_app -->|"routes to"| node_multimodal
node_app -->|"routes to"| node_documents
node_app -->|"routes to"| node_knowledgebase
node_app -->|"routes to"| node_notebooks
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_projectdetail
node_app -->|"routes to"| node_tasks
node_app -->|"routes to"| node_artifacts
node_app -->|"routes to"| node_approvals
node_app -->|"routes to"| node_audit
node_app -->|"routes to"| node_security
node_app -->|"routes to"| node_rbac
node_app -->|"routes to"| node_network
node_app -->|"routes to"| node_agents
node_app -->|"routes to"| node_router
node_app -->|"routes to"| node_models

click node_mount "https://github.com/harshal1428/knovia-ai/blob/main/src/main.tsx"
click node_app "https://github.com/harshal1428/knovia-ai/blob/main/src/App.tsx"
click node_navigation "https://github.com/harshal1428/knovia-ai/blob/main/src/context/NavContext.tsx"
click node_sidebar "https://github.com/harshal1428/knovia-ai/blob/main/src/components/Sidebar.tsx"
click node_header "https://github.com/harshal1428/knovia-ai/blob/main/src/components/Header.tsx"
click node_login "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Login.tsx"
click node_dashboard "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Dashboard.tsx"
click node_workbench "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Workbench.tsx"
click node_engineering "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/EngineeringAnalysis.tsx"
click node_drawings "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/EngineeringDrawings.tsx"
click node_multimodal "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/MultimodalWorkspace.tsx"
click node_documents "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Documents.tsx"
click node_knowledgebase "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/KnowledgeBase.tsx"
click node_notebooks "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/ResearchNotebooks.tsx"
click node_projects "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Projects.tsx"
click node_projectdetail "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/ProjectDetail.tsx"
click node_tasks "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Tasks.tsx"
click node_artifacts "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Artifacts.tsx"
click node_approvals "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Approvals.tsx"
click node_audit "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/AuditTrail.tsx"
click node_security "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/SecurityCenter.tsx"
click node_rbac "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/RBAC.tsx"
click node_network "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/NetworkSecurity.tsx"
click node_agents "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Agents.tsx"
click node_router "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/ModelRouter.tsx"
click node_models "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Models.tsx"
click node_gpu "https://github.com/harshal1428/knovia-ai/blob/main/src/pages/GPU.tsx"

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_mount,node_app,node_navigation,node_sidebar,node_header,node_login,node_dashboard,node_user toneBlue
class node_workbench,node_engineering,node_drawings,node_multimodal toneAmber
class node_documents,node_knowledgebase,node_notebooks toneMint
class node_projects,node_projectdetail,node_tasks,node_artifacts,node_approvals,node_audit,node_security,node_rbac,node_network toneRose
class node_agents,node_router,node_models,node_gpu toneIndigo
```

## Components

### Application Shell

- [React entry](https://github.com/harshal1428/knovia-ai/blob/main/src/main.tsx): `src/main.tsx`
- [App router](https://github.com/harshal1428/knovia-ai/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation state](https://github.com/harshal1428/knovia-ai/blob/main/src/context/NavContext.tsx): `src/context/NavContext.tsx`
- [Sidebar](https://github.com/harshal1428/knovia-ai/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Header](https://github.com/harshal1428/knovia-ai/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Sign-in](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Login.tsx): `src/pages/Login.tsx`
- [Dashboard](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Dashboard.tsx): `src/pages/Dashboard.tsx`

### Engineering Workflows

- [Workbench chat](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Workbench.tsx): `src/pages/Workbench.tsx`
- [Engineering analysis](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/EngineeringAnalysis.tsx): `src/pages/EngineeringAnalysis.tsx`
- [Drawing workspace](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/EngineeringDrawings.tsx): `src/pages/EngineeringDrawings.tsx`
- [Multimodal workspace](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/MultimodalWorkspace.tsx): `src/pages/MultimodalWorkspace.tsx`

### Knowledge Work

- [Document workspace](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Documents.tsx): `src/pages/Documents.tsx`
- [Knowledge base](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/KnowledgeBase.tsx): `src/pages/KnowledgeBase.tsx`
- [Research notebooks](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/ResearchNotebooks.tsx): `src/pages/ResearchNotebooks.tsx`

### Work And Governance

- [Projects](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Projects.tsx): `src/pages/Projects.tsx`
- [Project detail](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/ProjectDetail.tsx): `src/pages/ProjectDetail.tsx`
- [Tasks](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Tasks.tsx): `src/pages/Tasks.tsx`
- [Artifacts](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Artifacts.tsx): `src/pages/Artifacts.tsx`
- [Approvals](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Approvals.tsx): `src/pages/Approvals.tsx`
- [Audit trail](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/AuditTrail.tsx): `src/pages/AuditTrail.tsx`
- [Security center](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/SecurityCenter.tsx): `src/pages/SecurityCenter.tsx`
- [Access control](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/RBAC.tsx): `src/pages/RBAC.tsx`
- [Network security](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/NetworkSecurity.tsx): `src/pages/NetworkSecurity.tsx`

### AI And Platform

- [Agent catalog](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Agents.tsx): `src/pages/Agents.tsx`
- [Model routing](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/ModelRouter.tsx): `src/pages/ModelRouter.tsx`
- [Models](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/Models.tsx): `src/pages/Models.tsx`
- [GPU compute](https://github.com/harshal1428/knovia-ai/blob/main/src/pages/GPU.tsx): `src/pages/GPU.tsx`

### Other components

- **Workbench user**

## Connections

- React entry → App router: renders (evidence: `src/main.tsx`)
- Workbench user → App router: uses
- App router → Sign-in: shows when unauthenticated (evidence: `src/App.tsx`)
- App router → Navigation state: provides state (evidence: `src/App.tsx`)
- App router → Sidebar: renders (evidence: `src/App.tsx`)
- App router → Header: renders (evidence: `src/App.tsx`)
- Sidebar → Navigation state: reads and updates (evidence: `src/components/Sidebar.tsx`)
- Header → Navigation state: reads and updates (evidence: `src/components/Header.tsx`)
- App router → Dashboard: routes to (evidence: `src/App.tsx`)
- App router → Workbench chat: routes to (evidence: `src/App.tsx`)
- App router → Engineering analysis: routes to (evidence: `src/App.tsx`)
- App router → Drawing workspace: routes to (evidence: `src/App.tsx`)
- App router → Multimodal workspace: routes to (evidence: `src/App.tsx`)
- App router → Document workspace: routes to (evidence: `src/App.tsx`)
- App router → Knowledge base: routes to (evidence: `src/App.tsx`)
- App router → Research notebooks: routes to (evidence: `src/App.tsx`)
- App router → Projects: routes to (evidence: `src/App.tsx`)
- App router → Project detail: routes to (evidence: `src/App.tsx`)
- App router → Tasks: routes to (evidence: `src/App.tsx`)
- App router → Artifacts: routes to (evidence: `src/App.tsx`)
- App router → Approvals: routes to (evidence: `src/App.tsx`)
- App router → Audit trail: routes to (evidence: `src/App.tsx`)
- App router → Security center: routes to (evidence: `src/App.tsx`)
- App router → Access control: routes to (evidence: `src/App.tsx`)
- App router → Network security: routes to (evidence: `src/App.tsx`)
- App router → Agent catalog: routes to (evidence: `src/App.tsx`)
- App router → Model routing: routes to (evidence: `src/App.tsx`)
- App router → Models: routes to (evidence: `src/App.tsx`)
