# joemighty/bibleconnections architecture

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

- Interactive diagram: https://gitdiagram.com/joemighty/bibleconnections
- Repository: https://github.com/joemighty/bibleconnections

## Overview

Bible Connections is a static, offline-capable Bible cross-reference explorer and study site. Readers enter through the interactive map to search or select a passage, inspect links and explanations, then continue into original-language study, plans, journeys or teaching materials; reading links open Bible.com rather than hosting translations. The graph preserves the README’s major study, places, sharing and seasonal-plan capabilities. App internals and data flow are only partly sampled, so undocumented connections are omitted; README-backed capability links are explicitly cited there.

Main entry points: [`site/app.js`](https://github.com/joemighty/bibleconnections/blob/main/site/app.js) (Study hub and plans), [`site/content/journeys.json`](https://github.com/joemighty/bibleconnections/blob/main/site/content/journeys.json) (Guided journeys), [`site/data/refs.v2.gz`](https://github.com/joemighty/bibleconnections/blob/main/site/data/refs.v2.gz) (Cross references), [`site/content/notes.json`](https://github.com/joemighty/bibleconnections/blob/main/site/content/notes.json) (Connection notes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_explore["Explore map"]
  node_map["Interactive map<br/>[app.js]"]
  node_crossrefs[("Cross references<br/>[refs.v2.gz]")]
  node_search["Passage and word search<br/>[app.js]"]
  node_connection["Connection details<br/>[app.js]"]
  node_notes["Connection notes<br/>[notes.json]"]
end

subgraph group_study["Study resources"]
  node_studyhub["Study hub and plans<br/>[app.js]"]
  node_passage["Passage explorer<br/>[app.js]"]
  node_original[("Original language text")]
  node_lexicon[("Word lexicon")]
  node_studycontent[("Study topics and guides")]
  node_prophecy["Prophecy stages<br/>[prophecy.json]"]
  node_timeline["Timeline<br/>[timeline.json]"]
  node_places[("Places and routes<br/>[places.json]")]
end

subgraph group_teach["Teach and share"]
  node_journeys[("Guided journeys<br/>[journeys.json]")]
  node_handouts["Printable handouts<br/>[handout.js]"]
  node_slides["Collection slides<br/>[slides.js]"]
  node_churchseries["Church series<br/>[church.js]"]
  node_cards["Embeddable cards<br/>[card.js]"]
end

subgraph group_runtime["App runtime"]
  node_serviceworker["Offline cache<br/>[sw.js]"]
end

node_reader(("Reader"))
node_biblecom(("Bible.com"))

node_reader -->|"opens"| node_map
node_map -->|"searches"| node_search
node_map -->|"renders links"| node_crossrefs
node_map -->|"selects arc"| node_connection
node_connection -->|"loads notes"| node_notes
node_connection -->|"opens passages"| node_biblecom
node_reader -->|"opens study"| node_studyhub
node_studyhub -->|"opens passage"| node_passage
node_passage -->|"loads text"| node_original
node_passage -->|"looks up words"| node_lexicon
node_studyhub -->|"presents resources"| node_studycontent
node_studyhub -->|"follows stages"| node_prophecy
node_studyhub -->|"shows events"| node_timeline
node_studyhub -->|"maps places"| node_places
node_reader -->|"starts journey"| node_journeys
node_journeys -->|"prints guide"| node_handouts
node_reader -->|"opens collection"| node_slides
node_reader -->|"opens series"| node_churchseries
node_reader -->|"embeds study"| node_cards
node_map -->|"caches offline"| node_serviceworker

click node_map "https://github.com/joemighty/bibleconnections/blob/main/site/app.js"
click node_crossrefs "https://github.com/joemighty/bibleconnections/blob/main/site/data/refs.v2.gz"
click node_search "https://github.com/joemighty/bibleconnections/blob/main/site/app.js"
click node_connection "https://github.com/joemighty/bibleconnections/blob/main/site/app.js"
click node_notes "https://github.com/joemighty/bibleconnections/blob/main/site/content/notes.json"
click node_studyhub "https://github.com/joemighty/bibleconnections/blob/main/site/app.js"
click node_passage "https://github.com/joemighty/bibleconnections/blob/main/site/app.js"
click node_original "https://github.com/joemighty/bibleconnections/tree/main/site/data/text"
click node_lexicon "https://github.com/joemighty/bibleconnections/tree/main/site/data/lex"
click node_studycontent "https://github.com/joemighty/bibleconnections/tree/main/site/content"
click node_prophecy "https://github.com/joemighty/bibleconnections/blob/main/site/content/prophecy.json"
click node_timeline "https://github.com/joemighty/bibleconnections/blob/main/site/content/timeline.json"
click node_places "https://github.com/joemighty/bibleconnections/blob/main/site/data/places.json"
click node_journeys "https://github.com/joemighty/bibleconnections/blob/main/site/content/journeys.json"
click node_handouts "https://github.com/joemighty/bibleconnections/blob/main/site/handout.js"
click node_slides "https://github.com/joemighty/bibleconnections/blob/main/site/slides.js"
click node_churchseries "https://github.com/joemighty/bibleconnections/blob/main/site/church.js"
click node_cards "https://github.com/joemighty/bibleconnections/blob/main/site/card.js"
click node_serviceworker "https://github.com/joemighty/bibleconnections/blob/main/site/sw.js"

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_map,node_crossrefs,node_search,node_connection,node_notes toneBlue
class node_studyhub,node_passage,node_original,node_lexicon,node_studycontent,node_prophecy,node_timeline,node_places toneAmber
class node_journeys,node_handouts,node_slides,node_churchseries,node_cards toneMint
class node_serviceworker toneRose
class node_reader,node_biblecom toneIndigo
```

## Components

### Explore map

- [Interactive map](https://github.com/joemighty/bibleconnections/blob/main/site/app.js): `site/app.js`
- [Cross references](https://github.com/joemighty/bibleconnections/blob/main/site/data/refs.v2.gz): `site/data/refs.v2.gz`
- [Passage and word search](https://github.com/joemighty/bibleconnections/blob/main/site/app.js): `site/app.js`
- [Connection details](https://github.com/joemighty/bibleconnections/blob/main/site/app.js): `site/app.js`
- [Connection notes](https://github.com/joemighty/bibleconnections/blob/main/site/content/notes.json): `site/content/notes.json`

### Study resources

- [Study hub and plans](https://github.com/joemighty/bibleconnections/blob/main/site/app.js): `site/app.js`
- [Passage explorer](https://github.com/joemighty/bibleconnections/blob/main/site/app.js): `site/app.js`
- [Original language text](https://github.com/joemighty/bibleconnections/tree/main/site/data/text): `site/data/text`
- [Word lexicon](https://github.com/joemighty/bibleconnections/tree/main/site/data/lex): `site/data/lex`
- [Study topics and guides](https://github.com/joemighty/bibleconnections/tree/main/site/content): `site/content`
- [Prophecy stages](https://github.com/joemighty/bibleconnections/blob/main/site/content/prophecy.json): `site/content/prophecy.json`
- [Timeline](https://github.com/joemighty/bibleconnections/blob/main/site/content/timeline.json): `site/content/timeline.json`
- [Places and routes](https://github.com/joemighty/bibleconnections/blob/main/site/data/places.json): `site/data/places.json`

### Teach and share

- [Guided journeys](https://github.com/joemighty/bibleconnections/blob/main/site/content/journeys.json): `site/content/journeys.json`
- [Printable handouts](https://github.com/joemighty/bibleconnections/blob/main/site/handout.js): `site/handout.js`
- [Collection slides](https://github.com/joemighty/bibleconnections/blob/main/site/slides.js): `site/slides.js`
- [Church series](https://github.com/joemighty/bibleconnections/blob/main/site/church.js): `site/church.js`
- [Embeddable cards](https://github.com/joemighty/bibleconnections/blob/main/site/card.js): `site/card.js`

### App runtime

- [Offline cache](https://github.com/joemighty/bibleconnections/blob/main/site/sw.js): `site/sw.js`

### Other components

- **Reader**
- **Bible.com**

## Connections

- Reader → Interactive map: opens (evidence: `README.md`)
- Interactive map → Passage and word search: searches (evidence: `README.md`)
- Interactive map → Cross references: renders links (evidence: `README.md`)
- Interactive map → Connection details: selects arc (evidence: `site/app.js`)
- Connection details → Connection notes: loads notes (evidence: `site/app.js`)
- Connection details → Bible.com: opens passages (evidence: `README.md`)
- Reader → Study hub and plans: opens study (evidence: `README.md`)
- Study hub and plans → Passage explorer: opens passage (evidence: `README.md`)
- Passage explorer → Original language text: loads text (evidence: `README.md`)
- Passage explorer → Word lexicon: looks up words (evidence: `README.md`)
- Study hub and plans → Study topics and guides: presents resources (evidence: `README.md`)
- Study hub and plans → Prophecy stages: follows stages (evidence: `README.md`)
- Study hub and plans → Timeline: shows events (evidence: `README.md`)
- Study hub and plans → Places and routes: maps places (evidence: `README.md`)
- Reader → Guided journeys: starts journey (evidence: `README.md`)
- Guided journeys → Printable handouts: prints guide (evidence: `site/handout.js`)
- Reader → Collection slides: opens collection (evidence: `site/slides.js`)
- Reader → Church series: opens series (evidence: `site/church.js`)
- Reader → Embeddable cards: embeds study (evidence: `site/card.js`)
- Interactive map → Offline cache: caches offline (evidence: `site/sw.js`)
