ZeroPrep-DnD · v0.10.0

Что нового в 0.10.0 / Release notes
English | Русский
A privacy-first, self-hosted AI Dungeon Master for genuine tabletop D&D 2024 & 5e. Cross-platform application for macOS (Apple Silicon) and Windows 10/11, combining cinematic AI narration, a local-first Hybrid RAG Engine with D&D 2014/2024 SRD + custom rulebook indexing, a Studio UI designed for 13" screens, a dedicated multi-window Tabletop Board & Knowledge Graph, physical dice resolving, Apple Neural Engine computer vision, low-latency multi-voice streaming TTS, and a zero-install LAN companion for players’ smartphones.
Latest Release v0.10.0 (Hybrid RAG, Built-in D&D 2014/2024 SRD, Custom Rulebooks & Reproducible AI Evals): SQLite incremental campaign auto-RAG (BM25 + Vectors + RRF, 0.0% GM leak rate); built-in D&D 2014 & 2024 SRD compendium + custom .md/.txt uploads (/api/knowledge*); reproducible offline benchmark harness (Recall@5: 100.0%, MRR@5: 0.9028); GitHub Actions CI + 160 tests. Read Release Notes.
📸 Screenshots (v0.9.6 · 13" Studio UI)

Separate Native / Browser Board Window (/board · Dark Theme) |
Obsidian Chronicle & Hero Roster |
 |
 |
🌟 Key Capabilities
- Real-time table observation: Detects player count, active speakers, engagement, laughter, yawns, and smartphone distraction.
- Micro-expression recognition: Action-unit tracking for eye aspect ratio (EAR), inner-lip aperture (speaking vs silence), genuine smiles (zygomaticus lift), brow furrowing (suspense before rolls), and raised eyebrows (shock / surprise).
- Zero network latency & total privacy: Runs 100% locally on device hardware (Apple Neural Engine on macOS, MediaPipe/OpenCV on Windows) in ~18 ms with 0% CPU overhead. Video frames never leave your local machine.
2. 🎭 Living DM, Plausibility Gate & Graphify Memory
- Authentic Master Personalities & Strict Plausibility: Choose between Fair Realist with a Dreamer’s Spark (Rule of Cool with firm boundaries), Dry Tabletop Veteran, Grimdark Realist, Epic Chronicler, or customize your own traits. The Master refuses absurd/impossible actions cleanly while supporting creative solutions with grounded stakes.
- Associative Knowledge Graph: Extracts vows, NPCs, locations, and story threads across sessions (with RU/EN inflection stemming), paired with a visual SVG Graph Explorer and strict GM secret isolation.
- Hybrid Scene Auto-Routing & Concentration: Automatically routes Session Zero, dialogue, and story turns to deep flagship models (
gpt-6.2-sol) and fast combat/exploration to gpt-6.1-terra, while tracking automatic Concentration CON saves on damage.
3. 🎙️ Cinematic Multi-Voice TTS (OpenAI TTS Engine)
- Flagship Neural Voice Pipeline: Powered by OpenAI TTS (
tts-1) with dynamic character acting and multi-voice dialogue routing:
- Dungeon Master narration: deep velvet baritone (
Onyx) or classic storyteller (Fable);
- Female NPCs and witches: expressive (
Nova) and soft (Shimmer);
- Young rogues and bards: agile (
Echo).
- Instant Streaming Narration: First audio bytes play within 250–350 ms via streamed SSE tickets.
- Smart Diction & Intonation: Strip technical prefixes (
[Hero]: is never read aloud), normalize dice formulas (1d20+4 → “one d twenty plus four”), auto-stress accents, and natural pause punctuation.
- Alternative Engines: ElevenLabs (
Eleven Flash v2.5), local offline Silero TTS, or system voices.
4. 🗺️ Multi-Window Tabletop Board, Regional Map & Fog of War
- Dedicated Board Window (
/board & Stage Modes): Switch seamlessly between Chronicle, Board + Chat, Full Board, Memory Graph, or pop out the board and graph into a real separate macOS/browser window (↗ Window) synced live over SSE.
- Interactive VTT & Regional Cartography: Drag-and-drop token figurines (AC & HP rings), distance ruler, spell AoE templates (sphere, cone, line), terrain painting, antique regional world maps, server-side Fog of War, and built-in ambient soundtracks.
- Physical Dice Resolving: You roll real physical dice on your table; the DM validates modifiers, DC checks, Concentration saves, and critical rolls atomically.
5. 📱 Zero-Install Mobile LAN Companion
- Players on the same Wi-Fi network scan a QR code to access their mobile character sheet:
- Live HP tracking, physical roll submission, character inventory, and push-to-talk microphone.
- Strict Security Isolation: Mobile players cannot access API keys, server settings, or private notes.
🚀 Quickstart
🍏 macOS (Apple Silicon M1/M2/M3/M4)
- Desktop App: Double-click
Skazitel.app (or the desktop shortcut).
- Alternative Launcher:
./Start-browser.command
Opens your browser at http://localhost:47831.
🪟 Windows (10 / 11)
- One-Click Batch File:
Double-click
Start-Windows.bat.
- Requires Node.js 24+.
- Opens automatically at
http://127.0.0.1:47831.
- Optional Computer Vision on Windows:
pip install mediapipe opencv-python
🏗️ System Architecture & AI Pipeline
flowchart LR
UI["13-inch Studio UI + /board Window + LAN Mobile"] --> API["Local Node 24 Server + Token/LAN Gate"]
EV["Apple Neural Engine Vision (On-Device)"] --> API
API --> GUARD["Deterministic Rules & Plausibility Guardrails"]
API --> STORE["SQLite WAL Store (Atomic Revisions + Backups)"]
STORE --> RAG["Hybrid RAG (BM25 + Vector RRF) + SRD 2014/2024 + Custom Docs"]
STORE --> GRAPH["Associative Knowledge Graph (RU/EN Stemming + Secret ACL)"]
RAG --> CTX["3-Tier Prompt Cache Context"]
GRAPH --> CTX
GUARD --> CTX
CTX --> ROUTER["Hybrid Scene Router (gpt-6.2-sol / gpt-6.1-terra / Gemini 4 / Local)"]
ROUTER --> GUARD
ROUTER --> TTS["Streaming TTS Prefetch + Multi-Voice Dialogue + Barge-in"]
📊 Reproducible Offline Evals & Tests
Run anytime locally (node src/evals/run-evals.mjs / node --test src/tests/*.test.mjs):
- D&D 2014/2024 SRD + Hybrid RAG Benchmark (12 RU/EN queries):
Recall@3: 100.0% · Recall@5: 100.0% · MRR@5: 0.9028 · Avg Query Time < 3 ms
- GM Secret & Private Whisper Isolation:
0.0% leak rate across Hybrid RAG and Multi-Hop Knowledge Graph
- Deterministic Rules & Hybrid Router Guardrails:
100.0% pass (Temp HP → Concentration DC, 2024 Hit Dice recovery, RU/EN Plausibility Gate, gpt-6.2-sol ↔ gpt-6.1-terra)
- Automated Test Suite: 160 passing tests covering gameplay mechanics, SQLite concurrency, Keychain pools, prompt caching, RAG & security.
🛡️ Security & Privacy Architecture
- 100% Local Storage: All campaign journals, character sheets, and maps are stored in local SQLite databases in
./Saves/.
- Zero Telemetry / Zero Tracking: No third-party analytics, no tracking pixels, no telemetry beacons.
- Token-Guarded API: Administrative endpoints (
/api/settings, /api/keys, /api/export) require a cryptographically generated 256-bit session token accessible only on localhost.
- Private Mobile Bridge: Player companion tokens are scoped strictly to player actions; they cannot mutate server settings or inspect credentials.
- Safe for Redistribution: The repository contains zero hardcoded absolute paths, zero private keys, and zero device identifiers.
⚙️ Supported AI Providers & Models
| Provider |
Primary & Recommended Models |
Key Features |
| OpenAI |
gpt-6.2-sol + gpt-6.1-terra (hybrid auto-router), gpt-6-luna (summary / default), gpt-6.2-astra • Voice & Vision: tts-1 (onyx, fable, nova, echo), gpt-4o-mini-transcribe, gpt-live-1, gpt-image-2 |
Responses API, Hybrid story/combat model routing, 3-tier prompt caching, structured JSON game protocol, dynamic reasoning_effort boost during Session Zero |
| Groq |
openai/gpt-oss-120b, whisper-large-v3-turbo |
Ultra-fast text generation & sub-second voice transcription with Free & Paid billing tiers |
| Google Gemini |
gemini-4-hydrogen, gemini-4-carbon, gemini-3.8-flash, gemini-2.5-pro |
2026 Gemini 4 flagship & fast models, audio understanding, long context window |
| OpenRouter & Local |
google/gemma-4-31b-it:free (zero-cost fallback) • Local: Ollama, LM Studio, vLLM, DeepSeek, Mistral, Qwen |
Automatic failover to free reserve models on quota limits; full OpenAI-compatible endpoint support |
📚 Guides & Documentation
📜 License & Acknowledgments
- Licensed under the MIT License.
- Game mechanics conform to D&D 5th Edition System Reference Document (SRD 5.1 & SRD 5.2.1).
- Built with native Web Components, Apple Vision framework, and Node.js.
评论