Skip to content

About

BibleMate AI Web - Web GUI, HTTP server, and API server, built with BibleMate AI, AgentMake AI and UniqueBible App

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

BibleMate AI Web

Python Version License Website

Your all-in-one, AI-powered Bible study web platform—uniting deep biblical scholarship, intelligent AI tools, and autonomous agentic workflows in one seamless interface.

BibleMate AI Web brings together the very best of three flagship Bible study projects into a single, modern web experience (Web UI, HTTP Server, and REST API):

  1. Upgraded UniqueBible Data & Scholarship — Inherits and upgrades the rich biblical data ecosystem of UniqueBible: 100+ translations, original Hebrew (BHS5) & Greek (OGNT) texts with interlinear and morphology analysis, Strong's numbers, 30+ commentaries, lexicons, cross-references, and topical dictionaries—reimagined for fast, anywhere access in your browser.
  2. BibleMate AI Biblical Intelligence — Deeply integrates BibleMate AI's engine with your biblical data, powering semantic verse discovery, conversational Chat Mode, collaborative Partner Mode, autonomous Agent Mode, CLI/MCP tools, and scripture-grounded insights.
  3. BibleMate Agentic Workspace (Studio Mode) — Works together seamlessly with BibleMate Agentic Workspace on a single server. When ~/biblemate is set up, BibleMate Web auto-detects your installed agentic backends (agy, claude, codex, grok, gemini_api) so you can launch Studio Mode as a standalone tool tab or side-by-side inside Multi-Tool Workspace (AI: Studio Mode). See the Studio Mode Guide.

Note: For the CLI Version, MCP Server, Agent Mode backend, Partner Mode, and Bible Data, see BibleMate AI.

BibleMateAIWEB

Table of Contents

Features

Bible Study Tools

  • Multiple Bible Versions: 100+ translations including original Hebrew (BHS5) and Greek (OGNT)
  • Original Language Support: Interlinear view, morphology analysis, Strong's numbers
  • Hebrew & Greek Tooltips: Instant lexical information on hover
  • Mutual Word & Clause Highlighting: Hovering over a Hebrew or Greek word in original-language Bibles highlights its clause, matching lexical/Strong's occurrences across parallel panes (e.g., OPB and OLB), and the focal word
  • Cross-References: Treasury of Scripture Knowledge (TSK) integration with one-click verse loading and export
  • Commentaries: 30+ classic Bible commentaries and AI Commentary with quick switching and export
  • Book, Chapter & Verse Indexes: Whole-book, chapter, and verse study dashboards featuring Translation Vocabulary, Vocabulary & Rare Words, Chapter Map, People Relationship Graph, and quick-launch tool buttons
  • Reference Books: Read .book files (chapter-by-chapter) in a built-in reader, with clickable Bible references; add your own by dropping files into a folder (guide)
  • Custom Data & Study Materials (~/biblemate/data_custom/): Integrate your own Bible translations (.bible), OPB clause modules (.clause), reference books (.book), and tagged_translations.sqlite into BibleMate Web—automatically available across menus, search, and the REST API (protected by custom_token when configured; see Custom Resources)
  • Topical Studies: Nave's, Thompson Chain, Torrey's topical Bibles
  • Bible Dictionaries & Encyclopedias: Easton's, Smith's, ISBE, and more

Advanced Search

  • Literal Search: Fast text matching across Bible versions
  • Regex Search: Powerful pattern-based searches
  • Semantic Search: AI-powered meaning-based verse discovery
  • Parallel Passages: Find related scripture across gospels and books
  • Bible Promises: Search curated promise collections
  • Character & Location Studies: Explore biblical people and places

AI Integration

  • Chat Mode: Conversational AI assistant for Bible study questions
  • Partner Mode: Enhanced collaboration with extended context
  • Agent Mode: Autonomous AI agent with tool selection and multi-step reasoning
  • Studio Mode: Single-server integration with BibleMate Agentic Workspace (agy, claude, codex, grok, gemini_api), available as a standalone tool tab or AI: Studio Mode inside Multi-Tool Workspace (guide)
  • Multi-backend Support: OpenAI, Anthropic, Google AI, Azure, Cohere, DeepSeek, Mistral, xAI

User Experience

  • Synchronized Scrolling: Cross-reference comparison with linked scrolling
  • Audio Bible: Listen to Bible chapters (multiple versions)
  • Personal Notes, Bookmarks & Highlights: Google Drive integration for synced study notes, local Notepad, color-coded verse Highlights (light/dark mode aware), Bookmarks, Reading History, and a 365-Day Bible Reading Plan
  • Customizable UI & Comparison: Dark mode, colors, fonts, layout options, Compare Chapter, and customizable Verse Comparison versions with word-diff highlighting
  • Export: Download content as TXT, Excel (.xlsx), or DOCX (requires pandoc), including whole Bible chapters (from the three-dots menu), Chapter Study Sheets, Verses (VersesPlain when available), Chapter Comparison, Morphology tables, Cross-References, Treasury, Commentaries, Chapter Summary, Book Analysis, Chronology, and Search entries/lists
  • Distribution Analysis: Interactive book/chapter charts with OT/NT totals and on-demand book loading for large search results
  • Deep Linking: Share specific verses, chapters, and tool states via URL

Developer Features

  • REST API: Programmatic access to Bible data and tools
  • API Client: Command-line tool for API queries
  • Extensible Architecture: Plugin-based tool system
  • MCP Tools: Model Context Protocol integration for AI agents

Quick Start

Installation

# Install BibleMate AI Web
pip install --upgrade --no-cache-dir biblemateweb

# One-time data setup (downloads Bible databases)
biblematedata

# Start the server
biblemateweb

Enabling Semantic Search

To enable semantic search for BibleMateWeb, we need to install Ollama server and download the embedding model paraphrase-multilingual.

  1. Download Ollama from https://ollama.com/download and install it.
  2. Download the embedding model paraphrase-multilingual, run:
ollama pull paraphrase-multilingual

Enabling Studio Mode (BibleMate Agentic Workspace)

biblematedata installs BibleMate Agentic Workspace into ~/biblemate automatically. If you already have the Bible databases and only want to install the workspace, run:

biblematedata --workspace-only

Alternatively, you can manually download and unzip manual_setup.zip into ~/biblemate. Ensure at least one backend (agy, claude, codex, grok, or GEMINI_API_KEY) is configured. See the full Studio Mode Setup Guide.

The web UI will be available at http://localhost:33355

First Run

  1. Configure Storage Secret: For production deployment, generate a secure secret key:

    openssl rand -hex 32

    Add it to ~/biblemate/biblemateweb.config:

    config.storage_secret="your-generated-secret-here"
  2. Set AI Backend (optional): Visit http://localhost:33355/settings to configure:

    • AI Backend (OpenAI, Anthropic, Google AI, etc.)
    • API Keys
    • Model preferences
  3. Customize Server (optional): Edit ~/biblemate/biblemateweb.config:

    • config.port=33355 - Change server port
    • config.avatar="" - Set custom avatar URL
    • See Configuration for more options

Demo

Try BibleMate AI Web without installation: app.biblemate.ai

API Usage

BibleMate AI Web provides a REST API for programmatic access to Bible data and study tools.

Command-Line API Client

# Get help
biblemateapi -h

# Example queries
biblemateapi "verses:::John 3:16"
biblemateapi "chapter:::KJV:::Genesis 1"
biblemateapi "semantic:::love of God"

API Endpoint

GET /api/data?query={query}&language={eng|tc|sc}&token={custom_token}

Example:

curl "http://localhost:33355/api/data?query=verses:::John%203:16&language=eng"

Query Syntax

The API uses a keyword-based syntax with triple-colon delimiters:

{keyword}:::{options}:::{query}

Supported Keywords:

  • verses::: - Retrieve Bible verses
  • chapter::: - Get full chapters
  • semantic::: - AI-powered semantic search
  • literal::: - Literal text search
  • regex::: - Regular expression search
  • commentary::: - Bible commentary
  • lexicons::: - Hebrew/Greek lexicons
  • topics::: - Topical studies
  • And more...

Resources:

Configuration

Server Configuration

Edit ~/biblemate/biblemateweb.config (create if it doesn't exist):

config.hot_reload=False
config.avatar=""                    # Custom avatar URL
config.ai_backend=""                # Default AI backend
config.embedding_model="paraphrase-multilingual"
config.custom_token=""              # Token to unlock ~/biblemate/data_custom/ resources
config.google_client_id=""          # Google OAuth (for Drive notes)
config.google_client_secret=""
config.auth_uri=""                  # OAuth redirect URI override
config.storage_secret="REPLACE_ME_WITH_A_REAL_SECRET"
config.port=33355
config.verses_limit=2000            # Max verses in search results
config.disable_agent_mode=False
config.disable_partner_mode=False
config.limit_agent_mode_once_daily=False
config.limit_partner_mode_once_daily=False
config.disable_local_api_endpoint=True

For a comprehensive explanation of every configuration setting and how to obtain required keys, see the Configuration Guide.

Restart the server after configuration changes:

# Kill the current process, then:
biblemateweb

User Preferences

Individual users can customize their experience at: http://localhost:33355/settings

Settings include:

  • UI Language (English, Traditional Chinese, Simplified Chinese)
  • Dark Mode
  • Font Size
  • Primary Bible Version
  • AI Backend & API Keys
  • Semantic Search Parameters

Agent Mode Settings

Agent Mode enables autonomous AI agents with tool selection capabilities. It consumes more tokens than standard chat mode.

Restrict Public Access (recommended for public deployments):

# Disable agent mode for public users
config.disable_agent_mode=True

# Or limit to once daily per user
config.limit_agent_mode_once_daily=True

Note: Users can still access Agent Mode by:

  1. Entering their own API keys in Settings
  2. Using a custom token (if config.custom_token is set)

Daily limits require Google Account authentication to track usage per user. BibleMate AI does not store user data on servers - all settings are stored in the user's browser or Google Drive.

Google Drive Notes Sync

Enable personal Bible study notes synchronized across devices via Google Drive.

Setup:

  1. Create Google Cloud Project and enable Google Drive API
  2. Configure OAuth Credentials (see detailed setup guide)
  3. Add to config:
    config.google_client_id="your-client-id.apps.googleusercontent.com"
    config.google_client_secret="your-client-secret"
    config.auth_uri=""  # Optional: override redirect URI
  4. Restart server and users can sign in via the UI

Notes are stored in users' Google Drive AppData folder (hidden, app-specific storage).

Resources:

Document Export (DOCX)

To enable Word document export, install pandoc:

Debian/Ubuntu:

sudo apt install pandoc

macOS:

brew install pandoc

Windows: Download from pandoc.org

Users can then download Bible content and AI chat conversations as .docx files.

Deployment

Production Deployment

Required: Storage Secret Key

Generate a secure secret for session encryption:

openssl rand -hex 32

Add to ~/biblemate/biblemateweb.config:

config.storage_secret="your-generated-secret-key"

Server Hosting

BibleMate AI Web is built on NiceGUI, which supports various deployment options:

  • Standalone Server: Run biblemateweb with process manager (systemd, supervisor)
  • Reverse Proxy: Nginx, Apache, Caddy
  • Cloud Platforms: Compatible with cloud hosting services

Resources:

Security Considerations

For public deployments:

  • ✅ Set secure config.storage_secret
  • ✅ Enable HTTPS via reverse proxy
  • ✅ Consider restricting Agent/Partner modes to manage AI costs
  • ✅ Set config.verses_limit to prevent excessive queries
  • ✅ Configure OAuth carefully (restrict redirect URIs)

Documentation

Full documentation is available in the Documentation Index (English · 繁體中文 · 简体中文).

User & Feature Guides

Server, API & Development

Video Tutorials

Platform Support

  • Web UI: All modern browsers (Chrome, Firefox, Safari, Edge)
  • Server: Linux, macOS, Windows (Python 3.10-3.14)
  • API Access: Platform-independent REST API

Contributing

Contributions welcome! This project is part of the larger BibleMate AI ecosystem.

Related Repositories:

Support:

  • Issues - Bug reports and feature requests
  • Wiki - Extended documentation
  • Funding - Support development

License: GPLv3+ | Author: Eliran Wong | Website: biblemate.ai

About

BibleMate AI Web - Web GUI, HTTP server, and API server, built with BibleMate AI, AgentMake AI and UniqueBible App

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages