# Atomic Bible interactive series

## Sources

- Berean Standard Bible (BSB), Berean Bible, public domain: https://bereanbible.com
- Treasury of Scripture Knowledge cross references via OpenBible.info: https://www.openbible.info/labs/cross-references/ under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/

## Generation

Run `node scripts/build-viz-series.mjs [path/to/bsb.txt]`, then `node --test scripts/test-viz-series.mjs`. The default BSB path is the local Atomic Bible pipeline reference file. No network access or media renderer is required.

`books.json` reuses canon metadata from `public/viz/cross-refs.json`, and deduplicated undirected verse pairs from the site's committed `public/viz/data/cross-references.json` snapshot. That snapshot is a curated subset of OpenBible.info's Treasury of Scripture Knowledge dataset: single-verse pairs with OpenBible.info vote score >= 5 (range 5 to 1,296), with reciprocal links merged before aggregation (82,142 unique pairs, not the full unfiltered OpenBible.info download, which also includes lower-voted and multi-verse entries, and not the 94,544 directional records in `cross-refs.json`). It is the same verse-level source used by The Thread of Scripture and the book poster pipeline. Counts are aggregated by unordered book pair. Same-book pairs count once, not twice. Up to six highest-voted reference examples are retained per book pair, not a complete verse-link listing. Cross references are editorial connections, not proof that a passage quotes or fulfills another passage.

The generator checks the BSB against all 1,189 chapter starts and lengths in the cross reference ordinal index. Book word counts use ASCII word tokens, with internal straight or curly apostrophes retained. They are translation and tokenization dependent, not counts of original-language words.

`words.json` contains exactly the 42 groups and listed forms in the pipeline's `tools/viz/word_series.js`, including the capitalized form Savior. The pattern is a case-insensitive JavaScript whole-word regex over the BSB verse text. Every matching occurrence is counted, including multiple matches per verse. It includes all uses of a spelling, not just a theological meaning. Spirit includes spirit, and raised includes uses unrelated to resurrection. These are English word groups, not Hebrew or Greek lemmas. Each hit is `[bookIndex, chapter, verse, count]`; book indexes are zero based. Per-book totals are raw occurrence counts, not rates. All matching references are retained and available through the paginated details list. Verse quotations load from the existing reader dataset.

## Browser verification

With an already installed Playwright package, run `BASE_URL=http://localhost:3130 PLAYWRIGHT_MODULE=/path/to/playwright/index.mjs node scripts/test-viz-series-browser.mjs`. Without `PLAYWRIGHT_MODULE`, it resolves the normal `playwright` package. Screenshots and downloaded SVGs go to `VIZ_QA_OUT`, defaulting to a scratch subdirectory. Use localhost for development so Next's dev-origin policy allows hydration. The test exercises keyboard selection, testament and colorway controls, pagination, reader text, SVG metadata, 390 px overflow containment, stale-verse prevention and fetch-failure fallback. No production build or external publication is performed by this test.

## Presentation and exports

Charts are live SVG generated from these data, not images of the separate print renders. Spectrum colors follow canon order. Mood and Paper distinguish the Old and New Testaments. Filters apply to the chart and visible-book count, while word group totals refer to the whole Bible. Bar heights are scaled to the largest visible-book count. SVG exports preserve the chosen source, filter and colorway, carry visible attribution, and include the source URLs, licenses and interpretation notes in description and metadata. They contain no embedded font files or external assets.

Interface explanatory prose was generated by AI and has not been reviewed by a person. The underlying counts and references are computed from the credited sources.
