TinyBase
tinybase.org
2
Leaving SiteNav
External Link Disclaimer
You are about to visit tinybase.org. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
TinyBase is a reactive data store and synchronization engine for building local-first applications that feel instant, work flawlessly when offline, and maintain consistency when reconnected. The library provides an in-memory data structure supporting both key-value pairs and tabular data with typed schemas, enabling structured data management without the overhead of a full database. Granular listener registration allows components to subscribe to specific data slices, ensuring rendering cycles are spent only when relevant data changes. Optional bindings are available for React, Solid, and Svelte, exposing hooks that connect store state directly to component reactivity. Synchronization is built on native conflict-free replicated data type semantics, with the MergeableStore type automatically handling concurrent edits across devices. Multiple synchronization protocols are supported including WebSocket for client-server sync and BroadcastChannel for same-origin tab synchronization. Persistence adapters cover browser storage, IndexedDB, file systems, and direct integration with databases including SQLite, PostgreSQL, PGlite, ElectricSQL, Turso, PowerSync, CR-SQLite, Yjs, and Automerge. The built-in TinyQL query engine provides select, join, filter, and group operations without writing SQL. Additional features include indexes for fast lookups, metrics for aggregate calculations, relationship modeling, and checkpoint management. Schema validation integrates with Zod, TypeBox, Valibot, ArkType, Yup, and Effect. The entire library is between 6.2 and 13.7 kilobytes gzipped with zero dependencies. Version 8.5 adds chart components. Created by James Pearce. Open source under the Apache 2.0 license.
Statistics
2
Views
0
Clicks
0
Like
0
Dislike