Documentation Index
Fetch the complete documentation index at: https://mintlify.com/estebanrfp/gdb/llms.txt
Use this file to discover all available pages before exploring further.
Installation
GenosDB can be installed via package managers or used directly in the browser from a CDN. Choose the method that works best for your project.Package Manager Installation
Import in Your Project
After installation, import GenosDB using ES6 modules:GenosDB uses an async factory function. You can use top-level
await in modern ES modules or wrap the initialization in an async function.CDN Usage
You can use GenosDB directly in the browser without any build tools:CDN Options
GenosDB is available on multiple CDNs:- jsDelivr
- unpkg
Browser Compatibility
GenosDB works in all modern browsers that support:- ES2020+ (async/await, optional chaining, etc.)
- OPFS (Origin Private File System) for persistent storage
- WebRTC for P2P communication (when using
rtc: true) - IndexedDB as a fallback for browsers without OPFS support
Supported Browsers
Chrome / Edge
Version 86+ (full support with OPFS)
Firefox
Version 111+ (OPFS support added)
Safari
Version 15.2+ (partial OPFS support)
Mobile Browsers
iOS Safari 15.2+, Chrome Mobile 86+
For browsers without OPFS support, GenosDB automatically falls back to IndexedDB for storage.
WebAuthn Requirements
If you’re using the Security Manager module with WebAuthn authentication:- HTTPS required in production
- localhost or 127.0.0.1 works for development
- Hardware security keys or biometric authentication must be available
Bundler Configuration
GenosDB works out-of-the-box with most bundlers, but here are some tips:Vite
No special configuration needed:vite.config.js
Webpack
For Webpack 5, ensure you’re targeting modern browsers:webpack.config.js
Next.js
For Next.js, mark GenosDB as a client-side only module:next.config.js
TypeScript Support
GenosDB includes TypeScript type definitions. No additional setup needed:Verify Installation
Test your installation with this simple example:Next Steps
Complete the Quickstart
Build your first real-time app with our Quickstart Tutorial
Learn Core Concepts
Understand how GenosDB works in the Concepts section
Explore Examples
See working code in our Examples gallery