# authorsauravkushwaha/engineverse architecture

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

- Interactive diagram: https://gitdiagram.com/authorsauravkushwaha/engineverse
- Repository: https://github.com/authorsauravkushwaha/engineverse

## Overview

EngineVerse is a self-hosted learning platform: learners browse engineering content, practice and submit code, revise, build projects, and track progress; public portfolios and certificates expose achievements. FastAPI server-rendered pages and JSON APIs route requests into domain services backed by SQL. The README documents additional major capabilities whose implementations were not sampled; those are represented at their documented module paths. Edges follow shown imports/calls or README statements; unsampled subsystem links are omitted where their caller was not shown.

Main entry points: [`backend/web/api.py`](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/api.py) (JSON API), [`backend/web/pages.py`](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/pages.py) (Page routes), [`backend/engineverse/db.py`](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/db.py) (SQL database), [`backend/engineverse/catalog.py`](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/catalog.py) (Notes catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_web_pages["Page routes<br/>[pages.py]"]
  node_web_api["JSON API<br/>[api.py]"]
  node_request_deps["Request context<br/>[deps.py]"]
  node_web_client["Browser client<br/>[app.js]"]
end

subgraph group_learning["Learning content"]
  node_catalog["Notes catalog<br/>[catalog.py]"]
  node_diagrams["Topic diagrams<br/>[diagrams.py]"]
  node_models3d["3D models<br/>[models3d.py]"]
  node_library["Resource library<br/>[library.py]"]
  node_search["Universal search<br/>[search.py]"]
  node_roadmaps["Skill roadmaps<br/>[ladders.py]"]
  node_tutor["Grounded tutor<br/>[tutor.py]"]
end

subgraph group_practice["Practice and revision"]
  node_practice["Practice questions<br/>[practice.py]"]
  node_coding["Coding problems<br/>[coding.py]"]
  node_judge["Code judge<br/>[__init__.py]"]
  node_java_sandbox["Java sandbox<br/>[Runner.java]"]
  node_srs["Spaced revision<br/>[srs.py]"]
  node_projects["Build projects<br/>[projects.py]"]
end

subgraph group_community["Community and growth"]
  node_community["Community<br/>[community.py]"]
  node_progress["Progress and XP<br/>[progress.py]"]
  node_certificates["Certificates<br/>[certificates.py]"]
end

subgraph group_platform["Platform services"]
  node_auth["Authentication<br/>[auth.py]"]
  node_security["Security controls<br/>[rbac.py]"]
  node_brand["Brand settings<br/>[brand.py]"]
  node_database[("SQL database<br/>[db.py]")]
end

node_learner(("Learner"))

node_learner -->|"browses"| node_web_pages
node_learner -->|"uses"| node_web_client
node_web_client -->|"calls"| node_web_api
node_web_pages -->|"renders with"| node_request_deps
node_web_pages -->|"loads content"| node_catalog
node_web_pages -->|"loads practice"| node_practice
node_web_pages -->|"lists projects"| node_projects
node_web_pages -->|"lists resources"| node_library
node_web_pages -->|"searches"| node_search
node_web_pages -->|"shows roadmaps"| node_roadmaps
node_web_api -->|"handles accounts"| node_auth
node_web_api -->|"serves content"| node_catalog
node_web_api -->|"serves questions"| node_practice
node_web_api -->|"handles submissions"| node_coding
node_web_api -->|"runs code"| node_judge
node_web_api -->|"serves community"| node_community
node_web_api -->|"handles revision"| node_srs
node_web_api -->|"serves projects"| node_projects
node_web_api -->|"answers questions"| node_tutor
node_web_api -->|"serves certificates"| node_certificates
node_web_api -->|"records activity"| node_progress
node_request_deps -->|"resolves viewer"| node_auth
node_request_deps -->|"loads stats"| node_progress
node_catalog -->|"loads models"| node_models3d
node_coding -->|"evaluates solutions"| node_judge
node_judge -->|"runs in JVM"| node_java_sandbox
node_progress -->|"issues certificates"| node_certificates
node_auth -->|"reads and writes"| node_database
node_catalog -->|"reads content"| node_database
node_search -->|"queries index"| node_database
node_community -->|"reads and writes"| node_database
node_progress -->|"records progress"| node_database
node_certificates -->|"stores awards"| node_database
node_brand -->|"stores settings"| node_database
node_security -.->|"authorizes requests"| node_web_api

click node_web_pages "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/pages.py"
click node_web_api "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/api.py"
click node_request_deps "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/deps.py"
click node_web_client "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/static/js/app.js"
click node_catalog "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/catalog.py"
click node_diagrams "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/diagrams.py"
click node_models3d "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/models3d.py"
click node_library "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/library.py"
click node_search "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/search.py"
click node_practice "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/practice.py"
click node_coding "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/coding.py"
click node_judge "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/judge/__init__.py"
click node_java_sandbox "https://github.com/authorsauravkushwaha/engineverse/blob/main/sandbox-java/src/main/java/dev/engineverse/sandbox/Runner.java"
click node_srs "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/srs.py"
click node_projects "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/projects.py"
click node_roadmaps "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/ladders.py"
click node_tutor "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/tutor.py"
click node_community "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/community.py"
click node_progress "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/progress.py"
click node_certificates "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/certificates.py"
click node_auth "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/auth.py"
click node_security "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/security/rbac.py"
click node_brand "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/brand.py"
click node_database "https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/db.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_web_pages,node_web_api,node_request_deps,node_web_client toneBlue
class node_catalog,node_diagrams,node_models3d,node_library,node_search,node_roadmaps,node_tutor toneAmber
class node_practice,node_coding,node_judge,node_java_sandbox,node_srs,node_projects toneMint
class node_community,node_progress,node_certificates toneRose
class node_auth,node_security,node_brand,node_database,node_learner toneIndigo
```

## Components

### Web experience

- [Page routes](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/pages.py): `backend/web/pages.py`
- [JSON API](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/api.py): `backend/web/api.py`
- [Request context](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/web/deps.py): `backend/web/deps.py`
- [Browser client](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/static/js/app.js): `backend/static/js/app.js`

### Learning content

- [Notes catalog](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/catalog.py): `backend/engineverse/catalog.py`
- [Topic diagrams](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/diagrams.py): `backend/engineverse/diagrams.py`
- [3D models](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/models3d.py): `backend/engineverse/models3d.py`
- [Resource library](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/library.py): `backend/engineverse/library.py`
- [Universal search](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/search.py): `backend/engineverse/search.py`
- [Skill roadmaps](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/ladders.py): `backend/engineverse/ladders.py`
- [Grounded tutor](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/tutor.py): `backend/engineverse/tutor.py`

### Practice and revision

- [Practice questions](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/practice.py): `backend/engineverse/practice.py`
- [Coding problems](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/coding.py): `backend/engineverse/coding.py`
- [Code judge](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/judge/__init__.py): `backend/engineverse/judge/__init__.py`
- [Java sandbox](https://github.com/authorsauravkushwaha/engineverse/blob/main/sandbox-java/src/main/java/dev/engineverse/sandbox/Runner.java): `sandbox-java/src/main/java/dev/engineverse/sandbox/Runner.java`
- [Spaced revision](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/srs.py): `backend/engineverse/srs.py`
- [Build projects](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/projects.py): `backend/engineverse/projects.py`

### Community and growth

- [Community](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/community.py): `backend/engineverse/community.py`
- [Progress and XP](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/progress.py): `backend/engineverse/progress.py`
- [Certificates](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/certificates.py): `backend/engineverse/certificates.py`

### Platform services

- [Authentication](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/auth.py): `backend/engineverse/auth.py`
- [Security controls](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/security/rbac.py): `backend/engineverse/security/rbac.py`
- [Brand settings](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/brand.py): `backend/engineverse/brand.py`
- [SQL database](https://github.com/authorsauravkushwaha/engineverse/blob/main/backend/engineverse/db.py): `backend/engineverse/db.py`

### Other components

- **Learner**

## Connections

- Learner → Page routes: browses (evidence: `README.md`)
- Learner → Browser client: uses (evidence: `README.md`)
- Browser client → JSON API: calls (evidence: `backend/static/js/app.js`)
- Page routes → Request context: renders with (evidence: `backend/web/pages.py`)
- Page routes → Notes catalog: loads content (evidence: `backend/web/pages.py`)
- Page routes → Practice questions: loads practice (evidence: `backend/web/pages.py`)
- Page routes → Build projects: lists projects (evidence: `backend/web/pages.py`)
- Page routes → Resource library: lists resources (evidence: `backend/web/pages.py`)
- Page routes → Universal search: searches (evidence: `backend/web/pages.py`)
- Page routes → Skill roadmaps: shows roadmaps (evidence: `backend/web/pages.py`)
- JSON API → Authentication: handles accounts (evidence: `backend/web/api.py`)
- JSON API → Notes catalog: serves content (evidence: `backend/web/api.py`)
- JSON API → Practice questions: serves questions (evidence: `backend/web/api.py`)
- JSON API → Coding problems: handles submissions (evidence: `backend/web/api.py`)
- JSON API → Code judge: runs code (evidence: `backend/web/api.py`)
- JSON API → Community: serves community (evidence: `backend/web/api.py`)
- JSON API → Spaced revision: handles revision (evidence: `backend/web/api.py`)
- JSON API → Build projects: serves projects (evidence: `backend/web/api.py`)
- JSON API → Grounded tutor: answers questions (evidence: `backend/web/api.py`)
- JSON API → Certificates: serves certificates (evidence: `backend/web/api.py`)
- JSON API → Progress and XP: records activity (evidence: `backend/web/api.py`)
- Request context → Authentication: resolves viewer (evidence: `backend/web/deps.py`)
- Request context → Progress and XP: loads stats (evidence: `backend/web/deps.py`)
- Notes catalog → 3D models: loads models (evidence: `backend/engineverse/catalog.py`)
- Coding problems → Code judge: evaluates solutions (evidence: `backend/engineverse/coding.py`)
- Code judge → Java sandbox: runs in JVM (evidence: `README.md`)
- Progress and XP → Certificates: issues certificates (evidence: `backend/engineverse/progress.py`)
- Authentication → SQL database: reads and writes (evidence: `backend/engineverse/auth.py`)
- Notes catalog → SQL database: reads content (evidence: `backend/engineverse/catalog.py`)
- Universal search → SQL database: queries index (evidence: `backend/engineverse/search.py`)
- Community → SQL database: reads and writes (evidence: `backend/engineverse/community.py`)
- Progress and XP → SQL database: records progress (evidence: `backend/engineverse/progress.py`)
- Certificates → SQL database: stores awards (evidence: `backend/engineverse/certificates.py`)
- Brand settings → SQL database: stores settings (evidence: `backend/engineverse/brand.py`)
- Security controls → JSON API: authorizes requests
