The embedded database for the modern stack.
NebulaDB is a reactive, TypeScript-first, schema-optional, embeddable NoSQL database that runs in the browser, Node.js, and Edge environments.
import { createDb } from '@nebula/core';
import { MemoryAdapter } from '@nebula/adapter-memory';
// Create a database with in-memory adapter
const db = createDb({ adapter: new MemoryAdapter() });
// Create a collection
const users = db.collection('users');
// Insert documents
await users.insert({ name: 'Alice', age: 30 });
await users.insert({ name: 'Bob', age: 25 });
// Query documents
const result = await users.find({ age: { $gt: 20 } });
console.log(result);
// Subscribe to changes
users.subscribe({ age: { $gt: 30 } }, (result) => {
console.log('Users over 30:', result);
});
Our latest release brings enhanced error handling, improved performance, and a new cloud-themed naming scheme.
Starting with v0.2.2, all NebulaDB releases are named after types of clouds, reflecting our commitment to building a database that's as flexible and powerful as the sky.
"Altocumulus" represents mid-level cloud formations that appear as white or gray patches, often in layers or waves - just like our layered architecture and wave of new features.
Current: v0.2.2 "Altocumulus"
Coming soon: v0.3.0 "Billow"
Future: v0.4.0 "Cirrus"
Improved error recovery mechanisms and more detailed error reporting for better debugging.
Optimized query execution and indexing for faster data retrieval and updates.
More efficient change detection and subscription updates for real-time applications.
NebulaDB combines the best of NoSQL databases with modern TypeScript features.
Built from the ground up with TypeScript, providing excellent type safety and developer experience.
Subscribe to data changes and automatically update your UI when the underlying data changes.
Use the same API with different storage backends: Memory, IndexedDB, SQLite, and more.
Extend functionality with plugins for validation, encryption, caching, and more.
Work with or without schemas, with full support for runtime validation when needed.
Run in browsers, Node.js, or edge environments with the same consistent API.
Get started quickly with our comprehensive documentation. Note: Our documentation is being updated for the v0.2.2 "Altocumulus" release.
Learn the basics of NebulaDB and set up your first database.
Detailed documentation of all NebulaDB APIs and options.
Real-world examples and code snippets to help you build your application.
Learn about advanced features and optimization techniques.