HeliosDB Nano Documentation
HeliosDB Nano Documentation
High-performance embedded database with vector search, time-travel queries, and Git-like branching
What is HeliosDB Nano?
HeliosDB Nano is a lightweight, embeddable database engine written in Rust that combines the simplicity of SQLite with advanced features typically found in enterprise databases:
- PostgreSQL-Compatible SQL - Standard SQL syntax with 95%+ PostgreSQL compatibility
- Vector Search - Built-in HNSW indexing for similarity search and AI/ML applications
- Database Branching - Git-like branching for development, testing, and experimentation
- Time-Travel Queries - Query historical data at any point in time
- Materialized Views - Automatic and incremental view refresh
- Multi-Tenancy - Row-level security and tenant isolation
Quick Start
Installation
=== “Cargo (Rust)”
```bashcargo add heliosdb-nano```=== “pip (Python)”
```bashpip install heliosdb-nano```=== “npm (Node.js)“
```bashnpm install heliosdb-nano```Basic Usage
use heliosdb_nano::EmbeddedDatabase;
// Create or open databaselet db = EmbeddedDatabase::new("./mydb")?;
// Create tabledb.execute("CREATE TABLE users (id INT PRIMARY KEY, name TEXT)")?;
// Insert datadb.execute("INSERT INTO users VALUES (1, 'Alice')")?;
// Querylet results = db.query("SELECT * FROM users")?;Try the REPL
# Start interactive shellheliosdb-nano repl --data-dir ./mydb
# Or in-memory modeheliosdb-nano repl --memoryKey Features
-
:material-source-branch: Database Branching
Create isolated branches for development, testing, or experimentation without duplicating data.
-
:material-clock-time-four: Time-Travel Queries
Query data as it existed at any point in time using
AS OF TIMESTAMPsyntax. -
:material-vector-point: Vector Search
Built-in HNSW vector indexing for similarity search, RAG applications, and embeddings.
-
:material-table-refresh: Materialized Views
Auto-refreshing views with incremental updates and CPU-aware scheduling.
Deployment Options
| Mode | Description | Best For |
|---|---|---|
| Embedded | In-process library | Applications, edge devices, testing |
| Server | PostgreSQL-compatible server | Multi-client access, production |
| In-Memory | RAM-only storage | Testing, caching, ephemeral data |
Documentation Sections
- Getting Started - Installation, quick start, deployment
- User Guide - SQL reference, REPL commands, configuration
- Features - Branching, time-travel, vectors, security
- API Reference - REST API, Rust, Python, TypeScript, Go SDKs
- Developer Guide - Architecture, contributing
Version History
| Version | Highlights |
|---|---|
| v3.4 | Multi-tenancy, Row-Level Security, CDC, enhanced SMFI |
| v3.3 | Self-Maintaining Filter Index (SMFI), speculative filters |
| v3.0 | Database branching, time-travel, materialized views |
| v2.0 | Vector search, HNSW indexing, product quantization |
Need help? Check the FAQ or open an issue.