Travels: a JavaScript library that implements undo/redo functionality by storing JSON Patch differences instead of full state snapshots.
Key features:
• Stores only changes, not complete state copies
• 10x faster than Immer-based approaches
• Works with React, Vue, Zustand, or vanilla JavaScript
• Configurable history limits to control memory usage
• Mutable mode for observable frameworks like MobX and Pinia
• Complete TypeScript support
Perfect for building text editors, drawing tools, form builders, or any app where users need to reverse their actions without memory overhead.
Top comments (0)