BasicProvider
To enable the features of the Basic SDK, you need to wrap your app in a<BasicProvider> component.
main.tsx
Props
schema
The Basic schema object containing your project configuration and table definitions. This should be imported from your
basic.config.ts file.The project_id is extracted from schema.project_id.project_id
The project ID of your Basic project.
debug
Enable debug mode for additional logging to the console. Useful during development.
dbMode
Determines which database implementation is used:See Database Modes for detailed comparison.
'sync'(default): Uses IndexedDB + WebSocket for local-first sync. Works offline, provides real-time updates, anduseQueryauto-refreshes.'remote': Uses REST API calls directly to the server. No local storage, requires authentication for all operations, but has no IndexedDB dependencies.
storage
Custom storage adapter for persisting auth tokens. By default, uses
LocalStorageAdapter which stores data in localStorage.Implement the BasicStorage interface to use a custom storage solution (e.g., for React Native with AsyncStorage):auth
Custom authentication configuration. Most apps don’t need to set this.
Full Example
main.tsx

