Build Fabric.js editors faster with production-ready save and undo
Give every edit a dependable home. Built for Fabric.js save and load, it restores rich canvas documents, adds undo and redo people trust, recovers unsaved work, and exports with confidence—all from one focused toolkit.
Works with the stack you already use
Fabric.js Document Engine
Create your Fabric.js editor with the features you need
Fabric.js draws and edits objects. This engine adds the rest of a real canvas editor: Fabric.js save and load, undo redo, autosave, export and recovery. Your canvas, toolbar and UI stay yours.
Explore the features
- Learn more
Undo and redo
Built inFabric.js has no undo built in. Get one undo step per user action, with step labels and keyboard shortcuts.
- Learn more
Save and load
Built inFabric.js save and load with stable object ids. Custom properties and images come back exactly as they were.
- Learn more
Autosave
Needs storageSaves while people edit, one save at a time, with retries. An old save never overwrites newer work.
- Learn more
Save conflicts
Needs storageRevision checks notice when another tab or device saved first, and let the user choose what to keep.
- Learn more
Images, fonts and export
Built inExport PNG, JPEG, WebP, SVG or JSON, and import SVG files in place. Missing images, fonts and tainted canvases are found before an export fails.
- Learn more
PDF export
OptionalExport PDF pages with real, selectable text, your own fonts and page sizes. Only effects PDF cannot draw become pictures.
- Learn more
Copy, paste and layers
Built inCopy and paste with fresh ids, and bring to front or send to back, each as one undo step.
- Learn more
Versions
Needs storageKeep named versions of a document and restore any of them without losing the current work.
- Learn more
Recovery
OptionalUnsaved work is copied to IndexedDB while people edit, and offered back after a crash or refresh.
- Learn more
Text that behaves
OptionalText boxes that keep their width, editable vertical CJK text, correct cursors in Arabic, and typing that works with phone keyboards.
- Learn more
Fast with many objects
OptionalDirty-region rendering redraws only what changed, so dragging stays smooth in a canvas editor with thousands of objects.
- Learn more
Image filters in a worker
OptionalBlur, sharpen and color filters run in a Web Worker with progress and cancel, so the page never freezes.
- Learn more
React hooks
OptionalOptional hooks create the engine with your canvas and feed your toolbar. Vue, Svelte and plain JavaScript work too.
Live examples
Launch faster with live Fabric.js editor examples
Each example is a real Fabric.js canvas running the package from npm. Try it here, then copy its code from the guide into your own editor.
Browse the guides- Live
Save conflicts
Two tabs save one document. The second one gets a conflict to resolve.
Read the guide
Developer docs
Clear guides, live examples and a full API reference, from your first Fabric.js save and load to a production Fabric.js editor.
Documentation