Undo
Undo.js
Install / Use
/learn @jzaefferer/UndoREADME
Undo.js
This is only a proof of concept, not a proper library.
Undo.js provides an abstraction for undoing and redoing any task. It can run both in the browser and on the server (targetted at node.js). It can be used to add undo and redo features to a custom application, e.g. undo and redo changing the priority of a task in a TODO list. It can also be used to undo and redo native browser features: Clicking a checkbox, editing a textbox and eventually, editing a contenteditable element.
The base abstraction will stay independent of any framework, while plugins, like a command editing a sortable list, will likely depend on libraries such as jQuery.
Installation
Via npm: npm install undo.js
Roadmap for demos to add:
- Extend sortable list demo with jQuery UI sortable
- form: track all form changes: text input, checkbox change, radio change, select change
- add undo/redo to Backbone TODO demo
- contenteditable with bold command
Demos:
http://jzaefferer.github.io/undo/demos/ http://jzaefferer.github.io/undo/demos/contenteditable.html
To suggest a feature, report a bug, or general discussion:
http://github.com/jzaefferer/undo/issues/
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
