Engine Spec: Micro Profile · Sub-850 KB Stripped · Zero Thread Idle

The forkable, budget-enforced database for five paradigms in one file.

LoomDB is a forkable, deterministic, budget-enforced, zero-copy embedded multi-modal database with a stable single-file ABI and native OPFS multi-tab coordination. Weaving SQL Relational, JSON Documents, HNSW AI Vectors, and Time-Series Streams into a single portable .loom file with sub-512 KB idle RAM.

< 512 KB Idle RAM Overhead
0.38 ms SIMD Fused Search
85% Delta Compression
1 File Portable Container
Multi-Modal Paradigm Convergence CONVERGED FABRIC
RELATIONAL ANSI SQL Tables, Primary Keys, MVCC B+TREE MMAP
DOCUMENTS Schemaless JSON, Nested Field Paths BINARY JSON
AI VECTORS High-Dimensional Cosine / L2 Nearest Neighbor AVX-512 VECTORS
TIME-SERIES Sensors & Telemetry High-Throughput Streams GORILLA DELTA
GRAPH EDGES Adjacency Traversal & Relationship Mapping ADJACENCY GRAPH
Unified Virtual Pager
Single File Container (.loom)
< 512 KB RAM

Interactive terminal shell. Run queries live.

Type loom in your command prompt to enter the database workspace. Test the interactive sandbox below. (Live web sandbox is limited to 3 test queries — download LoomDB for unrestricted local execution.)

loom — ./data.loom [Micro Profile: <512KB RAM]
Sandbox Usage: 0 / 3 queries
Presets:
[LOOM_DB] Interactive Shell v0.1.0
Mounted Container: ./data.loom (Single portable file) Type .help, .tables, or .stats for commands.
loom> SELECT id, topic, notes, cosine_similarity(embedding, [0.12, 0.45, -0.22, 0.81]) AS score FROM memories WHERE topic LIKE '%Rust%' ORDER BY score DESC LIMIT 2;
+--------+------------------------------+--------------------------+--------+ | id | topic | notes | score | +--------+------------------------------+--------------------------+--------+ | mem_01 | High-Performance Rust Storage| Micro profile <512KB RAM | 0.9842 | | mem_02 | Fused HNSW SIMD Traversal | Single-pass filter search| 0.9120 | +--------+------------------------------+--------------------------+--------+ 2 rows in set. Execution time: 0.38 ms (SIMD fused)
loom>
[DEMO LIMIT REACHED · 3/3 QUERIES USED]
You have reached the interactive web sandbox limit. To build real projects with unlimited queries, local ACID persistence, HNSW vector indexing, and zero network latency, download LoomDB directly to your computer.

The Anatomy of a Single .loom Container

No directory sprawl. No orphaned WAL files. All five engines operate within a unified 64-bit virtual paging container.

System Architecture: Unified Storage Pager & 6 Novel Primitives UNIFIED STORAGE LAYER
LoomDB 6 Novel Storage Primitives Architecture
Single memory-mapped container .loom with virtual paging, O(1) COW branching, and lock-free seqlock read path. View Full Resolution ↗
Virtual Container Binary Allocation Map Direct mmap Offset Paging
01 INODE 128B Header
02 RELATIONAL B+Tree Pages
03 LOOMBSON Document Store
04 HNSW INDEX SIMD Vectors
05 TIME-SERIES Delta Stream
06 WAL RING Circular Buffer
Active Layer: 01 INODE (128B Header) — Memory-mapped fixed root inode with xxHash3 integrity check and ring pointers. Click any block to inspect
01 // PRIMITIVE

Forkable COW Snapshots

Page-level fork(), checkout(), and discard() inside the single .loom file. Zero-copy instantaneous branches allocate only upon write.

FORK BRANCH 'experiment_a' | O(1) Allocation
02 // PRIMITIVE

Deterministic Flight Recorder

Lightweight WAL records execution entropy: timestamps, random seeds, and inputs. Replay any mutation sequence bit-for-bit to debug edge failures.

Bit-for-Bit Deterministic State Verification
03 // PRIMITIVE

Hard Resource-Budget Governor

Declare strict caps: max_ram, max_wal, max_io_per_query. Enforced via backpressure and hard errors, never best-effort degradation.

SELECT * FROM _sys_budget | Enforceable Contract
04 // PRIMITIVE

Zero-Copy Mmap + Stable ABI

Lock-free readers + single-writer protocol. Returns typed byte views over memory-mapped pages without copying rows into heap memory.

Offset 0x00 .. 0x80 | Generation Seqlock ABI
05 // PRIMITIVE

OPFS Multi-Tab Coordination

Browser-native single-writer / multi-reader coordination over Origin Private File System via Web Locks, transaction queues, and crash recovery.

Web Locks API + BroadcastChannel Live CDC
06 // PRIMITIVE

Self-Queryable Telemetry

Latency percentiles, cache hit ratios, page faults, and WAL bytes stored in a native time-series table. Queryable using standard SQL.

SELECT * FROM _sys_telemetry | Built-in Metrics

Why LoomDB outperforms legacy databases in real projects

Existing databases force you into silos: Postgres for tables, Mongo for JSON, Pinecone for vectors, Influx for telemetry. Here is how LoomDB transforms distinct engineering domains:

AI Agents & Autonomous Systems

Local In-Process Memory & RAG

The Problem: Pinecone and Milvus require network round-trips, credit billing, and heavy distributed infrastructure that breaks when offline.

LoomDB embeds high-dimensional HNSW vector search directly inside your AI agent process in under 512 KB RAM. Zero network latency, instant semantic cosine retrieval, and zero cloud dependency.

Desktop & CLI Developer Tools

Single-File Local State for Tauri & Electron

The Problem: SQLite lacks native vector search, JSON querying is clunky, and it has no real-time push subscription capabilities.

LoomDB gives desktop tools and CLI utilities a single-file portable database that natively understands JSON documents, vector embeddings, and real-time live push queries via CDC.

Edge Devices, IoT & Micro-Controllers

Ultra-Low Power & Conflict-Free Sync

The Problem: Traditional database daemons constantly consume background threads, idle CPU cycles, and hundreds of megabytes of RAM.

LoomDB's Micro Profile consumes less than 512 KB RAM and zero CPU threads when idle. Built-in Delta-CRDTs allow edge nodes to write offline and automatically sync when connectivity returns.

Time-Series & Sensor Telemetry

High-Throughput Append Logs

The Problem: Relational databases suffer severe write amplification and index degradation when ingesting millions of telemetry events per hour.

LoomDB combines an in-container circular WAL with Gorilla XOR float compression, reducing numeric metric storage by 85% and achieving sequential NVMe write throughput.

Rapid Prototyping & Startups

Fluid Schemas: Start Schemaless, Scale Rigid

The Problem: Starting with MongoDB leads to eventual data integrity debt; starting with Postgres requires tedious migrations before product-market fit.

Start 100% schemaless with LoomBSON collections. As your models mature, add strict relational schema enforcement contracts dynamically without downtime or database migration rewrites.

Privacy-First & Multi-Tenant SaaS

Instant Crypto-Shredding

The Problem: Complying with GDPR "Right to be Forgotten" requires costly table vacuums and complex cascading deletion queries across all historical backups.

LoomDB encrypts data blocks per tenant. Deleting a tenant's cryptographic key immediately renders all their historical data unrecoverable across all SSTables and backups with zero CPU vacuum overhead.

Engine specification & comparative benchmarks

Engineered from scratch to combine the lightweight embeddability of SQLite with the vector intelligence of modern AI stores.

LoomDB
< 0.48 MB
CrepeDB / MoltenDB
~ 12 MB
SQLite
~ 4.2 MB
DuckDB
~ 32 MB
MongoDB
~ 350 MB
Pinecone
~ 210 MB
Database Idle RAM Footprint Binary Weight Storage Model Native AI Vectors Document JSON Live Query CDC
LoomDB < 512 KB < 850 KB Single .loom file Yes (SIMD Fused) Yes (LoomBSON) Yes (Native)
CrepeDB / MoltenDB ~8 – 20 MB ~6 – 14 MB Multi-file / Segmented Add-on only Limited Polling only
SQLite ~4 MB ~800 KB Single .db file No (Plugin required) Limited JSON1 No
DuckDB ~30 MB ~18 MB Single .duckdb file Experimental Basic No
MongoDB ~350 MB ~120 MB Clustered directory Add-on only Yes (BSON) Change streams
Pinecone / Qdrant ~200 MB ~45 MB Clustered directory Yes Metadata only No

Integrate in your code in under 30 seconds

LoomDB runs as an embedded in-process library (zero network overhead) or as a standalone local server. Select your stack:

main.rs — Embedded In-Process Zero-Copy Access IN-PROCESS · 0ms IPC
// Open or create a single-file portable container
let db = loom_core::LoomDB::open("./app.loom")?;

// Insert document with high-dimensional vector embedding
db.collection("memories").insert(serde_json::json!({
    "id": "mem_01",
    "topic": "High-Performance Rust Storage",
    "notes": "LoomDB achieves sub-512KB idle RAM overhead.",
    "embedding": [0.12, 0.45, -0.22, 0.81]
}))?;

// Hybrid single-pass vector distance query with relational filter
let hits = db.query(
    "SELECT id, topic, notes FROM memories 
     WHERE topic LIKE '%Rust%' 
     ORDER BY cosine_similarity(embedding, [0.12, 0.45, -0.22, 0.81]) DESC 
     LIMIT 1;"
)?;
println!("Found: {:?}", hits);
Selected Platform Setup Package
Windows (64-bit)
Terminal One-Liner (Registers Service & Adds 'loom' to PATH):
irm https://loomdb.dev/install.ps1 | iex
Choose Machine Compatible Installer:
Windows Native GUI Setup .EXE

Standard Windows Setup Wizard dialog box (Next >, Browse..., Cancel). Automatically configures LoomDB, updates PATH, and optionally installs service.

Download loom-setup.exe →
macOS Apple Silicon & Intel

Single standalone installer script. Installs binary, configures zsh PATH, and registers launchd daemon.

Download loom-setup-macos.sh →
Linux x86_64 & ARM64

Single standalone installer. Installs binary to path, updates bashrc/profile, and registers systemd unit.

Download loom-setup-linux.sh →