SoliDB
A lightweight, high-performance multi-document database with live query and blob support, written in Rust.
https://github.com/user-attachments/assets/aa64e937-39b8-42ca-8ee5-beb7dac90c23
๐ Documentation
Full documentation available at: https://solidb.solisoft.net/docs/
โจ Main Features
Core Database
- ๐ Fast & Efficient โ Built with Rust for maximum performance
- ๐ JSON Document Storage โ Store and query JSON documents with ease
- ๐ Columnar Storage โ Column-oriented storage for analytics workloads with LZ4 compression and specialized indexes (Sorted, Hash, Bitmap, Bloom)
- ๐๏ธ Blob Storage โ Native support for storing and retrieving binary files
- ๐พ Two storage engines โ solistore, a pure-Rust engine, for a new data directory, and RocksDB, which existing directories stay on; persistence with automatic crash recovery; all collections share one keyspace, so creating or dropping a collection costs the same at ten collections or ten thousand
Query Language
- ๐ SDBQL Query Language โ Familiar query syntax inspired by ArangoDB, plus as-of joins, lambdas, sketches, and time-travel scans
- ๐ Indexing โ Hash, persistent, geo, fulltext, vector, bloom and cuckoo indexes
- ๐ Geo Queries โ Spatial indexes and distance functions
- ๐ Graph Traversals โ Native graph queries and shortest path algorithms
- ๐ Common Table Expressions โ WITH clauses for composable, reusable subqueries
- ๐ฆ COLLECT AGGREGATE โ GROUP BY with inline aggregations (COUNT, SUM, AVG, MIN, MAX)
- โก Prepared Statement and Result Caches โ Parse once, execute many; read results cached per caller and dropped on every write or schema change
Time Series & Streaming
- โฑ๏ธ Time Series โ TIME_BUCKET, DELTA, RATE, FILL, RESAMPLE, and ASOF JOIN
- ๐ Stream Processing โ CREATE STREAM with tumbling/sliding WINDOW clauses for continuous aggregations
Vector Search
- ๐ง Vector Indexes โ Create and query vector indexes for ML/AI workloads
- ๐ Hybrid Search โ Combined vector similarity + fulltext search in a single query
- ๐ Vector Functions โ VECTOR_SEARCH, VECTOR_DISTANCE, VECTOR_SIMILARITY, VECTOR_NORMALIZE; quantized indexes
Real-time & Scripting
- โก Live Queries โ Real-time subscriptions via WebSocket
- ๐ฅ๏ธ Lua Scripting โ Server-side scripts for custom API endpoints (
--no-lua / SOLIDB_NO_LUA=1 skips the VM pool)
Distributed Architecture
- ๐ Multi-Node Replication โ Peer-to-peer replication with automatic sync
- ๐งฉ Sharding โ Horizontal data partitioning with configurable shard count
- โ๏ธ Auto-Rebalancing โ Automatic data redistribution when nodes change
- โก Hybrid Logical Clocks โ Consistent ordering across distributed nodes
- ๐ Replication Lag Metrics โ Per-peer lag monitoring via Prometheus
Observability & Performance
- ๐ Prometheus Metrics โ
/metrics reports query latency, slow queries, result-cache hits, replication lag and memory
- ๐ญ OpenTelemetry Tracing โ W3C traceparent propagation for distributed tracing
- ๐ Binary Driver Protocol โ MessagePack over TCP for the official clients, alongside the HTTP API
Security & Administration
- ๐ JWT Authentication โ Secure API access with Bearer tokens
- ๐ API Keys โ Non-expiring keys for server-to-server communication
- ๐ณ Transactions โ ACID transactions on one node via the X-Transaction-ID header (no transaction spans shards or nodes)
- ๐ฅ๏ธ Admin UI โ A separate web app in
admin/ to browse collections, run SDBQL, and manage indexes, users and the cluster
๐ฆ Official Clients
SoliDB provides native client libraries for multiple languages. See the client documentation for installation and usage details.
- Rust (
solidb-client)
- Node.js and browser (
solidb-client)
- Python (
solidb)
- Go (
github.com/solisoft/solidb-go-client)
- PHP (
solidb/php-client), plus Laravel Eloquent (solidb/laravel-eloquent)
- Ruby (
solidb)
- Elixir (
solidb)
- Mobile โ iOS (Swift), Android (Kotlin), React Native and Flutter, with offline-first sync (
clients/mobile-sdk)
๐ Quick Start
# Clone and build
git clone https://github.com/solisoft/solidb
cd solidb
cargo install --path .
# Start the server
solidb
The server listens on http://localhost:6745.
Note: On first start an admin user is created. Its password is SOLIDB_ADMIN_PASSWORD when set; otherwise a random one is written to <data-dir>/.admin_password (owner-only on Unix), and the log gives that path.
๐ป Platforms
Prebuilt binaries are published for each release:
| Platform |
Artifact |
| Linux x86_64 |
solidb-linux-amd64.tar.gz |
| Linux x86_64, static (musl) |
solidb-linux-amd64-musl.tar.gz |
| Linux arm64 |
solidb-linux-arm64.tar.gz |
| macOS arm64 |
solidb-darwin-arm64.tar.gz |
| Windows x86_64 |
solidb-windows-amd64-setup.exe (installer), solidb-windows-amd64.zip |
On Linux and macOS, install.sh fetches and installs the right one, and falls back to the static musl build when the system glibc is too old.
On Windows, run solidb-windows-amd64-setup.exe: it installs SoliDB in Program Files and
offers to run it as a Windows service started with the machine, to show an icon in the
notification area that starts, stops and watches the server, and to add the tools to the
PATH. It upgrades an installed version in place and leaves the data alone, as does
uninstalling. The installer is not signed: Windows SmartScreen asks before running it.
The .zip holds the same executables for a manual setup: solidb-service install registers
the service, solidb-tray.exe is the icon, and solidb.exe --port 6745 --data-dir .\data
runs the server in a console.
Two Windows caveats: --daemon is Unix-only and exits with an error (the service and the
icon are its Windows counterparts). And the generated .admin_password file under the data
directory is written with default ACLs rather than the owner-only permissions used on Unix,
so restrict the data directory yourself on a shared machine.
๐ Build Requirements
Ubuntu/Debian
sudo apt-get install -y build-essential clang libclang-dev pkg-config libzstd-dev
Arch Linux
sudo pacman -S base-devel clang gcc pkg-config zstd
Windows
Requires the MSVC build tools, CMake, and LLVM (RocksDB's bindgen needs libclang):
winget install Microsoft.VisualStudio.2022.BuildTools Kitware.CMake LLVM.LLVM
Expect a long first build โ RocksDB is a large C++ tree.
๐ Learn More
Visit the full documentation for:
- Getting started guide
- API reference
- SDBQL query syntax
- Cluster setup
- Lua scripting
- And much more!
๐ License
O'Saasy License