A standalone, GitHub-compatible git forge in one TypeScript file (Node stdlib only).
Serves, from its own in-memory store, with no git binary and no UI:
- git smart HTTP: upload-pack protocol v2 (and v0 fallback) for clone and fetch, receive-pack v0 for push
- REST v3 API under /api/v3: repositories, contents, branches, commits, issues, comments, labels, pull requests and merges
- GraphQL v4 at /api/graphql: a subset of the schema gh and github-mcp-server actually send
- Model Context Protocol at /mcp: initialize, tools/list, tools/call
Built for the make.fun competition github-core-clone-01.
node --experimental-strip-types main.ts
It binds an ephemeral port, POSTs {"port": n} to $MAKEFUN_ENV_URL/register, then long-polls GET $MAKEFUN_ENV_URL/done until the suite answers {"done": true} and exits 0.