# tezosclubnexuscit/devforge architecture

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

- Interactive diagram: https://gitdiagram.com/tezosclubnexuscit/devforge
- Repository: https://github.com/tezosclubnexuscit/devforge

## Overview

DevForge is a full-stack practice suite for solving HTML/CSS/JavaScript challenges. Learners choose a curated or generated challenge, edit code in a workspace, compare a live preview with the target, run browser tests, and review saved progress. AI hints and challenge generation use configurable local or cloud language models; the app also supports provider configuration and local model management. The graph reflects documented capabilities and indexed module references; some implementation details are unsampled, so uncertain links are omitted.

Main entry points: [`frontend/src/App.tsx`](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/App.tsx) (Application shell), [`frontend/src/components/Workspace.tsx`](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/Workspace.tsx) (Coding workspace), [`backend/app/main.py`](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/main.py) (FastAPI application), [`frontend/src/services/api.ts`](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/services/api.ts) (Frontend API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learner["Practice workspace"]
  node_app["Application shell<br/>[App.tsx]"]
  node_browser["Challenge browser"]
  node_workspace["Coding workspace<br/>[Workspace.tsx]"]
  node_editor["Code editor<br/>[CodeEditor.tsx]"]
  node_preview["Live preview and tests<br/>[LivePreview.tsx]"]
  node_expected["Target output preview"]
  node_results["Test results<br/>[TestResults.tsx]"]
  node_hintmodal["AI tutor modal<br/>[AIHintModal.tsx]"]
  node_dashboard["Progress dashboard"]
  node_settings["LLM settings and installer"]
  node_generator["Challenge generator"]
  node_api["Frontend API client<br/>[api.ts]"]
end

subgraph group_challenge["Challenge services"]
  node_server["FastAPI application<br/>[main.py]"]
  node_challengeapi["Challenge API<br/>[challenges.py]"]
  node_submissionapi["Submission API<br/>[submissions.py]"]
  node_validator["Challenge validation"]
  node_schemas["Challenge and API schemas<br/>[challenge.py]"]
  node_seed["Curated challenge seed data<br/>[seed_data.py]"]
end

subgraph group_ai["AI services"]
  node_llmapi["LLM API<br/>[llm.py]"]
  node_llmservice["LLM provider service<br/>[llm_service.py]"]
end

subgraph group_data["Persistence and progress"]
  node_progressapi["Progress API<br/>[progress.py]"]
  node_database[("SQLite data models<br/>[database.py]")]
end

node_learner(("Learner"))
node_provider{{"LLM providers"}}

node_learner -->|"uses"| node_app
node_app -->|"loads data"| node_api
node_app -->|"opens workspace"| node_workspace
node_app -->|"shows challenges"| node_browser
node_app -->|"shows progress"| node_dashboard
node_app -->|"opens settings"| node_settings
node_app -->|"opens generator"| node_generator
node_workspace -->|"renders"| node_editor
node_workspace -->|"renders"| node_preview
node_workspace -->|"renders"| node_expected
node_workspace -->|"renders"| node_results
node_workspace -->|"opens"| node_hintmodal
node_workspace -->|"submits code"| node_api
node_browser -.->|"loads challenges"| node_api
node_dashboard -.->|"loads progress"| node_api
node_settings -.->|"configures provider"| node_api
node_generator -.->|"requests challenge"| node_api
node_hintmodal -.->|"requests hint"| node_api
node_api -->|"HTTP requests"| node_server
node_server -->|"mounts router"| node_challengeapi
node_server -->|"mounts router"| node_submissionapi
node_server -->|"mounts router"| node_llmapi
node_server -->|"mounts router"| node_progressapi
node_server -->|"initializes"| node_database
node_server -->|"seeds challenges"| node_seed
node_challengeapi -->|"reads and writes"| node_database
node_challengeapi -->|"uses schemas"| node_schemas
node_challengeapi -->|"validates"| node_validator
node_challengeapi -->|"generates challenges"| node_llmservice
node_submissionapi -->|"records attempts"| node_database
node_submissionapi -->|"uses schemas"| node_schemas
node_progressapi -->|"reads progress"| node_database
node_llmapi -->|"loads challenge and settings"| node_database
node_llmapi -->|"requests AI operations"| node_llmservice
node_llmapi -->|"uses schemas"| node_schemas
node_seed -->|"populates"| node_database
node_llmservice -->|"calls provider APIs"| node_provider

click node_app "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/App.tsx"
click node_browser "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ChallengeBrowser.tsx"
click node_workspace "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/Workspace.tsx"
click node_editor "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/CodeEditor.tsx"
click node_preview "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/LivePreview.tsx"
click node_expected "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ExpectedOutputPreview.tsx"
click node_results "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/TestResults.tsx"
click node_hintmodal "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/AIHintModal.tsx"
click node_dashboard "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ProgressDashboard.tsx"
click node_settings "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/LLMSettingsModal.tsx"
click node_generator "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ChallengeGeneratorModal.tsx"
click node_api "https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/services/api.ts"
click node_server "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/main.py"
click node_challengeapi "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/challenges.py"
click node_submissionapi "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/submissions.py"
click node_progressapi "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/progress.py"
click node_llmapi "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/llm.py"
click node_validator "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/services/challenge_validator.py"
click node_llmservice "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/services/llm_service.py"
click node_schemas "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/schemas/challenge.py"
click node_seed "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/seed_data.py"
click node_database "https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/models/database.py"

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_app,node_browser,node_workspace,node_editor,node_preview,node_expected,node_results,node_hintmodal,node_dashboard,node_settings,node_generator,node_api toneBlue
class node_server,node_challengeapi,node_submissionapi,node_validator,node_schemas,node_seed toneAmber
class node_llmapi,node_llmservice toneMint
class node_progressapi,node_database toneRose
class node_learner,node_provider toneIndigo
```

## Components

### Practice workspace

- [Application shell](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Challenge browser](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ChallengeBrowser.tsx): `frontend/src/components/ChallengeBrowser.tsx`
- [Coding workspace](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/Workspace.tsx): `frontend/src/components/Workspace.tsx`
- [Code editor](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/CodeEditor.tsx): `frontend/src/components/CodeEditor.tsx`
- [Live preview and tests](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/LivePreview.tsx): `frontend/src/components/LivePreview.tsx`
- [Target output preview](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ExpectedOutputPreview.tsx): `frontend/src/components/ExpectedOutputPreview.tsx`
- [Test results](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/TestResults.tsx): `frontend/src/components/TestResults.tsx`
- [AI tutor modal](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/AIHintModal.tsx): `frontend/src/components/AIHintModal.tsx`
- [Progress dashboard](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ProgressDashboard.tsx): `frontend/src/components/ProgressDashboard.tsx`
- [LLM settings and installer](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/LLMSettingsModal.tsx): `frontend/src/components/LLMSettingsModal.tsx`
- [Challenge generator](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/components/ChallengeGeneratorModal.tsx): `frontend/src/components/ChallengeGeneratorModal.tsx`
- [Frontend API client](https://github.com/tezosclubnexuscit/devforge/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`

### Challenge services

- [FastAPI application](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/main.py): `backend/app/main.py`
- [Challenge API](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/challenges.py): `backend/app/api/challenges.py`
- [Submission API](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/submissions.py): `backend/app/api/submissions.py`
- [Challenge validation](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/services/challenge_validator.py): `backend/app/services/challenge_validator.py`
- [Challenge and API schemas](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/schemas/challenge.py): `backend/app/schemas/challenge.py`
- [Curated challenge seed data](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/seed_data.py): `backend/app/seed_data.py`

### AI services

- [LLM API](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/llm.py): `backend/app/api/llm.py`
- [LLM provider service](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/services/llm_service.py): `backend/app/services/llm_service.py`

### Persistence and progress

- [Progress API](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/api/progress.py): `backend/app/api/progress.py`
- [SQLite data models](https://github.com/tezosclubnexuscit/devforge/blob/main/backend/app/models/database.py): `backend/app/models/database.py`

### Other components

- **Learner**
- **LLM providers**

## Connections

- Learner → Application shell: uses (evidence: `README.md`)
- Application shell → Frontend API client: loads data (evidence: `frontend/src/App.tsx`)
- Application shell → Coding workspace: opens workspace (evidence: `frontend/src/App.tsx`)
- Application shell → Challenge browser: shows challenges (evidence: `frontend/src/App.tsx`)
- Application shell → Progress dashboard: shows progress (evidence: `frontend/src/App.tsx`)
- Application shell → LLM settings and installer: opens settings (evidence: `frontend/src/App.tsx`)
- Application shell → Challenge generator: opens generator (evidence: `frontend/src/App.tsx`)
- Coding workspace → Code editor: renders (evidence: `frontend/src/components/Workspace.tsx`)
- Coding workspace → Live preview and tests: renders (evidence: `frontend/src/components/Workspace.tsx`)
- Coding workspace → Target output preview: renders (evidence: `frontend/src/components/Workspace.tsx`)
- Coding workspace → Test results: renders (evidence: `frontend/src/components/Workspace.tsx`)
- Coding workspace → AI tutor modal: opens (evidence: `frontend/src/components/Workspace.tsx`)
- Coding workspace → Frontend API client: submits code (evidence: `frontend/src/components/Workspace.tsx`)
- Challenge browser → Frontend API client: loads challenges
- Progress dashboard → Frontend API client: loads progress
- LLM settings and installer → Frontend API client: configures provider (evidence: `frontend/src/components/LLMSettingsModal.tsx`)
- Challenge generator → Frontend API client: requests challenge (evidence: `frontend/src/components/ChallengeGeneratorModal.tsx`)
- AI tutor modal → Frontend API client: requests hint (evidence: `frontend/src/components/AIHintModal.tsx`)
- Frontend API client → FastAPI application: HTTP requests (evidence: `frontend/src/services/api.ts`)
- FastAPI application → Challenge API: mounts router (evidence: `backend/app/main.py`)
- FastAPI application → Submission API: mounts router (evidence: `backend/app/main.py`)
- FastAPI application → LLM API: mounts router (evidence: `backend/app/main.py`)
- FastAPI application → Progress API: mounts router (evidence: `backend/app/main.py`)
- FastAPI application → SQLite data models: initializes (evidence: `backend/app/main.py`)
- FastAPI application → Curated challenge seed data: seeds challenges (evidence: `backend/app/main.py`)
- Challenge API → SQLite data models: reads and writes (evidence: `backend/app/api/challenges.py`)
- Challenge API → Challenge and API schemas: uses schemas (evidence: `backend/app/api/challenges.py`)
- Challenge API → Challenge validation: validates (evidence: `backend/app/api/challenges.py`)
- Challenge API → LLM provider service: generates challenges (evidence: `backend/app/api/challenges.py`)
- Submission API → SQLite data models: records attempts (evidence: `backend/app/api/submissions.py`)
- Submission API → Challenge and API schemas: uses schemas (evidence: `backend/app/api/submissions.py`)
- Progress API → SQLite data models: reads progress (evidence: `backend/app/api/progress.py`)
- LLM API → SQLite data models: loads challenge and settings (evidence: `backend/app/api/llm.py`)
- LLM API → LLM provider service: requests AI operations (evidence: `backend/app/api/llm.py`)
- LLM API → Challenge and API schemas: uses schemas (evidence: `backend/app/api/llm.py`)
- Curated challenge seed data → SQLite data models: populates (evidence: `backend/app/seed_data.py`)
- LLM provider service → LLM providers: calls provider APIs (evidence: `backend/app/services/llm_service.py`)
