# fleen-5177/rededitor architecture

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

- Interactive diagram: https://gitdiagram.com/fleen-5177/rededitor
- Repository: https://github.com/fleen-5177/rededitor

## Overview

The README identifies RedEditor but documents no editor workflow, and the HTML source was not sampled. The available runtime source implements a browser-backed filesystem, so this map covers that subsystem without inferring editor features.

Main entry points: [`fs.js`](https://github.com/fleen-5177/rededitor/blob/main/fs.js) (Filesystem API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_filesystem["Browser filesystem"]
  node_api["Filesystem API<br/>[fs.js]"]
  node_paths["Path resolution<br/>[fs.js]"]
  node_text["Text encoding<br/>[fs.js]"]
  node_binary["Binary encoding<br/>[fs.js]"]
  node_queries["Existence and details<br/>[fs.js]"]
  node_directories["Directory operations<br/>[fs.js]"]
  node_files["File operations<br/>[fs.js]"]
  node_dbops["Store operations<br/>[fs.js]"]
end

node_user(("Application caller"))
node_idb[("IndexedDB")]

node_user -->|"calls"| node_api
node_api -->|"resolves paths"| node_paths
node_api -->|"dispatches queries"| node_queries
node_api -->|"dispatches directory ops"| node_directories
node_api -->|"dispatches file ops"| node_files
node_api -->|"initializes root"| node_dbops
node_files -->|"encodes text"| node_text
node_files -->|"encodes binary"| node_binary
node_queries -->|"reads records"| node_dbops
node_directories -->|"reads and writes"| node_dbops
node_files -->|"reads and writes"| node_dbops
node_dbops -->|"opens and accesses"| node_idb

click node_api "https://github.com/fleen-5177/rededitor/blob/main/fs.js"
click node_paths "https://github.com/fleen-5177/rededitor/blob/main/fs.js"
click node_text "https://github.com/fleen-5177/rededitor/blob/main/fs.js"
click node_binary "https://github.com/fleen-5177/rededitor/blob/main/fs.js"
click node_queries "https://github.com/fleen-5177/rededitor/blob/main/fs.js"
click node_directories "https://github.com/fleen-5177/rededitor/blob/main/fs.js"
click node_files "https://github.com/fleen-5177/rededitor/blob/main/fs.js"
click node_dbops "https://github.com/fleen-5177/rededitor/blob/main/fs.js"

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_api,node_paths,node_text,node_binary,node_queries,node_directories,node_files,node_dbops toneBlue
class node_user toneIndigo
class node_idb toneAmber
```

## Components

### Browser filesystem

- [Filesystem API](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`
- [Path resolution](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`
- [Text encoding](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`
- [Binary encoding](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`
- [Existence and details](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`
- [Directory operations](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`
- [File operations](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`
- [Store operations](https://github.com/fleen-5177/rededitor/blob/main/fs.js): `fs.js`

### Other components

- **Application caller**
- **IndexedDB**

## Connections

- Application caller → Filesystem API: calls
- Filesystem API → Path resolution: resolves paths
- Filesystem API → Existence and details: dispatches queries
- Filesystem API → Directory operations: dispatches directory ops
- Filesystem API → File operations: dispatches file ops
- Filesystem API → Store operations: initializes root
- File operations → Text encoding: encodes text
- File operations → Binary encoding: encodes binary
- Existence and details → Store operations: reads records
- Directory operations → Store operations: reads and writes
- File operations → Store operations: reads and writes
- Store operations → IndexedDB: opens and accesses
