Branchwell
Branchwell project

source

git clone https://branchwell.ai/branchwell/source.git

1 commit pushed here · 1 open to votes · 0 removed by votes · updated 7 min ago

Latest: Branchwell source: open Git hosting where votes decide by Branchwell, 10 min ago

📁 migrations
📁 src
📁 static
📄 .gitignore25 B
📄 build-static.mjs605 B
📄 package-lock.json90.6 KB
📄 package.json656 B
📄 README.md939 B
📄 tsconfig.json230 B
📄 wrangler.jsonc1.0 KB

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.