# mixro/project-dit-hub architecture

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

- Interactive diagram: https://gitdiagram.com/mixro/project-dit-hub
- Repository: https://github.com/mixro/project-dit-hub

## Overview

DIT Project Discovery turns Word documents of project titles into privacy-screened public data, then serves that data through a browser app for project discovery and analysis. The documented pipeline runs from extraction through interpretation, enrichment, similarity, publishing, and a privacy gate. In the app, visitors browse or search projects, inspect project and problem details, compare projects, check an idea, and view insights. The pipeline sequence and several data-loading relationships are documented in the README; UI links are based on the App excerpt and SOURCE INDEX references, which do not expose every page implementation.

Main entry points: [`app/src/App.tsx`](https://github.com/mixro/project-dit-hub/blob/master/app/src/App.tsx) (Web app and routes), [`app/src/data/projectService.ts`](https://github.com/mixro/project-dit-hub/blob/master/app/src/data/projectService.ts) (Project service), [`pipeline/src/build.py`](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/build.py) (Build orchestrator), [`app/src/lib/core.tsx`](https://github.com/mixro/project-dit-hub/blob/master/app/src/lib/core.tsx) (Core data context)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Dataset pipeline"]
  node_build["Build orchestrator<br/>[build.py]"]
  node_extract["Document extraction<br/>[extract.py]"]
  node_interpret["Submission interpretation<br/>[interpret.py]"]
  node_enrich["Title enrichment<br/>[enrich.py]"]
  node_similarity["Project similarity<br/>[similarity.py]"]
  node_textnorm["Text normalization<br/>[textnorm.py]"]
  node_privacy["Privacy gate<br/>[privacy.py]"]
end

subgraph group_data["Public data layer"]
  node_publicdata["Published JSON<br/>[manifest.json]"]
  node_client["Dataset client<br/>[dataClient.ts]"]
  node_service["Project service<br/>[projectService.ts]"]
  node_search["Search engine<br/>[search.ts]"]
end

subgraph group_discovery["Project discovery"]
  node_projects["Project browsing<br/>[Projects.tsx]"]
  node_projectdetail["Project details<br/>[ProjectDetail.tsx]"]
  node_problems["Problem exploration<br/>[Problems.tsx]"]
  node_problem_detail["Problem details<br/>[ProblemDetail.tsx]"]
end

subgraph group_analysis["Analysis features"]
  node_idea["Idea checking<br/>[CheckIdea.tsx]"]
  node_compare["Project comparison<br/>[Compare.tsx]"]
  node_insights["Project insights<br/>[Insights.tsx]"]
end

subgraph group_appcore["App foundation"]
  node_app["Web app and routes<br/>[App.tsx]"]
  node_core["Core data context<br/>[core.tsx]"]
  node_resource["Resource loading<br/>[useResource.ts]"]
  node_analytics[("Usage analytics<br/>[analytics.ts]")]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_app
node_build -->|"runs"| node_extract
node_build -->|"runs"| node_interpret
node_build -->|"runs"| node_enrich
node_build -->|"runs"| node_similarity
node_build -->|"runs gate"| node_privacy
node_interpret -->|"uses"| node_textnorm
node_enrich -->|"uses"| node_textnorm
node_similarity -->|"uses"| node_textnorm
node_build -->|"publishes"| node_publicdata
node_privacy -->|"scans output"| node_publicdata
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_projectdetail
node_app -->|"routes to"| node_problems
node_app -->|"routes to"| node_problem_detail
node_app -->|"routes to"| node_idea
node_app -->|"routes to"| node_compare
node_app -->|"routes to"| node_insights
node_app -->|"provides"| node_core
node_app -->|"tracks views"| node_analytics
node_client -->|"fetches"| node_publicdata
node_service -->|"loads data"| node_client
node_service -->|"uses"| node_search
node_core -->|"loads core"| node_service
node_core -->|"uses"| node_resource
node_projects -->|"queries projects"| node_service
node_projectdetail -->|"loads project"| node_service
node_problems -.->|"loads problems"| node_service
node_problem_detail -->|"loads problem"| node_service
node_idea -->|"checks idea"| node_service
node_compare -->|"loads projects"| node_service
node_insights -.->|"loads insights"| node_service

click node_build "https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/build.py"
click node_extract "https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/extract.py"
click node_interpret "https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/interpret.py"
click node_enrich "https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/enrich.py"
click node_similarity "https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/similarity.py"
click node_textnorm "https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/textnorm.py"
click node_privacy "https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/privacy.py"
click node_publicdata "https://github.com/mixro/project-dit-hub/blob/master/app/public/data/manifest.json"
click node_app "https://github.com/mixro/project-dit-hub/blob/master/app/src/App.tsx"
click node_client "https://github.com/mixro/project-dit-hub/blob/master/app/src/data/dataClient.ts"
click node_service "https://github.com/mixro/project-dit-hub/blob/master/app/src/data/projectService.ts"
click node_search "https://github.com/mixro/project-dit-hub/blob/master/app/src/data/search.ts"
click node_core "https://github.com/mixro/project-dit-hub/blob/master/app/src/lib/core.tsx"
click node_resource "https://github.com/mixro/project-dit-hub/blob/master/app/src/data/useResource.ts"
click node_analytics "https://github.com/mixro/project-dit-hub/blob/master/app/src/lib/analytics.ts"
click node_projects "https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Projects.tsx"
click node_projectdetail "https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/ProjectDetail.tsx"
click node_problems "https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Problems.tsx"
click node_problem_detail "https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/ProblemDetail.tsx"
click node_idea "https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/CheckIdea.tsx"
click node_compare "https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Compare.tsx"
click node_insights "https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Insights.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_build,node_extract,node_interpret,node_enrich,node_similarity,node_textnorm,node_privacy toneBlue
class node_publicdata,node_client,node_service,node_search toneAmber
class node_projects,node_projectdetail,node_problems,node_problem_detail toneMint
class node_idea,node_compare,node_insights toneRose
class node_app,node_core,node_resource,node_analytics,node_visitor toneIndigo
```

## Components

### Dataset pipeline

- [Build orchestrator](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/build.py): `pipeline/src/build.py`
- [Document extraction](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/extract.py): `pipeline/src/extract.py`
- [Submission interpretation](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/interpret.py): `pipeline/src/interpret.py`
- [Title enrichment](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/enrich.py): `pipeline/src/enrich.py`
- [Project similarity](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/similarity.py): `pipeline/src/similarity.py`
- [Text normalization](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/textnorm.py): `pipeline/src/textnorm.py`
- [Privacy gate](https://github.com/mixro/project-dit-hub/blob/master/pipeline/src/privacy.py): `pipeline/src/privacy.py`

### Public data layer

- [Published JSON](https://github.com/mixro/project-dit-hub/blob/master/app/public/data/manifest.json): `app/public/data/manifest.json`
- [Dataset client](https://github.com/mixro/project-dit-hub/blob/master/app/src/data/dataClient.ts): `app/src/data/dataClient.ts`
- [Project service](https://github.com/mixro/project-dit-hub/blob/master/app/src/data/projectService.ts): `app/src/data/projectService.ts`
- [Search engine](https://github.com/mixro/project-dit-hub/blob/master/app/src/data/search.ts): `app/src/data/search.ts`

### Project discovery

- [Project browsing](https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Projects.tsx): `app/src/pages/Projects.tsx`
- [Project details](https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/ProjectDetail.tsx): `app/src/pages/ProjectDetail.tsx`
- [Problem exploration](https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Problems.tsx): `app/src/pages/Problems.tsx`
- [Problem details](https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/ProblemDetail.tsx): `app/src/pages/ProblemDetail.tsx`

### Analysis features

- [Idea checking](https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/CheckIdea.tsx): `app/src/pages/CheckIdea.tsx`
- [Project comparison](https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Compare.tsx): `app/src/pages/Compare.tsx`
- [Project insights](https://github.com/mixro/project-dit-hub/blob/master/app/src/pages/Insights.tsx): `app/src/pages/Insights.tsx`

### App foundation

- [Web app and routes](https://github.com/mixro/project-dit-hub/blob/master/app/src/App.tsx): `app/src/App.tsx`
- [Core data context](https://github.com/mixro/project-dit-hub/blob/master/app/src/lib/core.tsx): `app/src/lib/core.tsx`
- [Resource loading](https://github.com/mixro/project-dit-hub/blob/master/app/src/data/useResource.ts): `app/src/data/useResource.ts`
- [Usage analytics](https://github.com/mixro/project-dit-hub/blob/master/app/src/lib/analytics.ts): `app/src/lib/analytics.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Web app and routes: uses (evidence: `README.md`)
- Build orchestrator → Document extraction: runs (evidence: `pipeline/src/build.py`)
- Build orchestrator → Submission interpretation: runs (evidence: `pipeline/src/build.py`)
- Build orchestrator → Title enrichment: runs (evidence: `pipeline/src/build.py`)
- Build orchestrator → Project similarity: runs (evidence: `pipeline/src/build.py`)
- Build orchestrator → Privacy gate: runs gate (evidence: `README.md`)
- Submission interpretation → Text normalization: uses (evidence: `pipeline/src/interpret.py`)
- Title enrichment → Text normalization: uses (evidence: `pipeline/src/enrich.py`)
- Project similarity → Text normalization: uses (evidence: `pipeline/src/similarity.py`)
- Build orchestrator → Published JSON: publishes (evidence: `README.md`)
- Privacy gate → Published JSON: scans output (evidence: `README.md`)
- Web app and routes → Project browsing: routes to (evidence: `app/src/App.tsx`)
- Web app and routes → Project details: routes to (evidence: `app/src/App.tsx`)
- Web app and routes → Problem exploration: routes to (evidence: `app/src/App.tsx`)
- Web app and routes → Problem details: routes to (evidence: `app/src/App.tsx`)
- Web app and routes → Idea checking: routes to (evidence: `app/src/App.tsx`)
- Web app and routes → Project comparison: routes to (evidence: `app/src/App.tsx`)
- Web app and routes → Project insights: routes to (evidence: `app/src/App.tsx`)
- Web app and routes → Core data context: provides (evidence: `app/src/App.tsx`)
- Web app and routes → Usage analytics: tracks views (evidence: `app/src/App.tsx`)
- Dataset client → Published JSON: fetches (evidence: `README.md`)
- Project service → Dataset client: loads data (evidence: `app/src/data/projectService.ts`)
- Project service → Search engine: uses (evidence: `app/src/data/projectService.ts`)
- Core data context → Project service: loads core (evidence: `app/src/lib/core.tsx`)
- Core data context → Resource loading: uses (evidence: `app/src/lib/core.tsx`)
- Project browsing → Project service: queries projects (evidence: `app/src/pages/Projects.tsx`)
- Project details → Project service: loads project (evidence: `app/src/pages/ProjectDetail.tsx`)
- Problem exploration → Project service: loads problems
- Problem details → Project service: loads problem (evidence: `app/src/pages/ProblemDetail.tsx`)
- Idea checking → Project service: checks idea (evidence: `app/src/pages/CheckIdea.tsx`)
- Project comparison → Project service: loads projects (evidence: `app/src/pages/Compare.tsx`)
- Project insights → Project service: loads insights
