biblesdk
Version:
Typescript client for Bible SDK API
113 lines (74 loc) โข 5 kB
Markdown
# Bible SDK TypeScript Client
[](https://www.npmjs.com/package/biblesdk)
[](https://opensource.org/licenses/MIT)
TypeScript client for accessing Bible data and search functionality. This package provides a clean interface to our [REST API endpoints](https://biblesdk.com/docs) with full TypeScript support.
## ๐ Features
- **๐ Bible Text Access** - Access Bible text through structured API endpoints with proper licensing and attribution
- **๐ Strong's Concordance** - Get original language definitions, transliterations, and detailed concordance information for deeper study
- **๐ค Semantic Search** - Find relevant verses with natural language queries using AI-powered semantic search
- **๐ Simple REST API** - Easy-to-use REST endpoints with JSON responses, no authentication required
- **๐ฑ Full TypeScript Support** - Complete type definitions for all functions, parameters, and return types
- **โก Performance Optimized** - Includes LRU cache to reduce network calls and improve performance
- **๐ Resilient** - Implements retry logic with timeouts and exponential backoff
## ๐ฆ Installation
```bash
npm install biblesdk
```
## ๐ฏ Quick Start
```typescript
import { listBooks, getVerse, getSearchResults } from 'biblesdk';
// List all books in the Bible
const books = await listBooks();
// Get a specific range of verses
const verse = await getVerses('GEN', 1, [1, 2]);
// Search for verses using natural language
const results = await getSearchResults('love your neighbor');
```
## ๐ Reference
Please visit our [Complete SDK Guide](https://biblesdk.com/docs/sdk) for reference docs and a live try-it-out experience.
## ๐ Use Cases
This SDK is perfect for building:
- **๐ฑ Bible Apps** - Mobile applications for Bible study and reading
- **๐ Educational Platforms** - Bible study courses and theological education
- **๐ Devotional Apps** - Daily devotional and spiritual growth applications
- **๐ฌ Research Tools** - Biblical research and analysis applications
## ๐ Bible Translation
This SDK provides access to the **NET Bible (New English Translation)** with comprehensive study notes. The NET Bible is copyrighted by Biblical Studies Press, L.L.C. and requires proper attribution for all uses.
### Copyright Requirements
When using this SDK to access NET Bible text, you must comply with the following requirements:
- **Attribution Required**: All uses of NET Bible text must include proper copyright attribution to Biblical Studies Press, L.L.C.
- **No Modification**: The NET Bible text may not be modified, altered, or changed in any way.
- **Commercial Use**: Commercial use of NET Bible text requires written permission from Biblical Studies Press, L.L.C.
- **Distribution Limits**: NET Bible text may not be distributed in printed form without permission.
- **Digital Use**: Digital use is permitted for personal study, research, and non-commercial applications.
## ๐ง Advanced Usage
### Book Codes
Use standard 3-letter book codes: `GEN` (Genesis), `EXO` (Exodus), `PSA` (Psalms), `MAT` (Matthew), `JHN` (John), etc. You can get the full list by calling `listBooks()`.
### Concordance Information
Add concordance information to any verse request to get Strong's definitions, original language information, and transliterations:
```typescript
const scriptureWithConcordanceInfo = await getPhrases('GEN', 1, [1, 2], true);
// Includes: strongs_number, strongs_type, transliteration, definition, hebrew_word, greek_word
```
### Semantic Search
The search endpoint uses AI-powered semantic search to find relevant verses based on meaning, not just exact text matches:
```typescript
// Search using natural language
const results = await getSearchResults('love your neighbor');
```
## ๐ Documentation
- **[Complete SDK Guide](https://biblesdk.com/docs/sdk)** - Interactive examples and detailed documentation
- **[API Documentation](https://biblesdk.com/docs)** - Complete REST API reference
- **[Home Page](https://biblesdk.com)** - Overview and features
## ๐ค Issues
Encountering some issue with the SDK or API? Please open an issue on our [Github Issues board](https://github.com/biblesdk/issues/issues).
## ๐ License
This SDK is provided free of charge for legitimate use. Users are responsible for complying with all applicable copyright laws. Rate limiting may be applied to ensure fair usage.
## ๐ Links
- **Website**: https://biblesdk.com
- **API Docs**: https://biblesdk.com/docs
- **SDK Docs**: https://biblesdk.com/docs/sdk
- **npm Package**: https://www.npmjs.com/package/biblesdk
- **NET Bible Copyright**: https://netbible.com/copyright/
---
**NET Bibleยฎ Copyright Notice**: Scripture quotations are from the NET Bibleยฎ copyright ยฉ1996, 2019 by Biblical Studies Press, L.L.C. [http://netbible.com](https://netbible.com/copyright/) All rights reserved.