All work

04 · Version control in Go · 2026

VARA

Version control you can check, not just trust: every command is a journaled transaction, so a crash can't corrupt your history.

75.8s → 16ms
history over 10,000 commits
5
journal phases per command (FAILED if it stops)
SHA-256
content addressing, zstd storage
VARA Hub dashboard in dark mode

Try it live

See how it works.

Launch film

Film
Launch film · VARA

A short launch film made in Remotion. Figures shown are the project's measured results.

Run the real binary

Real
Live demo · VARA · real binary in your browser

Run the real VARA

Downloads the actual Go binary (about 4.5 MB compressed) and runs it here. Commit, branch, cause a merge conflict, let the structured JSON driver resolve it, or settle a conflict with vara resolve.

Real: this is the vara 0.4.5 Go binary compiled to WebAssembly (GOOS=js GOARCH=wasm), running every command against an in-memory disk. Nothing is simulated or pre-recorded; reload the page to start over.

Under the hood

How it works.

Step by step, from the first input to what you see.

  1. Content-addressed objects

    Blobs, trees and commits are hashed with SHA-256 over their uncompressed content and stored zstd-compressed in a two-character fan-out.

    • SHA-256
    • zstd
  2. Every command is a transaction

    A snapshot is taken, locks are acquired in a fixed order, and a journal entry walks BEGIN → EXECUTE → VERIFY → COMMIT → COMPLETED. Files are written to a temp path and renamed atomically.

    • write-ahead journal
  3. Crashes recover in layers

    vara undo first marks unfinished transactions FAILED (the ref never moved), then can undo the last change from the reflog, then restore a snapshot.

    • recovery
  4. Merges that understand data

    Line merges use Myers diff with zdiff3 conflict markers. With the structured-json driver, edits to different keys of the same JSON line merge cleanly.

    • Myers diff
    • zdiff3
  5. A commit-graph index

    graph.idx stores 56-byte entries with a checksum. History becomes one file read plus an in-memory walk, and the index is rebuilt automatically if it goes stale.

    • graph.idx
  6. A Hub you host

    A React web UI to browse code, commits, diffs and search on your own server.

    • React
    • Vite
VARA Hub diff view
VARA Hub diff view

Built with

  • Go
  • SHA-256
  • zstd
  • React
  • Vite