Embedded Database
for AI Agents
Everything you expect from a production database without having to run a database. Built for AI agents and modern apps to safely persist, query dynamic JSON state, and perform semantic similarity search with zero native dependencies. Just npm install axiodb and start querying with pure JavaScript objects.
1// npm install axiodb2const { AxioDB } = require('axiodb');3
4// Create AxioDB instance (embedded mode)5const db = new AxioDB();6
7// Create database and collection8const myDB = await db.createDB('HelloWorldDB');9const collection = await myDB.createCollection('greetings');10
11// Insert and retrieve data - Hello World!12await collection.insert({ message: 'Hello, Developer!' });13const result = await collection.query({}).exec();14console.log(result.data.documents[0].message); // Hello, Developer!All 14 test suites — CRUD, transactions, reads, aggregation, auth, HTTP API, TCP (auth/no-auth/transaction/TLS), crash recovery, MCP, and cache options — pass across Node.js, Bun, and Deno, including the worker-thread data paths (reads of ≥100-file collections, searches over ≥10,000 documents). Node.js ≥ 22, Bun, and Deno are officially supported runtimes.
Load the AxioDB Agent Skill into ChatGPT, Claude, Cursor, Copilot, or any AI coding assistant to get expert guidance on queries, schema design, transactions, and best practices.
Native Model Context Protocol (MCP) server built directly into AxioDB core — 46 tools on port 27020 for AI agents (Claude Code, Cursor, Windsurf, Codex, Antigravity). Start directly in TypeScript with new AxioDB({ MCP: true }) or run in Docker.
CLI tool for AxioDB — interactive REPL with MongoDB shell syntax, all 32 TCP commands, TLS support, and installers for 12 platforms.
Native desktop app (Electron) with a card-based document viewer, bouncy-ball splash loader, connection management, and all-in-one database tooling for Linux, macOS, and Windows.
Progressive-disclosure skill package for AI coding agents — 100% verified query syntax, zero context bloat, and automated operational scripts.
Sub-millisecond indexed reads (<1ms), ~31ms single inserts, and ACID transactions verified across 14/14 automated test suites.
Introducing AxioDBCloud
Deploy AxioDB in Docker or Cloud. Connect from anywhere with TCP protocol. Same API, zero code changes!
Database Visualization Built In
Manage your databases visually with our standalone Desktop GUI app (AxioDB Control). Connect over TCP or start the HTTP API with new AxioDB({ HTTP: true }) on localhost:27018.
Born from Embedded Database Pain. Built for Modern TypeScript & AI Agents.
It started with a recurring headache: node-gyp ERR! — followed by rigid SQL migrations for dynamic JSON and corrupted state under concurrency.
Whether persisting state for autonomous AI agents, building cross-platform desktop applications, or shipping zero-config CLI tools, developers were trapped: Tried better-sqlite3 — native C++ compilation errors and rigid table schemas for nested JSON. Tried LowDB — corrupted files on concurrent writes with zero ACID safety. Tried NeDB — abandoned since 2016 with unpatched CVEs and no TypeScript.
So we built AxioDB — an embedded document database designed for modern JavaScript runtimes and AI workflows.
Pure JS/TS. No node-gyp, no Python/C++ build tools, verified on Node.js & Bun
Write-ahead logging, savepoints, atomic commits, and automatic crash recovery
Dynamic document store with MongoDB-style operators ($gt, $regex, $in) and deep queries
InMemoryCache with TTL jitter, Worker Threads, and official Desktop GUI
Still Using LowDB, NeDB, or better-sqlite3?
Here's what developers actually deal with every day:
- ✗No concurrency — concurrent writes corrupt data
- ✗No ACID transactions — crash or crash recovery = data loss
- ✗No built-in caching — full file rewrite on every mutation
- ✗Single JSON file — entire DB loaded into memory
- ✗No indexing or query operators ($gt, $regex, $in)
- ✗No longer maintained since 2016 with unpatched CVEs
- ✗File corruption on concurrent agent or process access
- ✗No TypeScript types or modern ESM/CJS exports
- ✗No ACID guarantees, savepoints, or crash recovery
- ✗Fails on modern Node.js and Bun runtimes
- ✗Requires native C++ bindings compilation (node-gyp)
- ✗Fragile across multi-platform Docker & CI/CD builds
- ✗Rigid tables — painful schema migrations for dynamic JSON
- ✗SQL string queries instead of native JavaScript objects
- ✗Platform-specific binaries (Windows ≠ macOS ≠ Linux)
AxioDB solves all of these problems:
Why AxioDB?
SQLite requires native C bindings that break in cross-platform deployments. Flat JSON files lack ACID transactions, indexing, and concurrency. MongoDB requires running a heavy external server daemon. AxioDB unifies the best of all: embedded zero-setup like SQLite, native document queries like MongoDB, in-memory caching built-in, and true ACID crash resilience.
Zero native C++ bindings, zero compilation, and no node-gyp headaches. Verified across Node.js and Bun with zero external binaries.
Built-in InMemoryCache with randomized TTL jitter and dual-write index synchronization. Sub-millisecond reads for hot documents and multi-core Worker Thread parallelization.
Manipulate JavaScript objects directly instead of writing SQL strings. Operators like $gt, $regex, aggregation pipelines, and schema-less documents for dynamic agent state.
Commit, rollback, and savepoints backed by a write-ahead log (WAL) with automatic startup crash recovery — enterprise reliability built in from day one.
AI Agents & Vector Memory
Persist conversation logs, tool execution traces, in-flight agent state, and structured task queues locally. Perform instant semantic similarity search for episodic agent memory and local RAG without external vector databases or SQL migrations.
TypeScript & Node.js Apps
Zero native dependencies, no server setup, no compilation. Verified across Node.js and Bun without native bindings or node-gyp headaches.
Desktop Software & CLI Tools
Ideal for Electron apps and CLI developer tools. Store configuration, cache data, manage local state—all with a single npm install.
Local-First & Edge Systems
Local-first applications, microservices, and edge computing. Full ACID transactions with WAL crash resilience, dual-write indexing, and an in-memory cache.
AxioDB is not competing with cloud databases like PostgreSQL or MongoDB Atlas. It's for when you need a fast, zero-native document database embedded directly inside your TypeScript app, AI agent workflow, or desktop software. Sweet spot: 10K-500K documents.
Vector Search — Native Semantic & AI Similarity Search
Find documents by semantic meaning and mathematical similarity rather than exact keyword matches. AxioDB delivers native Exact k-NN vector search with 100% recall, instant ACID writes, and worker-thread parallel acceleration — with zero native dependencies.
Pure Vector Search
1const results = await memories.vectorSearch(2 'embedding',3 queryVector,4 { topK: 5, minScore: 0.80, metric: 'cosine' }5);Hybrid Search (Filter + Vector)
1const results = await memories2 .query({ category: 'tech' })3 .vectorSearch('embedding', queryVector, { topK: 5 })4 .exec();In AI Agents (MCP Tool)
1{2 "name": "axiodb_vector_search",3 "arguments": {4 "dbName": "AgentDB",5 "collectionName": "memories",6 "field": "embedding",7 "vector": [0.14, 0.84, -0.32]8 }9}What you get
- ✓100% Exact Recall: Exact k-NN mathematically guarantees ground-truth closest matches without graph approximation misses
- ✓Instant Writes (<1ms): Embeddings are stored immediately with ACID safety — no background index builds or graph warmup delays
- ✓Worker-Thread Acceleration: Parallel worker threads automatically compute vector distances on collections above 150 documents
- ✓Multi-Metric Support: Cosine similarity, Dot product, and Euclidean distance with automatic
_scoreattribution
Available across all surfaces
- ✓Embedded Library: Direct collection shortcut and fluent query builder chaining
- ✓AxioDB Cloud TCP: High-performance binary protocol (
port 27019) with connection pooling - ✓HTTP REST API:
POST /api/operation/vector-search/(port 27018) for any language - ✓Full Vector Search Documentation & Examples →
See also: Features · Installation · Comparison
