# uncodem/led architecture

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

- Interactive diagram: https://gitdiagram.com/uncodem/led
- Repository: https://github.com/uncodem/led

## Overview

Led is a small, ed-inspired text editor whose commands use a stack-based language. The file tree identifies likely implementation areas, but no source excerpts are available, so internal calls and the precise roles of those files cannot be verified; the graph shows only the documented product relationship.

Main entry points: [`bin/Editor.ml`](https://github.com/uncodem/led/blob/master/bin/Editor.ml) (Text editor), [`bin/Token.ml`](https://github.com/uncodem/led/blob/master/bin/Token.ml) (Stack command language)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Editor user"))
node_editor["Text editor<br/>[Editor.ml]"]
node_command_language["Stack command language<br/>[Token.ml]"]
node_entry["Application entry<br/>[main.ml]"]
node_text_model["Text types<br/>[Types.ml]"]
node_buffer["Text buffer<br/>[Zipper.ml]"]

node_user -->|"edits text"| node_editor
node_editor -->|"uses commands"| node_command_language

click node_editor "https://github.com/uncodem/led/blob/master/bin/Editor.ml"
click node_command_language "https://github.com/uncodem/led/blob/master/bin/Token.ml"
click node_entry "https://github.com/uncodem/led/blob/master/bin/main.ml"
click node_text_model "https://github.com/uncodem/led/blob/master/bin/Types.ml"
click node_buffer "https://github.com/uncodem/led/blob/master/bin/Zipper.ml"

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_user toneBlue
class node_editor,node_command_language,node_entry,node_text_model,node_buffer toneTeal
```

## Components

### Other components

- **Editor user**
- [Text editor](https://github.com/uncodem/led/blob/master/bin/Editor.ml): `bin/Editor.ml`
- [Stack command language](https://github.com/uncodem/led/blob/master/bin/Token.ml): `bin/Token.ml`
- [Application entry](https://github.com/uncodem/led/blob/master/bin/main.ml): `bin/main.ml`
- [Text types](https://github.com/uncodem/led/blob/master/bin/Types.ml): `bin/Types.ml`
- [Text buffer](https://github.com/uncodem/led/blob/master/bin/Zipper.ml): `bin/Zipper.ml`

## Connections

- Editor user → Text editor: edits text (evidence: `README.md`)
- Text editor → Stack command language: uses commands (evidence: `README.md`)
