# unaveragetech/hiroglyph-docs architecture

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

- Interactive diagram: https://gitdiagram.com/unaveragetech/hiroglyph-docs
- Repository: https://github.com/unaveragetech/hiroglyph-docs

## Overview

Hiroglyph is a documentation-only repository describing a system that encrypts files into hieroglyphic `.glyph` streams and can decode, verify, and optionally execute them. The principal workflow is encode → store → run/decode, with key selection and file-type addons as supporting capabilities. This graph represents the documented design, not inspected implementation: the repository contains no source code, so relationships are grounded in the README’s workflow descriptions.

Main entry points: [`README.md`](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md) (Runner), [`docs/WHITE_PAPER.md`](https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md) (Key derivation), [`docs/ADDONS_OVERVIEW.md`](https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/ADDONS_OVERVIEW.md) (Language addons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_encode["Encoding"]
  node_encoder["Encoder<br/>[README.md]"]
  node_symbol_encoding["Symbol encoding<br/>[README.md]"]
  node_glyph_file["Glyph file<br/>[README.md]"]
end

subgraph group_crypto["Cryptography"]
  node_plaintext_hash["Plaintext hash<br/>[WHITE_PAPER.md]"]
  node_key_types["Key types<br/>[README.md]"]
  node_key_derivation["Key derivation<br/>[WHITE_PAPER.md]"]
  node_encryption["Stream encryption<br/>[WHITE_PAPER.md]"]
end

subgraph group_runtime["Decode and run"]
  node_runner["Runner<br/>[README.md]"]
  node_symbol_decoding["Symbol decoding<br/>[README.md]"]
  node_decryption["Decryption<br/>[WHITE_PAPER.md]"]
  node_integrity_check["Integrity check<br/>[README.md]"]
  node_execution_dispatch["Execution dispatch<br/>[README.md]"]
end

subgraph group_extensions["Execution addons"]
  node_language_addons["Language addons<br/>[ADDONS_OVERVIEW.md]"]
end

node_user(("User"))
node_result(("Output or execution"))

node_user -->|"requests encoding"| node_encoder
node_encoder -->|"hashes plaintext"| node_plaintext_hash
node_encoder -->|"derives key"| node_key_derivation
node_key_types -->|"selects key method"| node_key_derivation
node_encoder -->|"encrypts content"| node_encryption
node_key_derivation -->|"supplies key"| node_encryption
node_encoder -->|"encodes ciphertext"| node_symbol_encoding
node_symbol_encoding -->|"writes symbols"| node_glyph_file
node_user -->|"requests run or decode"| node_runner
node_runner -->|"reads symbols"| node_glyph_file
node_runner -->|"decodes symbols"| node_symbol_decoding
node_runner -->|"decrypts ciphertext"| node_decryption
node_key_derivation -->|"supplies key"| node_decryption
node_runner -->|"verifies hash"| node_integrity_check
node_runner -->|"dispatches verified content"| node_execution_dispatch
node_execution_dispatch -->|"dispatches by file type"| node_language_addons
node_runner -->|"outputs or executes"| node_result

click node_encoder "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_plaintext_hash "https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md"
click node_key_types "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_key_derivation "https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md"
click node_encryption "https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md"
click node_symbol_encoding "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_glyph_file "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_runner "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_symbol_decoding "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_decryption "https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md"
click node_integrity_check "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_execution_dispatch "https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md"
click node_language_addons "https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/ADDONS_OVERVIEW.md"

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_encoder,node_symbol_encoding,node_glyph_file,node_user toneBlue
class node_plaintext_hash,node_key_types,node_key_derivation,node_encryption toneAmber
class node_runner,node_symbol_decoding,node_decryption,node_integrity_check,node_execution_dispatch toneMint
class node_language_addons toneRose
class node_result toneIndigo
```

## Components

### Encoding

- [Encoder](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`
- [Symbol encoding](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`
- [Glyph file](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`

### Cryptography

- [Plaintext hash](https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md): `docs/WHITE_PAPER.md`
- [Key types](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`
- [Key derivation](https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md): `docs/WHITE_PAPER.md`
- [Stream encryption](https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md): `docs/WHITE_PAPER.md`

### Decode and run

- [Runner](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`
- [Symbol decoding](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`
- [Decryption](https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/WHITE_PAPER.md): `docs/WHITE_PAPER.md`
- [Integrity check](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`
- [Execution dispatch](https://github.com/unaveragetech/hiroglyph-docs/blob/master/README.md): `README.md`

### Execution addons

- [Language addons](https://github.com/unaveragetech/hiroglyph-docs/blob/master/docs/ADDONS_OVERVIEW.md): `docs/ADDONS_OVERVIEW.md`

### Other components

- **User**
- **Output or execution**

## Connections

- User → Encoder: requests encoding (evidence: `README.md`)
- Encoder → Plaintext hash: hashes plaintext (evidence: `README.md`)
- Encoder → Key derivation: derives key (evidence: `README.md`)
- Key types → Key derivation: selects key method (evidence: `README.md`)
- Encoder → Stream encryption: encrypts content (evidence: `README.md`)
- Key derivation → Stream encryption: supplies key (evidence: `README.md`)
- Encoder → Symbol encoding: encodes ciphertext (evidence: `README.md`)
- Symbol encoding → Glyph file: writes symbols (evidence: `README.md`)
- User → Runner: requests run or decode (evidence: `README.md`)
- Runner → Glyph file: reads symbols (evidence: `README.md`)
- Runner → Symbol decoding: decodes symbols (evidence: `README.md`)
- Runner → Decryption: decrypts ciphertext (evidence: `README.md`)
- Key derivation → Decryption: supplies key (evidence: `README.md`)
- Runner → Integrity check: verifies hash (evidence: `README.md`)
- Runner → Execution dispatch: dispatches verified content (evidence: `README.md`)
- Execution dispatch → Language addons: dispatches by file type (evidence: `README.md`)
- Runner → Output or execution: outputs or executes (evidence: `README.md`)
