| Crates.io | leptos-sync-core |
| lib.rs | leptos-sync-core |
| version | 0.9.0 |
| created_at | 2025-09-04 03:06:20.873733+00 |
| updated_at | 2025-09-21 02:31:53.094959+00 |
| description | Core synchronization library for Leptos applications |
| homepage | |
| repository | https://github.com/cloud-shuttle/leptos-sync |
| max_upload_size | |
| id | 1823567 |
| size | 1,229,370 |
Core synchronization library for Leptos applications, providing local-first data synchronization with advanced conflict resolution and real-time capabilities.
use leptos_sync_core::{
LocalFirstCollection,
HybridStorage,
HybridTransport,
LwwRegister
};
// Create a collection with automatic sync
let storage = HybridStorage::new();
let transport = HybridTransport::new();
let collection = LocalFirstCollection::<TodoItem>::new(
"todos".to_string(),
storage,
transport
);
// Use reactive queries
let todos = collection.query().watch();
See the main project README for comprehensive documentation and examples.
Licensed under either of
at your option.