A batteries-included JavaScript library for biblical scriptures, morphology, and lexicons. Bundles core library with all official data sources.
npm install @metaxia/scripturesA batteries-included JavaScript library for working with biblical scriptures, morphology, and lexicons.
This package provides a complete, ready-to-use solution for scripture analysis by bundling the core library with all official data sources.
| Package | Description |
|---------|-------------|
| @metaxia/scriptures-core | Core API, gematria, morphology parsing, registry |
| @metaxia/scriptures-source-openscriptures-ohb | Hebrew Bible (Open Scriptures Project) |
| @metaxia/scriptures-source-crosswire-kjv | King James Version (CrossWire) |
| @metaxia/scriptures-source-byztxt-tr | Greek New Testament (Byzantine Textus Receptus) |
| @metaxia/scriptures-source-huggingface-hmcgovern-original-language-bibles-greek-stepbible-tagnt-tr | Greek New Testament (STEP Bible TAGNT Textus Receptus) |
| @metaxia/scriptures-source-stepbible-lexicon | Hebrew & Greek lexicons (STEP Bible) |
``bash`
npm install @metaxia/scriptures
`typescript
import { getVerse, gematria, lookupStrongs } from '@metaxia/scriptures';
// All sources are auto-registered and ready to use
const verse = await getVerse('Genesis', 1, 1, { edition: 'openscriptures-OHB' });
const value = gematria.compute(verse.text, { language: 'hebrew', method: 'standard' });
const definition = await lookupStrongs('H7225');
`
The gematria system supports Hebrew, Greek, and English calculations with multiple methods.
| Method | Hebrew Name | Description |
|--------|-------------|-------------|
| Standard | Mispar Hechrachi | Traditional letter values (א=1, י=10, ק=100, etc.) |
| Ordinal | Mispar Siduri | Alphabetic position (1-22) |
| Reduced | Mispar Katan | Each letter reduced to single digit, then summed |
Example: בראשית (Bereshit) = 913 standard, 76 ordinal, 13 reduced
| Method | Description |
|--------|-------------|
| Standard | Traditional Greek numeral values (α=1, ι=10, ρ=100, etc.) |
| Ordinal | Alphabetic position (1-24) |
| Reduced | Digital root of standard value (always 1-9) |
Example: λογος (logos) = 373 standard, 62 ordinal, 4 reduced
| Method | Description |
|--------|-------------|
| Ordinal | A=1 through Z=26 |
If you only need specific sources or want finer control over bundle size, install @metaxia/scriptures-core directly and add only the sources you need:
`bash`
npm install @metaxia/scriptures-core @metaxia/scriptures-source-crosswire-kjv
`typescript
import '@metaxia/scriptures-source-crosswire-kjv';
import { getVerse } from '@metaxia/scriptures-core';
const verse = await getVerse('Genesis', 1, 1, { edition: 'crosswire-KJV' });
``
MIT