Parse a human-typed reference into book, chapter and verse. Abbreviations, roman numerals, ranges, cross-chapter spans and misspellings. No network call.
Fetch a passage. One file per chapter touched, keyed by verse number.
Markers ride in the text: [ ] supplied words,
‹› words of Christ, ¶ paragraph.
The same chapter from the tagged tree. Each verse is
{t, w} — t the reading text,
w an ordered array of [word, [numbers]].
Click a tagged word to look it up.
One import, one call. No key, no build step, no dependency. Or skip the module and fetch the JSON directly — every file is CORS-enabled and cached hard.
Text is public domain: King James, American King James, Strong’s. Software, format and index are CC0. Attribution optional.
import { jsonBible } from 'https://jsonBible.org/js/jsonBible.js'; const r = await jsonBible.lookup('John 3:16'); r.results[0].text; // reference · words · "phrase" · wildcard* · G25 // opts: { translation:'kjv'|'akjv', page, limit, as }
// chapter — verse number -> text GET /v1/kjv/43/003.json // tagged — verse number -> { t, w } GET /v1/kjvstrongs/43/003.json // lexicon — bucketed by hundreds GET /v1/lexicon/G/0.json // index — word or Strong's -> packed verse ids GET /v1/index/words/l.json GET /v1/index/strongs/G/0.json // packed id = book*1000000 + chapter*1000 + verse // John 3:16 = 43003016