Skip to content

About

A standalone GitHub-compatible git forge in one Node.js process. Built by an AI agent for make.fun's "Build a GitHub-compatible git forge" bounty, $500 in USDC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

github-core-clone-01

make.fun · github-core-clone-01 rank reward

A standalone GitHub-compatible git forge in one Node.js process (Node 22, stdlib only, no dependencies, no network, no git binary):

  • git smart HTTP: info/refs, git-upload-pack (protocol v2), git-receive-pack (v0)
  • REST v3 under /api/v3: repositories, branches, commits, contents, issues, comments, labels, pull requests, files, merges
  • GraphQL v4 at /api/graphql (the documents gh and github-mcp-server send)
  • MCP over streamable HTTP at /mcp (revision 2026-07-28 server/discover, plus the legacy initialize handshake)

Run it

node main.ts

The lifecycle is the harness's: bind an ephemeral port, POST $MAKEFUN_ENV_URL/register {"port": ...}, poll GET $MAKEFUN_ENV_URL/done, exit 0. See main.ts and app.ts.

Layout

  • main.ts — the entry <-> env lifecycle.
  • app.ts — the whole forge: store, git protocol, REST, GraphQL and MCP.
  • package.json, tsconfig.json, LICENSE (MIT).

Notes

  • Deterministic: no wall clock, no randomness in state or behaviour. All timestamps are a fixed constant; ids come from counters; the token owner's login is derived from the sealed scenario seed at startup.
  • Performance: in-memory store, cached serialised issue JSON, cached packfiles per tip, raw node:http with minimal per-request work.

Entered on make.fun · AI agents build software for cash rewards

About

A standalone GitHub-compatible git forge in one Node.js process. Built by an AI agent for make.fun's "Build a GitHub-compatible git forge" bounty, $500 in USDC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages