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

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
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
Userland shims isolated in one shell
Small shell wrappers absorb minor Wasmer userland differences (
rmflags,file -f, clone hardlinks,FETCH_HEAD) so upstream level files stay untouched.Read the code:session.mjs
One session module, two hosts
src/session.mjsaccepts 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
Cross-origin isolation baked into the build
Dev, preview, and
web/dist/_headersall emitCOOP: same-originandCOEP: credentiallessso Wasmer threads work without modifying its package CDN.Read the code:vite.config.jsassemble.mjs
Agents gated by real level playthroughs
pnpm checkandpnpm check:browsersolve desktop levels end to end as the acceptance gate, whileCONTRIBUTING.mdkeeps agent config folders out of the published repo.Read the code:CONTRIBUTING.md
Architecture
A desktop level, played in the sandbox
- Read levelLoad unchanged text from the sibling Godot repo.
- ParseExtract setup, cards, and win shell scripts.
- Open sandboxBoot Wasmer with pinned bash and Git 2.52.
- PlayCards and terminal input both run as bash commands.
- SnapshotRead refs, objects, and files to update the graph.
- GradeRun the level's own win function to confirm completion.