Introduction to GenosDB
GenosDB (GDB) is a lightweight, decentralized peer-to-peer (P2P) graph database designed for modern web applications. It runs entirely in the browser, offering real-time synchronization, powerful graph queries, and built-in security without requiring a backend server.What is GenosDB?
GenosDB is a browser-native graph database that combines:- Graph data model for storing nodes and relationships
- Real-time P2P synchronization via WebRTC and Nostr
- Powerful query capabilities with recursive graph traversal
- Built-in security with RBAC and WebAuthn
- Local-first architecture using OPFS for persistent storage
GenosDB is currently in stable beta. The API is stable but may receive minor updates as we work toward v1.0. Check the CHANGELOG for updates.
Why Use GenosDB?
Truly Decentralized
No backend servers required. Peers connect directly to each other via WebRTC, with data syncing automatically in real-time. Your application can work offline and sync when reconnected.Developer-Friendly API
Simple, intuitive methods for CRUD operations:Graph-Native
Unlike traditional databases, GenosDB is built for relationships:Real-Time by Default
Every query can be reactive. Changes sync instantly across all connected peers:Scales Horizontally
Optional Cellular Mesh topology enables scaling to thousands of concurrent peers by reducing connection complexity from O(N²) to O(N).Key Features
High Performance
Processes tens of thousands of operations per second using OPFS for storage and Web Workers for non-blocking execution.
Flexible Queries
MongoDB-style query operators with support for text search, regex, logical operations, and recursive graph traversal.
P2P Sync
Intelligent hybrid synchronization combines delta updates for speed with full-state fallback for reliability.
Built-in Security
Role-Based Access Control (RBAC), WebAuthn authentication, and optional per-node ACLs for fine-grained permissions.
Conflict Resolution
LWW-CRDT with Hybrid Logical Clocks ensures deterministic conflict resolution across peers.
Modular Architecture
Enable only the features you need: Security Module, Radix Indexer, Geo Module, Audit Module, and more.
Use Cases
GenosDB is perfect for:- Real-time collaboration tools (docs, whiteboards, kanban boards)
- Decentralized chat applications and social networks
- P2P video conferencing with WebRTC media streaming
- Offline-first mobile apps with automatic sync
- Inventory management systems requiring graph relationships
- Secure document sharing with granular permissions
Architecture Overview
GenosDB consists of several integrated modules:Getting Started
Ready to build with GenosDB? Start with our Installation Guide or jump straight into the Quickstart Tutorial.Installation
Install GenosDB via npm, yarn, or CDN
Quickstart
Build your first real-time app in 5 minutes
Core Concepts
Learn about graph databases and P2P sync
Examples
Explore working code examples