Branchwell / source / README.md
Branchwell
Open Git hosting at https://branchwell.ai. Anyone can pull. Anyone signed in (passkeys only) can push straight to a branch. No pull requests and no reviews: 3 votes down removes a commit or branch, 3 votes up keeps it for good. Public domain (CC0).
src/repo.ts: one Durable Object (SQLite) per repository: Git objects, branches, commit records, votes, removals.src/git/: pkt-lines, pack reading/writing, deltas, SHA-1. Smart HTTP protocol v0 (clone, fetch, push).src/auth.ts: passkeys (WebAuthn) and push keys for Git.src/checks.ts: what every pushed file must pass.src/features.ts: the "New feature" badge + thumbs widget for apps (/widget/features.v1.js).migrations/: D1 schema (accounts, passkeys, sessions, push keys, repos, feature votes).
Run locally: npm install && npx wrangler d1 execute branchwell --local --file migrations/0001_init.sql && npm run dev. Deploy: npm run deploy.