Lightning-fast markdown editor demo powered by xpatch delta compression. Scrub through document history with zero lag.
A lightning-fast markdown editor demo powered by xpatch - watch it achieve crazy compression while letting you fly through document history like you're scrubbing a video timeline. Built with Tauri, SvelteKit, and magic.
This is a live demonstration of what happens when you take a delta compression library that can store entire code repositories in a few bytes per change, and wrap it in a beautiful, snappy editor interface. Every keystroke becomes a patch. Every patch is smaller than this sentence. And you can scrub through thousands of versions with zero perceptible lag.
Watch the demo:
* The scrubbing is smoother when you actually have the app open. I'm just incapable of holding my arrow keys down lol.
The secret sauce is xpatch analyzing every change and automatically picking the perfect compression algorithm. A simple character insertion? That's 2 bytes. A complex refactor? It'll find the optimal base version from 16 commits back and still compress it down to nearly nothing.
Then we cache reconstructed versions in memory, so when you're holding down the arrow key to animate through history, you're not waiting for decompression—you're just pulling from a hot cache.
# Clone the repository
git clone https://github.com/imgajeed76/xpatch_demo_editor.git
cd xpatch_demo_editor
# Install dependencies
bun install # or npm install, pnpm install, etc.
The easiest way to run it is with axogen (my build tool that handles the annoying Linux graphics sync issues for you):
# Using axogen (recommended)
axogen run dev
Or manually:
# Standard development
bun run tauri dev
# On Linux with explicit sync issues
__NV_DISABLE_EXPLICIT_SYNC=1 bun run tauri dev
That's it. The app will open, create a SQLite database in your app data directory, and you're ready to start typing.
Your document is now saved automatically every 500ms as you type.
Click the "Time Travel" button to open the version history panel:
The UI shows you exactly which version you're viewing and when it was created.
Toggle between "Write" and "Preview" modes to see rendered markdown with syntax-highlighted code blocks.
This project is licensed under AGPL-3.0-or-later.
Contributions are welcome. Please open an issue or pull request on GitHub. This is a demo, but it's also a showcase of what's possible with xpatch—if you have ideas for cooler features, let's build them.