# spaceape3001/yourquill architecture

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

- Interactive diagram: https://gitdiagram.com/spaceape3001/yourquill
- Repository: https://github.com/spaceape3001/yourquill

## Overview

Your Quill is a user-owned world-building system for stories and campaigns. Its visible workflow is to scan/configure a workspace, then expose its content through the HTTP server and registered domain pages; the Qt-based YIDE editor also browses fragments and workspace data. The API separates domain records from search, persistence, and presentation concerns. The README is sparse, and several central files were not sampled, so relationships between scanning, storage, and web rendering are left out unless directly evidenced.

Main entry points: [`exe/yide/main.cpp`](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/main.cpp) (YIDE application), [`exe/yserver/yserver.cpp`](https://github.com/spaceape3001/yourquill/blob/master/exe/yserver/yserver.cpp) (HTTP server), [`exe/yide/dock/XFragments.cpp`](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/dock/XFragments.cpp) (Fragment browser), [`exe/yide/DreamMW.hpp`](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/DreamMW.hpp) (Editor window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Workspace runtime"]
  node_scanner["Workspace scanner<br/>[yscanner.cpp]"]
  node_server["HTTP server<br/>[yserver.cpp]"]
  node_workspace["Workspace API"]
end

subgraph group_web["Web experience"]
  node_webcontext["Web context<br/>[WebContext.hpp]"]
  node_webpages["Web pages"]
  node_plotpages["Plot pages<br/>[page.cpp]"]
end

subgraph group_domain["World data"]
  node_domainrecords["World records"]
  node_fragment[("Fragments<br/>[FragmentCDB.cpp]")]
  node_fragmentsearch["Fragment search<br/>[FragmentSearch.cpp]"]
  node_domainsearch["Domain search"]
  node_quilldata[("Quill content")]
end

subgraph group_editor["Authoring tools"]
  node_yide["YIDE application<br/>[main.cpp]"]
  node_browser["Embedded browser<br/>[WebBrowser.hpp]"]
  node_mainwindow["Editor window<br/>[DreamMW.hpp]"]
  node_fragmentdock["Fragment browser<br/>[XFragments.cpp]"]
  node_fragmentui["Fragment columns<br/>[fragment.cpp]"]
  node_fragmenttable["Fragment table<br/>[fragment.cpp]"]
end

node_author(("Author"))

node_author -->|"opens editor"| node_yide
node_yide -->|"queries workspace"| node_workspace
node_yide -->|"sets home"| node_browser
node_yide -->|"creates window"| node_mainwindow
node_mainwindow -->|"opens browser"| node_browser
node_server -->|"dispatches requests"| node_webcontext
node_server -->|"uses workspace"| node_workspace
node_plotpages -->|"registers pages"| node_domainrecords
node_fragmentdock -->|"reads fragments"| node_fragment
node_fragmentdock -->|"uses columns"| node_fragmentui
node_fragmenttable -->|"creates table"| node_domainrecords

click node_scanner "https://github.com/spaceape3001/yourquill/blob/master/exe/yserver/yscanner.cpp"
click node_server "https://github.com/spaceape3001/yourquill/blob/master/exe/yserver/yserver.cpp"
click node_workspace "https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril/wksp"
click node_webcontext "https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithril/web/WebContext.hpp"
click node_webpages "https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril/web"
click node_plotpages "https://github.com/spaceape3001/yourquill/blob/master/exe/yserver/plugins/stdplot/page.cpp"
click node_domainrecords "https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril"
click node_fragment "https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithril/fragment/FragmentCDB.cpp"
click node_fragmentsearch "https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithril/fragment/FragmentSearch.cpp"
click node_domainsearch "https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril"
click node_quilldata "https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril"
click node_yide "https://github.com/spaceape3001/yourquill/blob/master/exe/yide/main.cpp"
click node_browser "https://github.com/spaceape3001/yourquill/blob/master/exe/yide/WebBrowser.hpp"
click node_mainwindow "https://github.com/spaceape3001/yourquill/blob/master/exe/yide/DreamMW.hpp"
click node_fragmentdock "https://github.com/spaceape3001/yourquill/blob/master/exe/yide/dock/XFragments.cpp"
click node_fragmentui "https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithrilQt/fragment.cpp"
click node_fragmenttable "https://github.com/spaceape3001/yourquill/blob/master/exe/yide/wksp/fragment.cpp"

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_scanner,node_server,node_workspace toneBlue
class node_webcontext,node_webpages,node_plotpages toneAmber
class node_domainrecords,node_fragment,node_fragmentsearch,node_domainsearch,node_quilldata toneMint
class node_yide,node_browser,node_mainwindow,node_fragmentdock,node_fragmentui,node_fragmenttable toneRose
class node_author toneIndigo
```

## Components

### Workspace runtime

- [Workspace scanner](https://github.com/spaceape3001/yourquill/blob/master/exe/yserver/yscanner.cpp): `exe/yserver/yscanner.cpp`
- [HTTP server](https://github.com/spaceape3001/yourquill/blob/master/exe/yserver/yserver.cpp): `exe/yserver/yserver.cpp`
- [Workspace API](https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril/wksp): `api/yq/mithril/wksp`

### Web experience

- [Web context](https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithril/web/WebContext.hpp): `api/yq/mithril/web/WebContext.hpp`
- [Web pages](https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril/web): `api/yq/mithril/web`
- [Plot pages](https://github.com/spaceape3001/yourquill/blob/master/exe/yserver/plugins/stdplot/page.cpp): `exe/yserver/plugins/stdplot/page.cpp`

### World data

- [World records](https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril): `api/yq/mithril`
- [Fragments](https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithril/fragment/FragmentCDB.cpp): `api/yq/mithril/fragment/FragmentCDB.cpp`
- [Fragment search](https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithril/fragment/FragmentSearch.cpp): `api/yq/mithril/fragment/FragmentSearch.cpp`
- [Domain search](https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril): `api/yq/mithril`
- [Quill content](https://github.com/spaceape3001/yourquill/tree/master/api/yq/mithril): `api/yq/mithril`

### Authoring tools

- [YIDE application](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/main.cpp): `exe/yide/main.cpp`
- [Embedded browser](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/WebBrowser.hpp): `exe/yide/WebBrowser.hpp`
- [Editor window](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/DreamMW.hpp): `exe/yide/DreamMW.hpp`
- [Fragment browser](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/dock/XFragments.cpp): `exe/yide/dock/XFragments.cpp`
- [Fragment columns](https://github.com/spaceape3001/yourquill/blob/master/api/yq/mithrilQt/fragment.cpp): `api/yq/mithrilQt/fragment.cpp`
- [Fragment table](https://github.com/spaceape3001/yourquill/blob/master/exe/yide/wksp/fragment.cpp): `exe/yide/wksp/fragment.cpp`

### Other components

- **Author**

## Connections

- Author → YIDE application: opens editor (evidence: `exe/yide/main.cpp`)
- YIDE application → Workspace API: queries workspace (evidence: `exe/yide/main.cpp`)
- YIDE application → Embedded browser: sets home (evidence: `exe/yide/main.cpp`)
- YIDE application → Editor window: creates window (evidence: `exe/yide/main.cpp`)
- Editor window → Embedded browser: opens browser (evidence: `exe/yide/main.cpp`)
- HTTP server → Web context: dispatches requests (evidence: `exe/yserver/yserver.cpp`)
- HTTP server → Workspace API: uses workspace (evidence: `exe/yserver/yserver.cpp`)
- Plot pages → World records: registers pages (evidence: `exe/yserver/plugins/stdplot/page.cpp`)
- Fragment browser → Fragments: reads fragments (evidence: `exe/yide/dock/XFragments.cpp`)
- Fragment browser → Fragment columns: uses columns (evidence: `exe/yide/dock/XFragments.cpp`)
- Fragment table → World records: creates table (evidence: `exe/yide/wksp/fragment.cpp`)
