# vansh-quant/minipy-compiler architecture

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

- Interactive diagram: https://gitdiagram.com/vansh-quant/minipy-compiler
- Repository: https://github.com/vansh-quant/minipy-compiler

## Overview

MiniPy is a browser-based programming workspace whose documented workflow is creating a project, writing code, running it, and inspecting results. The README identifies real language runtimes and toolchains, but this repository provides no source excerpts beyond the single application-build file, so the graph reflects documented relationships rather than verified implementation details. Package management, debugging, testing, storage, and other planned subsystems are omitted where the README does not establish their current runtime behavior.

Main entry points: [`MiniPy.html`](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html) (Execution system)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Programming workspace"]
  node_workspace["Project workspace<br/>[MiniPy.html]"]
  node_editor["Code editor<br/>[MiniPy.html]"]
end

subgraph group_execution["Execution engines"]
  node_dispatcher["Execution system<br/>[MiniPy.html]"]
  node_python["Python runtime<br/>[MiniPy.html]"]
  node_pyodide["Pyodide / CPython"]
  node_javascript["JavaScript runtime<br/>[MiniPy.html]"]
  node_browserjs["Browser JavaScript engine"]
  node_typescript["TypeScript compiler<br/>[MiniPy.html]"]
  node_c_cpp["C / C++ execution<br/>[MiniPy.html]"]
  node_java["Java execution<br/>[MiniPy.html]"]
  node_judge0["Judge0 CE toolchains"]
  node_web["HTML / CSS runtime<br/>[MiniPy.html]"]
  node_browserweb["Browser web runtime"]
end

subgraph group_results["Program results"]
  node_results["Output and diagnostics<br/>[MiniPy.html]"]
end

node_user(("Developer"))

node_user -->|"creates projects"| node_workspace
node_user -->|"writes code"| node_editor
node_user -->|"runs programs"| node_dispatcher
node_dispatcher -->|"dispatches"| node_python
node_python -->|"runs on"| node_pyodide
node_dispatcher -->|"dispatches"| node_javascript
node_javascript -->|"executes in"| node_browserjs
node_dispatcher -->|"dispatches"| node_typescript
node_typescript -->|"executes with"| node_browserjs
node_dispatcher -->|"dispatches"| node_c_cpp
node_dispatcher -->|"dispatches"| node_java
node_c_cpp -->|"uses toolchains"| node_judge0
node_java -->|"uses toolchains"| node_judge0
node_dispatcher -->|"dispatches"| node_web
node_web -->|"runs in"| node_browserweb
node_dispatcher -->|"provides results"| node_results
node_user -->|"inspects output"| node_results

click node_workspace "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_editor "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_dispatcher "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_python "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_javascript "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_typescript "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_c_cpp "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_java "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_web "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"
click node_results "https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html"

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_workspace,node_editor toneBlue
class node_dispatcher,node_python,node_pyodide,node_javascript,node_browserjs,node_typescript,node_c_cpp,node_java,node_judge0,node_web,node_browserweb toneAmber
class node_results toneMint
class node_user toneIndigo
```

## Components

### Programming workspace

- [Project workspace](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- [Code editor](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`

### Execution engines

- [Execution system](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- [Python runtime](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- **Pyodide / CPython**
- [JavaScript runtime](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- **Browser JavaScript engine**
- [TypeScript compiler](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- [C / C++ execution](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- [Java execution](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- **Judge0 CE toolchains**
- [HTML / CSS runtime](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`
- **Browser web runtime**

### Program results

- [Output and diagnostics](https://github.com/vansh-quant/minipy-compiler/blob/main/MiniPy.html): `MiniPy.html`

### Other components

- **Developer**

## Connections

- Developer → Project workspace: creates projects (evidence: `README.md`)
- Developer → Code editor: writes code (evidence: `README.md`)
- Developer → Execution system: runs programs (evidence: `README.md`)
- Execution system → Python runtime: dispatches (evidence: `README.md`)
- Python runtime → Pyodide / CPython: runs on (evidence: `README.md`)
- Execution system → JavaScript runtime: dispatches (evidence: `README.md`)
- JavaScript runtime → Browser JavaScript engine: executes in (evidence: `README.md`)
- Execution system → TypeScript compiler: dispatches (evidence: `README.md`)
- TypeScript compiler → Browser JavaScript engine: executes with (evidence: `README.md`)
- Execution system → C / C++ execution: dispatches (evidence: `README.md`)
- Execution system → Java execution: dispatches (evidence: `README.md`)
- C / C++ execution → Judge0 CE toolchains: uses toolchains (evidence: `README.md`)
- Java execution → Judge0 CE toolchains: uses toolchains (evidence: `README.md`)
- Execution system → HTML / CSS runtime: dispatches (evidence: `README.md`)
- HTML / CSS runtime → Browser web runtime: runs in (evidence: `README.md`)
- Execution system → Output and diagnostics: provides results (evidence: `README.md`)
- Developer → Output and diagnostics: inspects output (evidence: `README.md`)
