Explore Travels integration examples
mainThe travels repository provides several integration examples demonstrating how to use Travels with different state management libraries and complex application workflows. These examples move beyond simple counters to show product-shaped state management.
Framework Integrations
- React: Integration using
useSyncExternalStorefor efficient subscriptions. - Zustand: Using Zustand as the UI store while leveraging Travels as the underlying history engine.
- Vue: Implementation via a Vue composable wrapper.
- Pinia: Setting up a Pinia store using Travels' mutable mode.
- MobX: Managing MobX observable state using mutable mode.
Advanced Workflows
- Form Builders: Using
archivemode to manage multi-step form builder edits manually. - Canvas/Editors: Implementing pointer-move batching for high-frequency editor workflows.
Persistence Patterns
- Versioned Persistence: Using
localStoragewith versioning. - Custom Adapters: Patterns for
localStorage,IndexedDB, and compression adapters. - Local-first: Combining
IndexedDBwithBroadcastChannelfor local-first persistence strategies.