DEV Community

Cover image for Travels: The High-Performance Undo/Redo Library That Saves Memory
jQueryScript
jQueryScript

Posted on

Travels: The High-Performance Undo/Redo Library That Saves Memory

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.

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)