# ken-jeong/wiki architecture

> Architecture diagram of the GitHub repository ken-jeong/wiki, 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/ken-jeong/wiki
- Repository: https://github.com/ken-jeong/wiki

## Overview

Archive is a Quartz 4 digital garden for publishing Markdown study notes. Its main workflow is authoring notes, parsing and transforming them, filtering publication candidates, then emitting a browsable static site. The site’s documented graph view and Quartz’s component/plugin architecture are represented; implementation details for several emitters and UI features were not sampled, so those nodes use supported directory paths and only documented or indexed relationships.

Main entry points: [`quartz/plugins/index.ts`](https://github.com/ken-jeong/wiki/blob/v4/quartz/plugins/index.ts) (Plugin registry), [`quartz/processors/parse.ts`](https://github.com/ken-jeong/wiki/blob/v4/quartz/processors/parse.ts) (Markdown parsing), [`quartz/build.ts`](https://github.com/ken-jeong/wiki/blob/v4/quartz/build.ts) (Build orchestration), [`quartz/plugins/filters`](https://github.com/ken-jeong/wiki/tree/v4/quartz/plugins/filters) (Publication filters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Notes and processing"]
  node_markdown["Markdown notes"]
  node_parse["Markdown parsing<br/>[parse.ts]"]
  node_filedata["Parsed content data<br/>[vfile.ts]"]
end

subgraph group_plugins["Plugin pipeline"]
  node_filter["Publication filters"]
  node_transformers["Content transformers"]
  node_emitters["Page and asset emitters"]
  node_pluginregistry["Plugin registry<br/>[index.ts]"]
end

subgraph group_site["Site rendering"]
  node_layout["Page layout<br/>[quartz.layout.ts]"]
  node_components["Page components"]
  node_search["Note search<br/>[Search.tsx]"]
  node_graphview["Note graph<br/>[Graph.tsx]"]
  node_tagpages["Tag listings<br/>[TagContent.tsx]"]
  node_siteoutput["Published website"]
end

subgraph group_runtime["Build runtime"]
  node_build["Build orchestration<br/>[build.ts]"]
  node_config["Site configuration<br/>[quartz.config.ts]"]
end

node_author(("Note author"))
node_visitor(("Site visitor"))

node_author -->|"writes notes"| node_markdown
node_markdown -->|"parsed from"| node_parse
node_parse -->|"runs plugins"| node_transformers
node_parse -->|"produces content"| node_filedata
node_build -->|"invokes parsing"| node_parse
node_build -->|"invokes filtering"| node_filter
node_build -->|"invokes emission"| node_emitters
node_filter -->|"filters content"| node_filedata
node_pluginregistry -->|"exports plugins"| node_transformers
node_pluginregistry -->|"exports plugins"| node_filter
node_pluginregistry -->|"exports plugins"| node_emitters
node_config -->|"uses plugin modules"| node_pluginregistry
node_emitters -.->|"emits site files"| node_siteoutput
node_layout -->|"assembles components"| node_components
node_search -.->|"renders as component"| node_components
node_graphview -.->|"renders as component"| node_components
node_tagpages -->|"lists tagged notes"| node_filedata
node_visitor -.->|"browses"| node_siteoutput

click node_markdown "https://github.com/ken-jeong/wiki/tree/v4/content"
click node_parse "https://github.com/ken-jeong/wiki/blob/v4/quartz/processors/parse.ts"
click node_filedata "https://github.com/ken-jeong/wiki/blob/v4/quartz/plugins/vfile.ts"
click node_filter "https://github.com/ken-jeong/wiki/tree/v4/quartz/plugins/filters"
click node_transformers "https://github.com/ken-jeong/wiki/tree/v4/quartz/plugins/transformers"
click node_emitters "https://github.com/ken-jeong/wiki/tree/v4/quartz/plugins/emitters"
click node_pluginregistry "https://github.com/ken-jeong/wiki/blob/v4/quartz/plugins/index.ts"
click node_build "https://github.com/ken-jeong/wiki/blob/v4/quartz/build.ts"
click node_config "https://github.com/ken-jeong/wiki/blob/v4/quartz.config.ts"
click node_layout "https://github.com/ken-jeong/wiki/blob/v4/quartz.layout.ts"
click node_components "https://github.com/ken-jeong/wiki/tree/v4/quartz/components"
click node_search "https://github.com/ken-jeong/wiki/blob/v4/quartz/components/Search.tsx"
click node_graphview "https://github.com/ken-jeong/wiki/blob/v4/quartz/components/Graph.tsx"
click node_tagpages "https://github.com/ken-jeong/wiki/blob/v4/quartz/components/pages/TagContent.tsx"

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_markdown,node_parse,node_filedata toneBlue
class node_filter,node_transformers,node_emitters,node_pluginregistry toneAmber
class node_layout,node_components,node_search,node_graphview,node_tagpages,node_siteoutput toneMint
class node_build,node_config toneRose
class node_author,node_visitor toneIndigo
```

## Components

### Notes and processing

- [Markdown notes](https://github.com/ken-jeong/wiki/tree/v4/content): `content`
- [Markdown parsing](https://github.com/ken-jeong/wiki/blob/v4/quartz/processors/parse.ts): `quartz/processors/parse.ts`
- [Parsed content data](https://github.com/ken-jeong/wiki/blob/v4/quartz/plugins/vfile.ts): `quartz/plugins/vfile.ts`

### Plugin pipeline

- [Publication filters](https://github.com/ken-jeong/wiki/tree/v4/quartz/plugins/filters): `quartz/plugins/filters`
- [Content transformers](https://github.com/ken-jeong/wiki/tree/v4/quartz/plugins/transformers): `quartz/plugins/transformers`
- [Page and asset emitters](https://github.com/ken-jeong/wiki/tree/v4/quartz/plugins/emitters): `quartz/plugins/emitters`
- [Plugin registry](https://github.com/ken-jeong/wiki/blob/v4/quartz/plugins/index.ts): `quartz/plugins/index.ts`

### Site rendering

- [Page layout](https://github.com/ken-jeong/wiki/blob/v4/quartz.layout.ts): `quartz.layout.ts`
- [Page components](https://github.com/ken-jeong/wiki/tree/v4/quartz/components): `quartz/components`
- [Note search](https://github.com/ken-jeong/wiki/blob/v4/quartz/components/Search.tsx): `quartz/components/Search.tsx`
- [Note graph](https://github.com/ken-jeong/wiki/blob/v4/quartz/components/Graph.tsx): `quartz/components/Graph.tsx`
- [Tag listings](https://github.com/ken-jeong/wiki/blob/v4/quartz/components/pages/TagContent.tsx): `quartz/components/pages/TagContent.tsx`
- **Published website**

### Build runtime

- [Build orchestration](https://github.com/ken-jeong/wiki/blob/v4/quartz/build.ts): `quartz/build.ts`
- [Site configuration](https://github.com/ken-jeong/wiki/blob/v4/quartz.config.ts): `quartz.config.ts`

### Other components

- **Note author**
- **Site visitor**

## Connections

- Note author → Markdown notes: writes notes (evidence: `README.md`)
- Markdown notes → Markdown parsing: parsed from (evidence: `quartz/processors/parse.ts`)
- Markdown parsing → Content transformers: runs plugins (evidence: `quartz/processors/parse.ts`)
- Markdown parsing → Parsed content data: produces content (evidence: `quartz/processors/parse.ts`)
- Build orchestration → Markdown parsing: invokes parsing (evidence: `quartz/build.ts`)
- Build orchestration → Publication filters: invokes filtering (evidence: `quartz/build.ts`)
- Build orchestration → Page and asset emitters: invokes emission (evidence: `quartz/build.ts`)
- Publication filters → Parsed content data: filters content
- Plugin registry → Content transformers: exports plugins (evidence: `quartz/plugins/index.ts`)
- Plugin registry → Publication filters: exports plugins (evidence: `quartz/plugins/index.ts`)
- Plugin registry → Page and asset emitters: exports plugins (evidence: `quartz/plugins/index.ts`)
- Site configuration → Plugin registry: uses plugin modules (evidence: `quartz.config.ts`)
- Page and asset emitters → Published website: emits site files
- Page layout → Page components: assembles components (evidence: `quartz.layout.ts`)
- Note search → Page components: renders as component (evidence: `quartz/components/Search.tsx`)
- Note graph → Page components: renders as component (evidence: `quartz/components/index.ts`)
- Tag listings → Parsed content data: lists tagged notes (evidence: `quartz/components/pages/TagContent.tsx`)
- Site visitor → Published website: browses
