# andyjr5566/bible_wiki_zh_website architecture

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

- Interactive diagram: https://gitdiagram.com/andyjr5566/bible_wiki_zh_website
- Repository: https://github.com/andyjr5566/bible_wiki_zh_website

## Overview

Quartz is a digital-garden publishing platform: authors’ notes become a generated website, with configurable components and plugins providing reader-facing features. This repository also contains substantial custom reading tools and interactive Bible-study experiences alongside the core platform. The principal build stages are represented at the level supported by the excerpts; several plugin and interactive-app relationships are only documented through the SOURCE INDEX, so uncertain connections are omitted. The custom app branches are product features, not part of the generic Quartz build pipeline.

Main entry points: [`quartz.ts`](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz.ts) (Quartz publisher), [`quartz/worker.ts`](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/worker.ts) (Content worker), [`plugins/personal-notes/src/client/session/session.ts`](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/session/session.ts) (Notes session), [`quartz/components/renderPage.tsx`](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/components/renderPage.tsx) (Page components)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Quartz platform"]
  node_quartz["Quartz publisher<br/>[quartz.ts]"]
  node_worker["Content worker<br/>[worker.ts]"]
  node_processors["Parse processors<br/>[parse.ts]"]
  node_vfile["Content records<br/>[vfile.ts]"]
  node_components["Page components<br/>[renderPage.tsx]"]
  node_emitters["Site emitters<br/>[index.ts]"]
  node_reader(("Published garden"))
end

subgraph group_reading["Reading features"]
  node_homehub["Home hub<br/>[HomeHub.tsx]"]
  node_bookpicker["Book picker<br/>[BookPicker.tsx]"]
  node_readaloud["Read aloud<br/>[player.ts]"]
  node_appearance["Appearance controls<br/>[Appearance.tsx]"]
  node_verse_return["Verse return<br/>[VerseReturn.tsx]"]
end

subgraph group_notes["Personal notes"]
  node_notes_ui["Notes interface<br/>[app.ts]"]
  node_session["Notes session<br/>[session.ts]"]
  node_repository["Notes repository<br/>[repository.ts]"]
  node_notes_store[("IndexedDB store<br/>[db.ts]")]
  node_drive["Drive sync<br/>[driveFiles.ts]"]
end

subgraph group_study["Study tools"]
  node_search["Semantic search<br/>[verseSearch.ts]"]
  node_explorer["Content explorer<br/>[Explorer.tsx]"]
  node_graph["Graph view<br/>[Graph.tsx]"]
end

subgraph group_interactive["Interactive studies"]
  node_genealogy["Genealogy study<br/>[main.ts]"]
  node_wilderness["Wilderness journey<br/>[main.ts]"]
  node_camp_map["Camp map<br/>[main.ts]"]
  node_ark["Ark experience<br/>[engine.ts]"]
  node_authoring["Website reader<br/>[main.ts]"]
end

node_author(("Garden author"))

node_author -->|"publishes with"| node_quartz
node_quartz -->|"parses content"| node_worker
node_worker -->|"invokes parsers"| node_processors
node_worker -->|"returns records"| node_vfile
node_quartz -.->|"renders pages"| node_components
node_quartz -.->|"emits site"| node_emitters
node_components -.->|"serves pages"| node_reader
node_reader -.->|"opens hub"| node_homehub
node_reader -.->|"chooses passage"| node_bookpicker
node_reader -.->|"plays scripture"| node_readaloud
node_reader -.->|"sets appearance"| node_appearance
node_reader -.->|"returns to verse"| node_verse_return
node_reader -.->|"opens notes"| node_notes_ui
node_notes_ui -->|"creates session"| node_session
node_session -->|"creates repository"| node_repository
node_repository -->|"reads and writes"| node_notes_store
node_session -->|"backs up remotely"| node_drive
node_reader -.->|"searches scripture"| node_search
node_reader -.->|"browses content"| node_explorer
node_reader -.->|"explores links"| node_graph
node_reader -.->|"explores genealogy"| node_genealogy
node_reader -.->|"follows journey"| node_wilderness
node_reader -.->|"explores camp"| node_camp_map
node_reader -.->|"explores ark"| node_ark
node_reader -.->|"follows story"| node_authoring

click node_quartz "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz.ts"
click node_worker "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/worker.ts"
click node_processors "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/processors/parse.ts"
click node_vfile "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/plugins/vfile.ts"
click node_components "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/components/renderPage.tsx"
click node_emitters "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/plugins/emitters/index.ts"
click node_homehub "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/home-hub/src/components/HomeHub.tsx"
click node_bookpicker "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/book-picker/src/components/BookPicker.tsx"
click node_readaloud "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/read-aloud/src/lib/player.ts"
click node_appearance "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/site-ux/src/components/Appearance.tsx"
click node_verse_return "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/verse-return/src/components/VerseReturn.tsx"
click node_notes_ui "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/app.ts"
click node_session "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/session/session.ts"
click node_repository "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/repo/repository.ts"
click node_notes_store "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/store/db.ts"
click node_drive "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/adapter/driveFiles.ts"
click node_search "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/semantic-search/src/components/verseSearch.ts"
click node_explorer "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/explorer/src/components/Explorer.tsx"
click node_graph "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/graph/src/components/Graph.tsx"
click node_genealogy "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E5%85%A8%E8%81%96%E7%B6%93/%E4%BA%9E%E7%95%B6%E5%88%B0%E8%80%B6%E7%A9%8C/src/main.ts"
click node_wilderness "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC33%E7%AB%A0/src/main.ts"
click node_camp_map "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC2%E7%AB%A0/src/main.ts"
click node_ark "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E5%89%B5%E4%B8%96%E8%A8%98/%E7%AC%AC6%E7%AB%A0/src/three/engine.ts"
click node_authoring "https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E7%B4%84%E6%9B%B8%E4%BA%9E%E8%A8%98/%E7%AC%AC24%E7%AB%A0/src/main.ts"

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_quartz,node_worker,node_processors,node_vfile,node_components,node_emitters,node_reader toneBlue
class node_homehub,node_bookpicker,node_readaloud,node_appearance,node_verse_return toneAmber
class node_notes_ui,node_session,node_repository,node_notes_store,node_drive toneMint
class node_search,node_explorer,node_graph toneRose
class node_genealogy,node_wilderness,node_camp_map,node_ark,node_authoring,node_author toneIndigo
```

## Components

### Quartz platform

- [Quartz publisher](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz.ts): `quartz.ts`
- [Content worker](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/worker.ts): `quartz/worker.ts`
- [Parse processors](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/processors/parse.ts): `quartz/processors/parse.ts`
- [Content records](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/plugins/vfile.ts): `quartz/plugins/vfile.ts`
- [Page components](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/components/renderPage.tsx): `quartz/components/renderPage.tsx`
- [Site emitters](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/plugins/emitters/index.ts): `quartz/plugins/emitters/index.ts`
- **Published garden**

### Reading features

- [Home hub](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/home-hub/src/components/HomeHub.tsx): `plugins/home-hub/src/components/HomeHub.tsx`
- [Book picker](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/book-picker/src/components/BookPicker.tsx): `plugins/book-picker/src/components/BookPicker.tsx`
- [Read aloud](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/read-aloud/src/lib/player.ts): `plugins/read-aloud/src/lib/player.ts`
- [Appearance controls](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/site-ux/src/components/Appearance.tsx): `plugins/site-ux/src/components/Appearance.tsx`
- [Verse return](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/verse-return/src/components/VerseReturn.tsx): `plugins/verse-return/src/components/VerseReturn.tsx`

### Personal notes

- [Notes interface](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/app.ts): `plugins/personal-notes/src/client/app.ts`
- [Notes session](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/session/session.ts): `plugins/personal-notes/src/client/session/session.ts`
- [Notes repository](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/repo/repository.ts): `plugins/personal-notes/src/client/repo/repository.ts`
- [IndexedDB store](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/store/db.ts): `plugins/personal-notes/src/client/store/db.ts`
- [Drive sync](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/personal-notes/src/client/adapter/driveFiles.ts): `plugins/personal-notes/src/client/adapter/driveFiles.ts`

### Study tools

- [Semantic search](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/semantic-search/src/components/verseSearch.ts): `plugins/semantic-search/src/components/verseSearch.ts`
- [Content explorer](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/explorer/src/components/Explorer.tsx): `plugins/explorer/src/components/Explorer.tsx`
- [Graph view](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/plugins/graph/src/components/Graph.tsx): `plugins/graph/src/components/Graph.tsx`

### Interactive studies

- [Genealogy study](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E5%85%A8%E8%81%96%E7%B6%93/%E4%BA%9E%E7%95%B6%E5%88%B0%E8%80%B6%E7%A9%8C/src/main.ts): `quartz/static/website/全聖經/亞當到耶穌/src/main.ts`
- [Wilderness journey](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC33%E7%AB%A0/src/main.ts): `quartz/static/website/民數記/第33章/src/main.ts`
- [Camp map](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC2%E7%AB%A0/src/main.ts): `quartz/static/website/民數記/第2章/src/main.ts`
- [Ark experience](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E5%89%B5%E4%B8%96%E8%A8%98/%E7%AC%AC6%E7%AB%A0/src/three/engine.ts): `quartz/static/website/創世記/第6章/src/three/engine.ts`
- [Website reader](https://github.com/andyjr5566/bible_wiki_zh_website/blob/main/quartz/static/website/%E7%B4%84%E6%9B%B8%E4%BA%9E%E8%A8%98/%E7%AC%AC24%E7%AB%A0/src/main.ts): `quartz/static/website/約書亞記/第24章/src/main.ts`

### Other components

- **Garden author**

## Connections

- Garden author → Quartz publisher: publishes with (evidence: `README.md`)
- Quartz publisher → Content worker: parses content (evidence: `quartz/worker.ts`)
- Content worker → Parse processors: invokes parsers (evidence: `quartz/worker.ts`)
- Content worker → Content records: returns records (evidence: `quartz/worker.ts`)
- Quartz publisher → Page components: renders pages
- Quartz publisher → Site emitters: emits site
- Page components → Published garden: serves pages
- Published garden → Home hub: opens hub
- Published garden → Book picker: chooses passage
- Published garden → Read aloud: plays scripture
- Published garden → Appearance controls: sets appearance
- Published garden → Verse return: returns to verse
- Published garden → Notes interface: opens notes
- Notes interface → Notes session: creates session (evidence: `plugins/personal-notes/src/client/app.ts`)
- Notes session → Notes repository: creates repository (evidence: `plugins/personal-notes/src/client/session/session.ts`)
- Notes repository → IndexedDB store: reads and writes (evidence: `plugins/personal-notes/src/client/repo/repository.ts`)
- Notes session → Drive sync: backs up remotely (evidence: `plugins/personal-notes/src/client/session/session.ts`)
- Published garden → Semantic search: searches scripture
- Published garden → Content explorer: browses content
- Published garden → Graph view: explores links
- Published garden → Genealogy study: explores genealogy
- Published garden → Wilderness journey: follows journey
- Published garden → Camp map: explores camp
- Published garden → Ark experience: explores ark
- Published garden → Website reader: follows story
