Skip to main content

Welcome to KeraDB

KeraDB is a lightweight, embedded NoSQL document database written in Rust. It provides high-performance data storage with SDKs for multiple programming languages including Node.js, Python, Rust, Go, Java, Kotlin, Swift, C#, C/C++, PHP, Flutter, React Native, and Objective-C.

Key Features

  • High Performance: Written in Rust for maximum speed and safety
  • Embedded Database: No separate server required - runs in your application
  • Vector Database: Built-in similarity search for AI/ML embeddings and RAG applications
  • Multi-Language SDKs: Available for 13+ programming languages
  • Simple API: Clean, intuitive CRUD operations
  • Lightweight: Minimal dependencies and small footprint
  • Cross-Platform: Works on Windows, macOS, Linux, iOS, and Android
  • Persistent Storage: Data is stored on disk with automatic syncing

Quick Start

Get started with KeraDB in your preferred language:

npm install keradb
const { Database } = require('keradb');

// Create a new database
const db = Database.create('myapp.ndb');

// Insert a document
const id = db.insert('users', {
name: 'John Doe',
email: 'john@example.com',
age: 30
});

console.log('Inserted document with ID:', id);

// Find by ID
const user = db.findById('users', id);
console.log('Found:', user);

// Update document
db.update('users', id, {
name: 'John Doe',
email: 'john@example.com',
age: 31
});

// Find all documents
const allUsers = db.findAll('users');
console.log('All users:', allUsers);

// Close when done
db.close();

Why KeraDB?

KeraDB is perfect for applications that need a simple, embedded database without the overhead of running a separate database server. Common use cases include:

  • Desktop Applications: Electron, Tauri, or native desktop apps
  • Mobile Apps: iOS, Android, Flutter, and React Native applications
  • CLI Tools: Command-line applications that need local storage
  • Embedded Systems: IoT devices and edge computing
  • Development & Testing: Local development without database setup
  • Prototyping & MVPs: Quickly build and iterate on ideas

Supported Languages

LanguagePackageStatus
Node.js/TypeScriptnpm install keradb✅ Stable
Pythonpip install keradb✅ Stable
Rustkeradb = "0.1"✅ Stable
Gogo get github.com/keradb/keradb-go✅ Stable
JavaMaven/Gradle✅ Stable
KotlinMaven/Gradle✅ Stable
C#/.NETdotnet add package keradb✅ Stable
SwiftSwift Package Manager✅ Stable
C/C++CMake/Header-only✅ Stable
PHPComposer✅ Stable
Flutter/Dartflutter pub add keradb_flutter✅ Stable
React Nativenpm install keradb-react-native✅ Stable
Objective-CCocoaPods✅ Stable

Next Steps