# andyjr5566/bible_wiki_zh architecture

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

## Overview

Bible Wiki ZH is primarily an offline-capable Chinese Bible study knowledge base organized as an Obsidian vault, not a single web application. Readers navigate chapter notes and linked people, places, events, and themes using Obsidian search, backlinks, and graph views. The repository also contains interactive study exhibits and chapter-review utilities. README documents the vault’s reading and exploration model; source excerpts show exhibit entry points and MCP/review code, but do not establish a single end-to-end publishing or content-ingestion pipeline.

Main entry points: [`util/mcp/server.py`](https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/mcp/server.py) (MCP Server), [`appendix/website/全聖經/亞當到耶穌/src/main.ts`](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/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) (Genealogy Exhibit), [`appendix/website/出埃及記/第25章/src/main.ts`](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E5%87%BA%E5%9F%83%E5%8F%8A%E8%A8%98/%E7%AC%AC25%E7%AB%A0/src/main.ts) (Tabernacle Exhibit), [`appendix/website/利未記`](https://github.com/andyjr5566/bible_wiki_zh/tree/main/appendix/website/%E5%88%A9%E6%9C%AA%E8%A8%98) (Leviticus Exhibits)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_knowledge["Study Knowledge Base"]
  node_chapter_notes["Chapter Notes"]
  node_linked_topics["Linked Topics"]
  node_raw_sources["Raw Study Sources"]
end

subgraph group_exhibits["Interactive Exhibits"]
  node_genealogy["Genealogy Exhibit<br/>[main.ts]"]
  node_exodus_exhibit["Tabernacle Exhibit<br/>[main.ts]"]
  node_leviticus_exhibits["Leviticus Exhibits"]
  node_ark_exhibit["Ark Exhibit<br/>[main.ts]"]
  node_law_map["Law Map<br/>[main.ts]"]
  node_feast_exhibit["Festival Exhibit<br/>[main.ts]"]
  node_camp_exhibit["Camp Exhibit<br/>[main.ts]"]
  node_journey_exhibit["Journey Exhibit<br/>[main.ts]"]
  node_joshua_exhibit["Joshua Story<br/>[main.ts]"]
end

subgraph group_review["Review Utilities"]
  node_mcp_server["MCP Server<br/>[server.py]"]
  node_review_gate["Review Checkpoints<br/>[agent_review.py]"]
  node_model_client["Model Client<br/>[model_client.py]"]
  node_link_updates["Link Updates<br/>[link_updates.py]"]
end

subgraph group_integration["Reader Tools"]
  node_obsidian["Obsidian"]
end

node_reader(("Reader"))

node_reader -->|"opens vault"| node_obsidian
node_obsidian -->|"reads notes"| node_chapter_notes
node_chapter_notes -->|"follows wiki-links"| node_linked_topics
node_obsidian -->|"searches vault"| node_chapter_notes
node_obsidian -->|"explores backlinks"| node_linked_topics
node_obsidian -->|"views graph"| node_linked_topics
node_reader -->|"consults sources"| node_raw_sources
node_mcp_server -->|"invokes utilities"| node_model_client
node_mcp_server -->|"runs preparation"| node_link_updates
node_reader -.->|"explores exhibit"| node_genealogy
node_reader -.->|"explores exhibit"| node_exodus_exhibit
node_reader -.->|"explores exhibits"| node_leviticus_exhibits
node_reader -.->|"explores exhibit"| node_ark_exhibit
node_reader -.->|"explores map"| node_law_map
node_reader -.->|"explores exhibit"| node_feast_exhibit
node_reader -.->|"explores exhibit"| node_camp_exhibit
node_reader -.->|"explores exhibit"| node_journey_exhibit
node_reader -.->|"explores story"| node_joshua_exhibit

click node_genealogy "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/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_exodus_exhibit "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E5%87%BA%E5%9F%83%E5%8F%8A%E8%A8%98/%E7%AC%AC25%E7%AB%A0/src/main.ts"
click node_leviticus_exhibits "https://github.com/andyjr5566/bible_wiki_zh/tree/main/appendix/website/%E5%88%A9%E6%9C%AA%E8%A8%98"
click node_ark_exhibit "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E5%89%B5%E4%B8%96%E8%A8%98/%E7%AC%AC6%E7%AB%A0/src/main.ts"
click node_law_map "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%91%A9%E8%A5%BF%E4%BA%94%E7%B6%93/%E5%BE%8B%E6%B3%95%E5%9C%B0%E5%9C%96/src/main.ts"
click node_feast_exhibit "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%91%A9%E8%A5%BF%E4%BA%94%E7%B6%93/%E8%80%B6%E5%92%8C%E8%8F%AF%E7%9A%84%E7%AF%80%E6%9C%9F/src/main.ts"
click node_camp_exhibit "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC2%E7%AB%A0/src/main.ts"
click node_journey_exhibit "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC33%E7%AB%A0/src/main.ts"
click node_joshua_exhibit "https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E7%B4%84%E6%9B%B8%E4%BA%9E%E8%A8%98/%E7%AC%AC24%E7%AB%A0/src/main.ts"
click node_mcp_server "https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/mcp/server.py"
click node_review_gate "https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/agent_review.py"
click node_model_client "https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/model_client.py"
click node_link_updates "https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/link_updates.py"

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_chapter_notes,node_linked_topics,node_raw_sources toneBlue
class node_genealogy,node_exodus_exhibit,node_leviticus_exhibits,node_ark_exhibit,node_law_map,node_feast_exhibit,node_camp_exhibit,node_journey_exhibit,node_joshua_exhibit toneAmber
class node_mcp_server,node_review_gate,node_model_client,node_link_updates toneMint
class node_obsidian toneRose
class node_reader toneIndigo
```

## Components

### Study Knowledge Base

- **Chapter Notes**
- **Linked Topics**
- **Raw Study Sources**

### Interactive Exhibits

- [Genealogy Exhibit](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/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): `appendix/website/全聖經/亞當到耶穌/src/main.ts`
- [Tabernacle Exhibit](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E5%87%BA%E5%9F%83%E5%8F%8A%E8%A8%98/%E7%AC%AC25%E7%AB%A0/src/main.ts): `appendix/website/出埃及記/第25章/src/main.ts`
- [Leviticus Exhibits](https://github.com/andyjr5566/bible_wiki_zh/tree/main/appendix/website/%E5%88%A9%E6%9C%AA%E8%A8%98): `appendix/website/利未記`
- [Ark Exhibit](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E5%89%B5%E4%B8%96%E8%A8%98/%E7%AC%AC6%E7%AB%A0/src/main.ts): `appendix/website/創世記/第6章/src/main.ts`
- [Law Map](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%91%A9%E8%A5%BF%E4%BA%94%E7%B6%93/%E5%BE%8B%E6%B3%95%E5%9C%B0%E5%9C%96/src/main.ts): `appendix/website/摩西五經/律法地圖/src/main.ts`
- [Festival Exhibit](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%91%A9%E8%A5%BF%E4%BA%94%E7%B6%93/%E8%80%B6%E5%92%8C%E8%8F%AF%E7%9A%84%E7%AF%80%E6%9C%9F/src/main.ts): `appendix/website/摩西五經/耶和華的節期/src/main.ts`
- [Camp Exhibit](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC2%E7%AB%A0/src/main.ts): `appendix/website/民數記/第2章/src/main.ts`
- [Journey Exhibit](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E6%B0%91%E6%95%B8%E8%A8%98/%E7%AC%AC33%E7%AB%A0/src/main.ts): `appendix/website/民數記/第33章/src/main.ts`
- [Joshua Story](https://github.com/andyjr5566/bible_wiki_zh/blob/main/appendix/website/%E7%B4%84%E6%9B%B8%E4%BA%9E%E8%A8%98/%E7%AC%AC24%E7%AB%A0/src/main.ts): `appendix/website/約書亞記/第24章/src/main.ts`

### Review Utilities

- [MCP Server](https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/mcp/server.py): `util/mcp/server.py`
- [Review Checkpoints](https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/agent_review.py): `util/agent_review.py`
- [Model Client](https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/model_client.py): `util/model_client.py`
- [Link Updates](https://github.com/andyjr5566/bible_wiki_zh/blob/main/util/link_updates.py): `util/link_updates.py`

### Reader Tools

- **Obsidian**

### Other components

- **Reader**

## Connections

- Reader → Obsidian: opens vault (evidence: `README.md`)
- Obsidian → Chapter Notes: reads notes (evidence: `README.md`)
- Chapter Notes → Linked Topics: follows wiki-links (evidence: `README.md`)
- Obsidian → Chapter Notes: searches vault (evidence: `README.md`)
- Obsidian → Linked Topics: explores backlinks (evidence: `README.md`)
- Obsidian → Linked Topics: views graph (evidence: `README.md`)
- Reader → Raw Study Sources: consults sources (evidence: `README.md`)
- MCP Server → Model Client: invokes utilities (evidence: `util/mcp/server.py`)
- MCP Server → Link Updates: runs preparation (evidence: `util/mcp/server.py`)
- Reader → Genealogy Exhibit: explores exhibit
- Reader → Tabernacle Exhibit: explores exhibit
- Reader → Leviticus Exhibits: explores exhibits
- Reader → Ark Exhibit: explores exhibit
- Reader → Law Map: explores map
- Reader → Festival Exhibit: explores exhibit
- Reader → Camp Exhibit: explores exhibit
- Reader → Journey Exhibit: explores exhibit
- Reader → Joshua Story: explores story
