projects/axiodb

AxioDB

Embedded NoSQL database for Node.js — pure JavaScript SQLite alternative with MongoDB-style queries. Zero native dependencies, no node-gyp, works in Electron & CLI tools. 15,000+ npm downloads per year.

LatestActive DevelopmentMITTypeScript
27
Stars
4
Forks
4
Contributors

// Key Features

MongoDB-Style Queries

Familiar query syntax with complex operations

AES-256 Encryption

Built-in encryption for sensitive data

Zero Dependencies

Pure JavaScript with no native modules

Worker Threads

Async operations for high performance

// Tech Stack

data-structuresdatabaseembedded-databasehacktoberfestjavascriptnodejsnosqlnpm-packageopen-sourcesqlite-alternativetypescriptworker-threads

// Installation

bash
npm install axiodb

# Or using Yarn
yarn add axiodb

// Usage Example

javascript
const { AxioDB } = require("axiodb");
const db = new AxioDB();

const userDB = await db.createDB("MyDB");

// Create a basic collection
const userCollection = await userDB.createCollection("Users");

// Create an encrypted collection with a custom key
const secureCollection = await userDB.createCollection(
  "SecureUsers",
  true,
  "mySecretKey",
);

await userCollection.insert({
  name: "John Doe",
  email: "john.doe@example.com",
  age: 30,
});

const results = await userCollection
  .query({ age: { $gt: 25 } })
  .Limit(10)
  .Sort({ age: 1 })
  .exec();
console.log(results.data.documents);

Ready to get started?

Check out the full documentation and examples on GitHub

View on GitHub →