Projects

oh-my-git-web

Browser port of the Oh My Git! Godot game: levels and art stay in the desktop repo while real Git runs inside a Wasmer sandbox.

Status
Prototype
Form
Static site
Adaptation of
Oh My Git! (Godot)
Git runtime
Wasmer sandbox
Gate
Node playthrough · Playwright
Harness
Claude · Cursor · Antigravity CLI
Started
Nov 2026
Oh My Git! web port on the Sandbox with three commits level, with the commit graph, original playing cards, a terminal, and a footer crediting the Godot game
Desktop level running in the browser: cards and terminal both execute real Git in Wasmer.

Overview

An unofficial web port of Oh My Git! by bleeptrack and blinry. The build reads levels, cards, and SVG art straight from a sibling Godot checkout—preserving upstream license and NOTICE files.

Instead of reimplementing Git, Wasmer runs pinned bash, coreutils, and Git 2.52 so the desktop game's own shell win functions grade every level in both the browser and headless Node playthrough tests.

Stack

Runtime

Wasmer
Sandboxed real Git per session so desktop win scripts work unchanged.
Pinned packages
wasmer/bash, coreutils, findutils, grep, and Git 2.52 shared by browser and Node.
xterm.js
Interactive terminal; cards and keystrokes both dispatch bash into the sandbox.

Content boundary

Sibling Godot checkout
Copies levels, cards.json, and SVGs from ../oh-my-git at build time.
Level-file parser
Pure JS parser for setup, actions, win, and card sections shared by app and tests.

Hosting

Vite + assemble
Bundles the static site with Wasmer worker assets, LICENSE.md, and NOTICE.
Cloudflare Workers assets
Serves static dist only; Wasmer packages load client-side.
COOP & COEP headers
Cross-origin isolation (credentialless COEP) required by Wasmer in dev and prod.

Checks and harness

pnpm check
Headless Node playthrough of chapters against the real session module.
pnpm check:browser
Playwright end-to-end playthrough covering cards, terminal, and level list.
Local agent harness
Built with Claude, Cursor, and Antigravity CLI while keeping harness configs gitignored.

Engineering highlights

  1. Desktop win scripts stay the grader

    The port parses Godot's plain-text level files and runs their setup, action, and win shell scripts directly in Wasmer, rendering the commit graph from live Git snapshots.

    Read the code:level-format.mjssnapshot.mjs

  2. Userland shims isolated in one shell

    Small shell wrappers absorb minor Wasmer userland differences (rm flags, file -f, clone hardlinks, FETCH_HEAD) so upstream level files stay untouched.

    Read the code:session.mjs

  3. One session module, two hosts

    src/session.mjs accepts either the browser or Node Wasmer SDK, letting fast Node playthroughs and Playwright browser checks exercise one shared implementation.

    Read the code:cards.mjscheck-chapter.mjscheck-browser.mjs

  4. Cross-origin isolation baked into the build

    Dev, preview, and web/dist/_headers all emit COOP: same-origin and COEP: credentialless so Wasmer threads work without modifying its package CDN.

    Read the code:vite.config.jsassemble.mjs

  5. Agents gated by real level playthroughs

    pnpm check and pnpm check:browser solve desktop levels end to end as the acceptance gate, while CONTRIBUTING.md keeps agent config folders out of the published repo.

    Read the code:CONTRIBUTING.md

Architecture

A desktop level, played in the sandbox

  1. Read levelLoad unchanged text from the sibling Godot repo.
  2. ParseExtract setup, cards, and win shell scripts.
  3. Open sandboxBoot Wasmer with pinned bash and Git 2.52.
  4. PlayCards and terminal input both run as bash commands.
  5. SnapshotRead refs, objects, and files to update the graph.
  6. GradeRun the level's own win function to confirm completion.

Decisions

  • Wasmer sandboxes
  • Preserving a desktop level format
  • Cross-origin isolation
  • One session for Node and the browser
  • Playwright playthroughs
  • Cloudflare Workers static assets
  • Claude, Cursor, and Antigravity CLI