-
Notifications
You must be signed in to change notification settings - Fork 1
Repository README
High-performance multi-model database with native AI/LLM integration
π Documentation Β· π Quick Start Β· π οΈ Setup Β·
The code in this repository was partially or fully generated by an AI tool (e.g., AI-assisted coding, vibe coding, or automated code generation). While efforts were made to ensure correctness and functionality, AI-generated code may: Lack modular consistency: Cross-module dependencies, naming conventions, or architectural patterns may be inconsistent or suboptimal. Contain subtle bugs: Logic errors, edge-case oversights, or inefficient patterns may persist. Require manual review: Human oversight is essential for refactoring, testing, and alignment with project standards. Be outdated: AI models may not reflect the latest best practices, libraries, or security standards. Use this code at your own risk. Contributions, feedback, and improvements are welcome to address these limitations.
This is an active development project. Current synchronized status snapshot (source-based):
- β
19 modules are
PRODUCTION_CANDIDATE - π‘ 48 modules are
HARDENING - π΄ 2 modules are
EXPERIMENTAL(llama_cpp,stable_diffusion) - βͺ 3 modules are
THIN/PLACEHOLDER(ai_working,distributed_tensor,retrieval)
Status: β
PRODUCTION_CANDIDATE β L0 verification reports 0 real gaps and current work is Phase 3 hardening / optimizer follow-up.
Current focus: GPU/distributed traversal parity, benchmark stabilization, diagnostics consistency, and hybrid retrieval rollout hardening.
Canonical source: src/graph/ROADMAP.md and ROADMAP.md
See ROADMAP.md for the full 72-module table.
Documentation source precedence and update cadence are defined in DOCUMENTATION_GOVERNANCE.md.
Evidence artifacts:
- ROADMAP.md
- benchmarks/wave7/release_gate_manifest_w7.json
- tests/integration/WAVE5_TEST_COVERAGE.md
- tests/integration/WAVE6_TEST_COVERAGE.md
- src/auth/ROADMAP.md
- docs/security/GA_SANITIZER_EVIDENCE_BUNDLE.md
- security/pentest/GA_PENTEST_EVIDENCE_BUNDLE.md
- Root-level markdown documentation was refreshed against current
src/module docs and root governance files. - Current source-backed release-readiness highlights:
- 19 production-candidate modules verified: access_model, analytics, graph, image_analysis, index, llm, llm_streaming, network, observability, prompt_engineering, query, rag, replication, server, sharding, temporal, training, transaction, vector_search.
- Process module Phase 1-6 complete and production-ready (2026-08-06): 101 files, 33,106+ LOC, 87 acceptance criteria passed.
- Auth module Phase 1-6 hardening complete (
src/auth/ROADMAP.md): principal-contract freeze, 12 new error codes, RFP/FED/ASY focused tests, and AHP benchmark gates. - Failover module Phase 2-3 complete: state machine, split-brain prevention, DR orchestration with diagnostics.
- Wave 5 and Wave 6 hardening remain the retained regression baseline for release-critical journeys.
- Wave 7 PASS evidence and sharding Phase 6 sign-off remain linked into the active GA hardening path.
- Batch C sanitizer / pentest evidence is closed; Batch D human governance sign-off is still pending at
docs/governance/GA_PROMOTION_SIGN_OFF.mdΒ§9.
- Broken historical root evidence references were replaced with current source-verifiable artefacts.
- Aktueller Gap-Scan-Stand wird ueber die Worklist gepflegt:
ai_working/gap_scan_report_ollama_gemma4.mdai_working/gap_scan_report_ollama_gemma4.smoke.md
- Scope-Regel:
themis_coreactionable,third_partynur informativ. - Aktives Tracking-Issue fuer den aktuellen Baseline-Scope:
-
#5475([P0-HIGH] INCLUDE Module - Current Gap Worklist Tracking (2026-06-11))
-
- Konsolidierungsstatus GitHub-Issues:
- Historische v3-P0- und Cross-Module-Tracker wurden geschlossen (superseded by
#5475). - Duplikat-Tracker
#5474wurde geschlossen. - Bewusst offen bleiben die Legacy-Umstellungs-Issues
#5363bis#5366.
- Historische v3-P0- und Cross-Module-Tracker wurden geschlossen (superseded by
ThemisDB is a high-performance multi-model database engine in active development that aims to combine relational, graph, vector, document, geospatial, and time-series storage in a single system with native AI/LLM integration.
Current Status (2026-08-28, source-evidence based): 72 modules are tracked in src; 19 are PRODUCTION_CANDIDATE, 48 are HARDENING, 2 are EXPERIMENTAL, and 3 are THIN/PLACEHOLDER. See ROADMAP.md for detailed per-module status.
Key capabilities at a glance:
| Capability | Details |
|---|---|
| Multi-model storage | Relational Β· Graph Β· Vector (HNSW/FAISS) Β· Document Β· Geospatial Β· Time-series |
| ACID transactions | MVCC, SSI, 2PC, SAGA orchestration, HLC-based global ordering |
| Distributed | Raft consensus, mTLS replication, consistent-hash sharding, auto-failover |
| AI/LLM native | Embedded LLM inference (llama.cpp, ONNX), RAG pipeline, prompt engineering, LoRA fine-tuning |
| Full-text search | BM25 + vector hybrid search (RRF), faceted, conversational, multi-modal |
| Observability | Prometheus metrics, OpenTelemetry tracing, PagerDuty/Slack alerting |
| Security | AES-256-GCM field encryption, RLS, Zero-Trust policy, eIDAS timestamping, HSM/Vault |
| Editions | MINIMAL Β· COMMUNITY Β· ENTERPRISE Β· MILITARY Β· HYPERSCALER |
For a consistent onboarding flow, use these pages in order:
- QUICKSTART.md β install + first successful run
- SETUP.md β complete local development environment
- SUPPORT.md β support and escalation paths
- RELEASE_STRATEGY.md β release lanes and version lifecycle
- INDEX.md β full root navigation map
docker pull ghcr.io/makr-code/themisdb:latest
docker run -d --name themisdb -p 8765:8765 -p 8766:8766 ghcr.io/makr-code/themisdb:latestConnect via the wire protocol on port 8766 or the REST/HTTP API on port 8765.
Source-backed preset prerequisites:
-
linux-releaseexpects Ninja and a bootstrappedvcpkgcheckout at./vcpkg. -
community-releaserequires a system RocksDB development package (librocksdb-devor equivalent).
Build reality check: on developer machines the most reliable path is a repo-local
vcpkgcheckout plusTHEMIS_AUTO_BOOTSTRAP_DEPS=ONduring configure. Some Windows and fresh-clone setups still require that bootstrap path to be present before the toolchain is valid; this is a local environment requirement and not a stable source-level contract.
Avoid hard-coded absolute paths such as
C:/Projects/ThemisDB/...in documentation. The portable pattern is to reference the repo root and use localCMakeUserPresets.jsonoverrides or environment variables for machine-specific values.
git clone https://github.com/makr-code/ThemisDB.git
cd ThemisDB
# Install dependencies and configure build environment
./scripts/setup-pre-commit.sh # Linux/macOS
# CMake-native dependency bootstrap (cross-platform)
cmake --preset linux-release -DTHEMIS_AUTO_BOOTSTRAP_DEPS=ON
cmake --build --preset linux-release
# Community edition (requires RocksDB system package):
# cmake --preset community-release && cmake --build --preset community-release
# Windows (run from VS Developer Command Prompt):
# cmake --preset windows-release && cmake --build --preset windows-releaseSee QUICKSTART.md for a step-by-step guide, and SETUP.md for a full development-environment walkthrough.
ThemisDB is available in five editions, selected at CMake build time:
| Edition | Use case | Branch | Build flag |
|---|---|---|---|
| MINIMAL | Embedded / resource-constrained | minimal |
-DTHEMIS_EDITION=MINIMAL |
| COMMUNITY | Open-source, self-hosted | community |
-DTHEMIS_EDITION=COMMUNITY |
| ENTERPRISE | Commercial, SLA-backed | enterprise |
-DTHEMIS_EDITION=ENTERPRISE |
| MILITARY | Hardened / air-gapped | military |
-DTHEMIS_EDITION=MILITARY |
| HYPERSCALER | Cloud/OEM, Kubernetes operator | hyperscaler |
-DTHEMIS_EDITION=HYPERSCALER |
Feature sets are nested: MINIMAL β COMMUNITY β ENTERPRISE β HYPERSCALER.
See RELEASE_STRATEGY.md for the full feature comparison and edition matrix.
GitHub workflow and branch governance references:
-
BRANCHING_STRATEGY.md - canonical branch model (
develop,minimal,community,enterprise,hyperscaler,military) - .github/GOVERNANCE.md - labels, milestones, and issue/PR metadata standards
- .github/pull_request_template.md - required PR evidence sections
After startup, verify health and run a first query:
curl http://localhost:8765/health
curl -X POST http://localhost:8765/v2/query \
-H 'Content-Type: application/json' \
-d '{"query":"SELECT 1 AS hello"}'ThemisDB is organised into tracked source modules under src/, grouped into four logical layers:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β API Layer REST Β· GraphQL Β· gRPC Β· Wire V2 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Query Layer AQL Β· Optimizer Β· Planner Β· Cache β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Storage Layer RocksDB Β· MVCC Β· WAL Β· Sharding β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Distributed Raft Β· Replication Β· Failover Β· CDC β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Full architecture reference: ARCHITECTURE.md
β Module list and status: ROADMAP.md
ThemisDB supports distributed transactions across shards using a family of commit protocols.
Three concrete coordinator classes share the IRecoverableTwoPhaseCoordinator recovery contract:
| Coordinator | Protocols | Use Case |
|---|---|---|
TwoPhaseCommitCoordinator |
2PC | Standalone 2PC in sharding module |
CrossShardTransactionCoordinator |
2PC Β· 3PC Β· SAGA Β· Percolator Β· Calvin | Multi-protocol orchestration |
DistributedTransactionCoordinator |
2PC (+ optional Percolator fast-path) | TrueTime-based distributed 2PC coordinator |
WALLoggingHelper (include/sharding/wal_logging_helper.h) is used by
TwoPhaseCommitCoordinator and DistributedTransactionCoordinator (both WALManager-backed).
CrossShardTransactionCoordinator uses its own TransactionWAL backend.
β Full architecture reference: docs/architecture/transaction_coordinators.md
β Interface design: docs/ITRANSACTION_COORDINATOR.md
For security and hardening reviews, use the tier model (T0 Trusted Core -> T5 Plugin Boundary) as the default classification.
| What | Where |
|---|---|
| Tier model and trust boundaries | ARCHITECTURE.md |
| Normative security rules per tier | SECURITY.md |
| Contributor checklist for tier/boundary evidence | CONTRIBUTING.md |
| PR template section (required for runtime changes) | .github/pull_request_template.md |
| Tier-to-test verification mapping | CTEST.md |
Rule of thumb: architecture is layered, but security acceptance is tier-based.
| Document | Description |
|---|---|
| QUICKSTART.md | Get running in minutes |
| SETUP.md | Full development environment setup |
| ARCHITECTURE.md | System design and module overview |
| VERSIONING.md | Versioning policy and release cadence |
| RELEASE_STRATEGY.md | Branch model, edition matrix, CI/CD pipeline |
| CHANGELOG.md | Release notes (Keep a Changelog format) |
| AUDIT.md | Root audit navigation pointer to canonical /audit/** sources |
| docs/performance/PERFORMANCE_EXPECTATIONS.md | Benchmarks and performance targets |
| docs/use-cases/LLM_WIKI_MVP.md | LLM Wiki MVP setup, config, and usage |
| SOP.md | Standard operating procedures (release, hotfix, incident) |
| GOVERNANCE.md | Project governance: roles, decision-making, contribution policy |
| MAINTAINERS.md | Maintainer roster and module ownership |
| SECURITY.md | Security policy and vulnerability reporting |
| CONTRIBUTING.md | How to contribute |
| CODE_OF_CONDUCT.md | Community guidelines |
| SUPPORT.md | Where to get help |
| INDEX.md | Full project structure index |
| docs/ | Extended documentation (API reference, guides, research) |
ThemisDB follows Semantic Versioning 2.0.0. The current version is stored in the VERSION file and in CHANGELOG.md. Pre-release identifiers use the form -rcN (release candidate) or -alphaN / -betaN.
See VERSIONING.md for the full versioning policy.
Contributions are welcome! Please read CONTRIBUTING.md before submitting a pull request. All participants are expected to follow our Code of Conduct.
Good first issues are tagged good first issue in the issue tracker.
To report a security vulnerability, do not open a public issue. Follow the responsible disclosure process in SECURITY.md or use GitHub Security Advisories.
ThemisDB is released under the MIT License with Government Clause.
ThemisDB includes Gap Scanner V3 (GS3), a comprehensive multi-phase gap detection system with 46 specialized scanners organized across 4 phases.
# List all 46 scanners
python tools/gs3.py list-scanners
# Run fast scan on source code
python tools/gs3.py scan src include tests --scan-mode fast --output results.json
# Generate Markdown report
python tools/gs3.py report results.json --format md --output report.md
# Generate JSON report
python tools/gs3.py report results.json --format json| Phase | Category | Count | Focus |
|---|---|---|---|
| Phase 1 | AI, Core C++, Checks | 18 | Baseline detection (AI-Vibe, memory, concurrency) |
| Phase 2 | Safety | 5 | Exception safety, input validation, type safety |
| Phase 3 | Security | 7 | Cryptography, data leaks, hardening |
| Phase 4 | Design & Quality | 16 | Architecture rules, documentation standards |
- tools/GS3_CLI_GUIDE.md β Complete CLI reference and usage guide
- tools/scanners/GS3_COMPLETE_GUIDE.md β System architecture and scanner design
- tools/GS3_PROJECT_COMPLETION_REPORT.md β Project deliverables and metrics
- tools/legacy/LEGACY_SCANNER_MAPPING.md β Legacy code archival and migration info
- 46 specialized scanners for AI-Vibe, C++, security, and design gaps
- Dual-axis classification: Severity (CRITICAL/HIGH/MEDIUM/LOW) Γ Impact (CRITICAL/HIGH/MEDIUM/LOW/THIRD_PARTY)
-
Auto-discovery: Scanners automatically discovered from
tools/scanners/ - Multiple output formats: JSON (machine-readable) and Markdown (human-readable)
- Scan modes: Fast (quick pass) and Thorough (detailed analysis)
- Phase-based execution: Sequential scanning through phases 1-4
# Fast scan for PR validation (< 3 minutes)
python tools/gs3.py scan src --scan-mode fast --output pr_scan.json
# Fail on critical blockers
if grep -q '"severity":"CRITICAL".*"impact_level":"CRITICAL"' pr_scan.json; then
echo "FAILED: Critical blockers detected"
exit 1
fiSee tools/GS3_CLI_GUIDE.md for more CI/CD examples.
Per-module documentation lives in
src/<module>/README.mdandinclude/<module>/. This section is a navigation index.
Zuletzt geprueft (Root-Sync): 2026-08-28
ThemisDB 1.9.0-beta Β· Home Β· Module-Index Β· GitHub Β· Issues
ThemisDB 1.9.0-beta Β· Home Β· Wiki-Index Β· Module-Index Β· FAQ Β· Quick-Reference Β· GitHub Β· Issues Β· Discussions Β· License
- Batch Operations
- Best Practices
- CRUD Tutorial
- Custom Document Ingestion
- Getting Started Tutorial
- Interactive Examples
- Schema Design
- Video Tutorials
- AQL Reference
- AQL Examples
- AQL Overview
- AQL Feature Roadmap
- AQL Geospatial Guide
- AQL LLM Migration Guide
- AQL API
- AQL Grammar (EBNF)
- AQL Root Overview
- AQL Examples (root)
- API Reference
- API Module README
- OpenAPI Overview
- Client SDK Overview
- SDK Overview
- Operations
- Operations Overview
- Operations Runbook
- Operations Handbook
- ThemisCtl Admin Guide
- Pipeline E2E SOPs
- Deploy Overview
- Docker Overview
- Docker Hub README
- Helm Overview
- Packaging Overview
- Operator Overview
- Security Policy
- Production Hardening Checklist
- Security Hardening Guide
- Encryption Key Management
- Access Control Framework
- Zero Trust Policy
- API Authentication & Authorization
- HSM Production Setup
- PKCS11 Integration
- DSGVO / SOC2 Checklist
- Access Model Runbooks
- Access Model Dashboard
- Maturity Automation Runbook
- Access Review Automation
- Access Model Dashboard
- Access Model Runbooks
- Rights Revocation
- Dr Checklists
- Dr Testing
- Incident Response Playbook
- Incident Response Testing
- GPU Oom Recovery
- Grammar Debugging
- Metrics Scrape Troubleshooting
- Model Swap Procedure
- Quota Tuning
- Subagent Deployment
- Logging Configuration
- Content Model
- Crypto & Keys
- Feature Flags Reference
- Modular Architecture Roadmap
- Modularization Guide
- Module Architecture Index
- PostgreSQL Wire Protocol
- Query Scheduling
- Raft Consensus Design
- Resource Pooling
- Source Directory Guide
- Unified Access Model
- E1 001 Layered Retrieval Design
- E1 002 Ann Abstraction Strategy
- E1 003 Tensor Summary Types
- E1 004 Lora Package Distinction
- E1 005 Model Switch Compatibility
- E1 006 Federated Tensor Summaries
- E2 001 Evaluation Framework Design
- E2 002 Hardware Profile Strategy
- E2 003 Query Planner Routing Model
- E2 004 Approximation Governance Rules
- E2 005 Cross Layer Fallback Confidence Policy
- E3 001 Distributed Tensor Design
- E3 002 Manifest Coordination Strategy
- E3 003 Recovery And Erasure Choice
- E3 004 Tensor Fabric Infrastructure
- Contributing
- Contributing (root)
- Code of Conduct
- Support
- Maintainers
- CTest Guide
- Build Quick Reference
- Developer Wiki Index
- Build / Test / CI
- Module Index
- Branching Strategy
- Disabled Stub Policy
- Docs PR Policy
- GA Promotion Sign Off
- Github Milestones Setup
- Maturity Claim Verification Checklist
- Maturity Evidence Registry
- Merge Gate Bot Config
- Merge Gate Status Live
- Phase 1 Closure Report
- Phase Closure Policy
- Phase Dependency Graph
- Phase3 Enforcement Runbook
- Plugin Submodule Rollback
- PR Version Targeting
- PR Version Targeting Backfill
- Production Ready 2026 Delivery Plan
- Query Module Status
- Readme
- Release Promotion Gate Policy
- Release Validation Checklist
- Security Module 5671 Evidence Summary
- Sharding P6 Residual Risk Acceptance
- Sourcecode Compliance Governance
- Updates Development Status Sign Off
- Wave C Implementation Complete
- Blob Storage
- Cuda
- Ethics Ai
- Exporters
- Huggingface
- Image Analysis
- Importers
- RPC
- Scraper
- Themisdb Ai Watermark Detector
- User Storage Encrypted
- Chimera Architecture
- Chimera Future
- Chimera Readme
- Chimera Roadmap
- Covina Fastapi Ingestion Architecture
- Covina Fastapi Ingestion Future
- Covina Fastapi Ingestion Roadmap
- Vcc Base Architecture
- Vcc Base Future
- Vcc Base Roadmap
- Vcc Clara Ingestion Architecture
- Vcc Clara Ingestion Future
- Vcc Clara Ingestion Roadmap
- Vcc Veritas Architecture
- Vcc Veritas Future
- Vcc Veritas Roadmap
- 01 Hello World
- 02 Todo App
- 03 Contact Manager
- 04 Inventory System
- 05 Time Series Monitor
- 06 Graph Social Network
- 07 Vector Search Documents
- 08 Dms Erp System
- 09 Iot Sensor Network
- 10 Drone Image Analysis
- 11 Blog Wiki
- 12 Expense Tracker
- 13 Recipe Manager
- 14 Ecommerce Catalog
- 15 Event Management
- 16 Kanban Board
- 17 Crm
- 18 Realtime Chat
- 19 Recommendation Engine
- 20 Smart Home
- 21 Coding Platform
- 22 AQL Diagram Tool
- 23 Traveling Salesman
- 24 Moral Philosophy Debates
- API Versioning
- Distributed Sharding
- Feedback Plugins
- Geo
- Gnn
- Image Analysis
- Legal Lora Training
- LLM
- Lora Sync
- Migration
- Nlp
- Performance
- Railway
- Replication
- Rope Visualization
- Sample Product Config
- Security
- Client SDK Overview
- Quickstart
- Sdk Enhancements
- Sdk Implementation Summary
- Test Suite Readme
- Go
- Java
- Javascript
- Php
- Python
- Ruby
- Rust
- Typescript
- 01 Grundlegende Operationen
- 02 AQL Queries
- 03 Graph Daten
- 04 Multimodell Anwendung
- 01 Quickstart Guide
- 02 AQL Referenz Kurzuebersicht
- 03 Datenmodellierung Guide
- 04 Uebungsaufgaben
- 05 Best Practices Guide
- Training Documents
- Training Overview
- 01 Einfuehrung Und Uebersicht
- 02 Datenmodelle Und Architektur
- 03 AQL Abfragesprache
- 04 Installation Und Setup
- 05 Anwendungsbeispiele
- Training Presentations
- Dependencies Readme
- Processmonitor Readme
- Themis.admintools.shared Readme
- Themis.aqlquerybuilder Readme
- Themis.aqlquerybuilder Roadmap
- Themis.auditlogviewer Readme
- Themis.auditlogviewer Roadmap
- Themis.classificationdashboard Readme
- Themis.classificationdashboard Roadmap
- Themis.compliancereports Readme
- Themis.compliancereports Roadmap
- Themis.gisviewer.controlpanel Readme
- Themis.gisviewer.controlpanel Roadmap
- Themis.impactanalysisviewer Readme
- Themis.impactanalysisviewer Roadmap
- Themis.ingestiontool Readme
- Themis.ingestiontool Roadmap
- Themis.keyrotationdashboard Readme
- Themis.keyrotationdashboard Roadmap
- Themis.piimanager Readme
- Themis.piimanager Roadmap
- Themis.retentionmanager Readme
- Themis.retentionmanager Roadmap
- Themis.sagaverifier Readme
- Themis.sagaverifier Roadmap
- Themis.usbadmintool Readme
- Themis.usbadmintool Roadmap
- CI Readme
- CI Roadmap
- Compiler Diagnostics Readme
- Compiler Diagnostics Roadmap
- Completion Readme
- Copilot Ollama Router Readme
- Copilot Ollama Router Roadmap
- Gnn Readme
- Gnn Roadmap
- Rope Visualizer Readme
- Rope Visualizer Roadmap
- Tco Calculator Readme
- Tco Calculator Roadmap
- Tests Readme
- Tests Roadmap
- Themis Config Wx Readme
- Themis Docs Builder Readme
- Wikipedia Ingestion Readme