Skip to content
NexoralSystems

Databases & storage

AxioDB

High-performance embedded database for Node.js 20+ and Bun. MongoDB-style query engine, ACID transactions, and encryption with zero native compilation dependencies.

GitHub Stars
35
Forks
7
Downloads / Month
12.2K
Last Activity
Nov 23, 2026
TypeScriptMITActivenpm

Everything you expect from a production database without having to run a database.

CI OpenSSF Best Practices OpenSSF Baseline Known Vulnerabilities Socket Security npm version Zero native deps ACID Durability TypeScript License: MIT GitHub Stars

๐Ÿ‘‰ Official Documentation โ€” axiodb.in: full guides, API reference, and examples. This README is a quick start.

Quick start

Node.js & Bun

npm install axiodb
const { AxioDB } = require('axiodb');

const db = new AxioDB();
const users = await (await db.createDB('AppDB')).createCollection('users');

await users.insert({ name: 'Alice', age: 30 });
const { data } = await users.query({ age: { $gt: 25 } }).Sort({ age: -1 }).Limit(10).exec();
console.log(data.documents);

Deno (zero install via URL)

No installation required in Deno โ€” import directly via esm.sh:

import { AxioDB } from 'https://esm.sh/axiodb';

const db = new AxioDB();
const users = await (await db.createDB('AppDB')).createCollection('users');

await users.insert({ name: 'Alice', age: 30 });
const { data } = await users.query({ age: { $gt: 25 } }).Sort({ age: -1 }).Limit(10).exec();
console.log(data.documents);

No server to run, no node-gyp, no electron-rebuild. Requires Node.js โ‰ฅ22 (also verified on Bun v1.4.0).

๐Ÿค– AI Agent Skill

Building with Claude Code, Cursor, Copilot, Antigravity, or Windsurf? Install the official AxioDB skill so your AI agent generates verified query syntax, accurate transaction patterns, and avoids hallucinated APIs:

npx skills add nexoral/AxioDB --skill axiodb

Why AxioDB?

  • ๐Ÿ“ฆ Zero Setup & Zero C++: Pure JavaScript and TypeScript. No node-gyp errors, no build tools, and no native compilation issues on Node.js, Bun, or Electron.
  • ๐Ÿ“„ Native JSON (No SQL Migrations): Store raw objects directly. Perfect for AI agents, chats, and apps where data structures change often and SQL schemas are painful.
  • ๐Ÿ›ก๏ธ Safe from Crashes & Corruption: Uses real ACID transactions and Write-Ahead Logging (WAL). Even if your app or server crashes mid-write, your data stays intact.
  • โšก Fast In-Memory Caching: Delivers sub-millisecond (<1ms) reads with a built-in memory cache and fast disk indexes.
  • ๐Ÿ” Native Vector Search: Exact k-NN similarity search (Cosine, Dot, Euclidean) with hybrid query+vector filtering. Available in embedded, HTTP, TCP, and MCP surfaces โ€” zero extra dependencies.
  • ๐Ÿค– AI-Ready: Works out-of-the-box with AI coding assistants (Cursor, Claude Code, Copilot) via our official agent skill.

When to Use It

Great for:

  • AI Semantic Search & RAG โ€” Perform exact k-NN vector similarity search for agent episodic memory and retrieval-augmented generation.
  • AI Agent Memory โ€” Save conversation history, tool calls, and agent state locally.
  • Desktop & Electron Apps โ€” An embedded database that never breaks on user machines during updates.
  • CLI Tools & Local Apps โ€” Save and query data easily without running a database server.
  • Fast Prototyping โ€” Build full features with advanced queries without setting up Docker or cloud DBs.

Best fit: 1,000 to 500,000 documents.

When NOT to use it:

  • Millions of records, hundreds of concurrent web connections, or distributed clusters โ€” use PostgreSQL or MongoDB instead. See measured limits.

Features & Ecosystem

AxioDB is designed to be fully functional out of the box with zero setup, while offering dedicated companion tools for advanced workflows.

๐Ÿ“ฆ Built Directly Into the Core Package (npm install axiodb)

Everything below is included in the main zero-dependency package โ€” no extra servers, no Docker, and no native C++ compilation:

  • ๐Ÿš€ Zero-Setup Embedded Database โ€” Runs directly inside your application with new AxioDB(). No background database processes to install or manage.
  • ๐Ÿ›ก๏ธ Crash-Proof Data Safety โ€” Incomplete writes roll back automatically if your app, server, or power cuts out mid-operation, ensuring your data is never corrupted.
  • โšก Sub-Millisecond Reads (<1ms) โ€” Delivers blazing-fast queries with automatic in-memory caching and disk indexing, without needing to configure a separate Redis layer.
  • ๐Ÿ” Rich Querying & Data Joins โ€” Filter documents with intuitive operators ($gt, $in, $regex), paginate, sort, and join multiple collections with aggregation pipelines ($lookup).
  • ๐Ÿ” Native Vector Search & Semantic Similarity โ€” Exact k-NN search with Cosine, Dot, and Euclidean metrics, hybrid query+vector filtering, Worker Thread acceleration, and zero extra dependencies โ€” available in embedded, HTTP, TCP, and MCP surfaces.
  • ๐Ÿค– Built-in AI Agent MCP Server โ€” Pass { MCP: true } to instantly boot an official Model Context Protocol server on port 27020, giving Claude, Cursor, and autonomous AI agents 46 tools to manage database state.
  • ๐ŸŒ Built-in HTTP REST & TCP Servers โ€” Turn on { HTTP: true } (port 27018) or { TCP: true } (port 27019) whenever you need remote microservices, worker processes, or client apps to talk to the same database.

๐Ÿ› ๏ธ Optional Companion Tools

Install these only when you need dedicated standalone apps or command-line scripting:

  • ๐Ÿ–ฅ๏ธ Desktop App (Electron GUI) โ€” A standalone desktop management application for Linux, macOS, and Windows to manage local and remote AxioDB instances without opening a web browser.
  • โšก Terminal CLI (Go Binary) โ€” A lightweight, standalone CLI binary with an interactive REPL shell, TLS remote connections, and database backup/export/import tools.
  • ๐Ÿค– AI Agent Skill โ€” Run npx skills add nexoral/AxioDB --skill axiodb to equip your AI coding assistant (Cursor, Claude Code, Windsurf, Copilot) with verified query syntax and schemas.
  • ๐Ÿณ Official Docker Container โ€” Deploy theankansaha/axiodb in Kubernetes, cloud servers, or Docker Compose with all surfaces (HTTP, TCP, MCP) ready to run.

Performance & Testing

AxioDB is verified across 14 isolated test suites (329+ tests) with a 100% pass rate, benchmarked at 100,000 documents on an AMD Ryzen 5 5500U / Node v26:

OperationLatency
Indexed query1โ€“2 ms
documentId point lookup<1 ms
In-memory cache hit<1 ms
Range query ($gt/$gte/$lt/$lte)2โ€“5 ms
Sorted pagination (.Sort().Limit())1โ€“2 ms
Insert single~31 ms
Rollback~8 ms

Full performance charts, test suites, and methodology: axiodb.in/performance.

Tooling & Deployment

Desktop GUI & CLI

AxioDB ships an interactive Go CLI and an Electron desktop app for Linux, macOS, and Windows:

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.ps1 | iex

Prebuilt binaries are also available on GitHub Releases.

Docker

docker run -d --name axiodb-server \
  -p 27018:27018 -p 27019:27019 \
  -v axiodb-data:/app \
  theankansaha/axiodb

All surfaces default to on, seeded with an admin account. See Docker/README.md for environment variables and configuration.

Documentation

PageCovers
axiodb.inDocumentation home
Create a databaseConstructor options, collections, indexes
API referenceFull method signatures and types
Vector searchWorker-thread vector similarity search (cosine, dot, euclidean)
AxioDBCloudRemote TCP access, TLS, authentication
Server APIThe 41 HTTP endpoints
CLIGo CLI reference
DockerImage and environment variables
SecurityRBAC roles, password policy, rate limits
MCP serverAI agent integration
Agent SkillAI agent progressive disclosure reference & runbooks
LimitationsScope and measured limits
ComparisonAgainst SQLite, JSON files, lowdb, nedb, better-sqlite3

Contributing, security & license

Contributions are welcome โ€” see CONTRIBUTING.md and CODE_OF_CONDUCT.md.

Security issues: report privately through GitHub Security Advisories. Policy details in SECURITY.md.

Released under the MIT License. Author: Ankan Saha.

Support the project with a โญ on GitHub or through GitHub Sponsors.