@crewdle/mist-connector-rxdb
v1.0.1
Published
A Crewdle Mist connector to use RxDB as a Key-Value Database
Downloads
2
Readme
Crewdle Mist RxDB Connector
Introduction
The RxDB Connector for the Crewdle Web SDK offers a robust solution for integrating RxDB, a real-time, serverless database, into your web applications. Leveraging the advanced capabilities of RxDB, this connector simplifies the process of managing complex, decentralized data structures with ease and efficiency. Designed to work seamlessly with the Crewdle Mist's decentralized computing platform, it provides developers with the tools needed to create dynamic, scalable, and highly responsive applications. By abstracting the complexities of direct database manipulations, it enables straightforward data operations, including querying, indexing, and real-time synchronization across clients. Whether you're building collaborative applications, striving for offline-first capabilities, or need a powerful solution for handling real-time data, the RxDB Connector empowers your development workflow, enhancing data integrity, accessibility, and performance.
Getting Started
Before diving in, ensure you have installed the Crewdle Mist SDK.
Installation
npm install @crewdle/mist-connector-rxdb
Usage
import { getRxDBDatabaseConnector } from '@crewdle/mist-connector-rxdb';
// Create a new SDK instance
const sdk = await SDK.getInstance('[VENDOR ID]', '[ACCESS TOKEN]', {
keyValueDatabaseConnector: getRxDBDatabaseConnector(),
});
The connector uses Dexie as a default storage but options can be passed to the function to specify a storage such as IndexedDB:
getRxDBDatabaseConnector(options: {
storage: getRxStorageIndexedDB()
})
Need Help?
Reach out to [email protected] or raise an issue in our repository for any assistance.
Join Our Community
For an engaging discussion about your specific use cases or to connect with fellow developers, we invite you to join our Discord community. Follow this link to become a part of our vibrant group: Join us on Discord.