# codeinthedark/editor architecture

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

- Interactive diagram: https://gitdiagram.com/codeinthedark/editor
- Repository: https://github.com/codeinthedark/editor

## Overview

Code in the Dark Editor is a competition tool contestants use to build a page from a supplied screenshot. The documented workflow is to distribute the editor, replace its reference-page image, add any required assets, and customize the instructions. The tree shows app and distribution files, but no application source excerpts were provided, so runtime interactions among them cannot be verified; the graph uses only relationships stated in the README.

Main entry points: [`dist/editor.html`](https://github.com/codeinthedark/editor/blob/master/dist/editor.html) (Editor Package), [`app/assets/instructions.html`](https://github.com/codeinthedark/editor/blob/master/app/assets/instructions.html) (Instructions), [`app/assets/images`](https://github.com/codeinthedark/editor/tree/master/app/assets/images) (Reference Assets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Editor"]
  node_editor_distribution["Editor Package<br/>[editor.html]"]
  node_editor_app["Editor App<br/>[index.html]"]
  node_editor_logic["Editor Logic<br/>[app.coffee]"]
end

subgraph group_competition_setup["Competition Setup"]
  node_instructions["Instructions<br/>[instructions.html]"]
  node_reference_assets["Reference Assets"]
end

node_contestant(("Contestant"))

node_contestant -->|"uses"| node_editor_distribution
node_contestant -->|"supplies"| node_reference_assets
node_contestant -->|"customizes"| node_instructions

click node_editor_distribution "https://github.com/codeinthedark/editor/blob/master/dist/editor.html"
click node_editor_app "https://github.com/codeinthedark/editor/blob/master/app/index.html"
click node_editor_logic "https://github.com/codeinthedark/editor/blob/master/app/scripts/app.coffee"
click node_instructions "https://github.com/codeinthedark/editor/blob/master/app/assets/instructions.html"
click node_reference_assets "https://github.com/codeinthedark/editor/tree/master/app/assets/images"

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_editor_distribution,node_editor_app,node_editor_logic toneBlue
class node_instructions,node_reference_assets toneAmber
class node_contestant toneIndigo
```

## Components

### Editor

- [Editor Package](https://github.com/codeinthedark/editor/blob/master/dist/editor.html): `dist/editor.html`
- [Editor App](https://github.com/codeinthedark/editor/blob/master/app/index.html): `app/index.html`
- [Editor Logic](https://github.com/codeinthedark/editor/blob/master/app/scripts/app.coffee): `app/scripts/app.coffee`

### Competition Setup

- [Instructions](https://github.com/codeinthedark/editor/blob/master/app/assets/instructions.html): `app/assets/instructions.html`
- [Reference Assets](https://github.com/codeinthedark/editor/tree/master/app/assets/images): `app/assets/images`

### Other components

- **Contestant**

## Connections

- Contestant → Editor Package: uses (evidence: `README.md`)
- Contestant → Reference Assets: supplies (evidence: `README.md`)
- Contestant → Instructions: customizes (evidence: `README.md`)
