Synclets logoSynclets

createTinyBaseSynclet

The createTinyBaseSynclet function creates a Synclet with a TinyBase Store for data storage and in-memory metadata storage.

createTinyBaseSynclet(options: TinyBaseSyncletOptions): Promise<TinyBaseSynclet>
TypeDescription
optionsTinyBaseSyncletOptions

Configuration including the TinyBase Store, transport, and other Synclet options.

returnsPromise<TinyBaseSynclet>

A Promise that resolves to the configured Synclet instance.

This is the recommended approach for creating a TinyBase-based Synclet, providing a simplified API that creates both the TinyBaseDataConnector and an in-memory MetaConnector internally. The TinyBase Store handles the data tree while timestamps are kept in memory.

This combination is ideal when you want to use TinyBase's features (reactive queries, indexes, persistence options) for data while keeping metadata lightweight. For fully persistent metadata, consider creating connectors manually and using a persistent MetaConnector.

Since

v0.0.0