Skip to content
T

Travels

A fast, framework-agnostic undo/redo core powered by Mutative JSON Patch

by mutativejsFree

#1349in Productivity
0In stores

Description

Travels is a fast, framework-agnostic undo and redo library built on Mutative JSON Patch. It is designed for patch-based history that stays…

Highlights

  • Patch-based undo and redo with JSON Patch (RFC 6902)
  • Works with React, Vue, Zustand and vanilla JavaScript
  • maxHistory option to cap history length
  • Mutable and archive modes
  • Saving history to storage
  • TypeScript support

Ratings & Reviews

No ratings yet

Be the first to rate Travels.

People also visit

R

Redux.js

Predictable state container for JavaScript apps

Developer Tools
Launch
R

Retcon

Rewrite Git history with drag-and-drop. Undo anything with ⌘Z

Developer Tools
Launch
P

pinia

Type-safe Vue state management

AI Skills
Get
G

Git Branchless

High-velocity, monorepo-scale workflow for Git

Productivity
Launch
Z

zustand

Zustand adapter for json-render's StateStore interface

AI Skills
Get
Z

zustand-state-management

Build type-safe global state in React with Zustand

AI Skills
Get

Travels FAQ

What is Travels?

A framework-agnostic undo and redo library that stores patches instead of full state copies.

Why patches instead of snapshots?

The README says snapshot-based undo clones the whole state for each change, while Travels stores only the differences, which keeps history small for large states.

Is it always faster?

No. The README says snapshot stacks can be faster for small state, short history and local-only undo, because they skip patch generation.

Which frameworks does it work with?

React, Vue, Zustand or plain JavaScript.

Can history be saved?

Yes. The README has a section on saving history to storage.

What are the best Travels alternatives?

Popular alternatives to Travels include Git Branchless, Shiki and Revu. See all Travels alternatives

Developer Stuff

Badges