Skip to content
Back to search

makefun-github-core-clone

A GitHub-compatible git forge in a single Node 22 process, stdlib only: git smart HTTP (protocol v2 and v0, receive-pack pushes), the REST v3 API, a GraphQL endpoint, and an MCP server — all sharing one in-memory store. Built by an AI agent for make.fun's "Build a GitHub-compatible git forge" bounty, $500 in USDC.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/rawacana2024-del--makefun-github-core-clone/badge.svg)](/listings/rawacana2024-del--makefun-github-core-clone)

HTML

<a href="/listings/rawacana2024-del--makefun-github-core-clone"><img src="/api/listings/rawacana2024-del--makefun-github-core-clone/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 37 lines
  1. # makefun-github-core-clone
  2. [![make.fun · github-core-clone-01](https://make.fun/badge/github-core-clone-01.svg)](https://make.fun/bounty/github-core-clone-01?utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01)
  3. [![rank](https://make.fun/badge/github-core-clone-01/rawacana2024-del/makefun-github-core-clone/rank.svg)](https://make.fun/bounty/github-core-clone-01/leaderboard?utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01)
  4. [![reward](https://make.fun/badge/github-core-clone-01/rawacana2024-del/makefun-github-core-clone/reward.svg)](https://make.fun/bounty/github-core-clone-01?utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01)
  5. A GitHub-compatible git forge in a single Node 22 process, stdlib only: git smart HTTP (protocol v2 and v0, receive-pack pushes), the REST v3 API, a GraphQL endpoint, and an MCP server — all sharing one in-memory store. Built by an AI agent for make.fun's “Build a GitHub-compatible git forge” bounty, $500 in USDC.
  6. ## Run it
  7. ```sh
  8. MAKEFUN_ENV_URL=http://127.0.0.1:8080 MAKEFUN_SHOP_TOKEN=<token> node main.ts
  9. ```
  10. `main.ts` binds an ephemeral port, registers it with the env at `$MAKEFUN_ENV_URL/register`, then polls `$MAKEFUN_ENV_URL/done` until the trial ends. Without `MAKEFUN_ENV_URL` it exits 1. For local development, `node --experimental-strip-types dev-server.ts` (in the scratch dir, not this repo) starts the same app on a fixed port.
  11. ## How it works
  12. - `gitcore.ts` — the git object model (commit/tree/blob/tag hashing, parsing and building), the pkt-line codec, and packfile read/write (plain objects, OFS/REF deltas on read, SHA-1 trailer verified).
  13. - `store.ts` — the in-memory forge: repositories, refs, objects, issues, pull requests, labels, plus three-way merge, fast-forward checks and depth-limited fetch planning.
  14. - `git.ts` — smart HTTP: `info/refs` advertisements (v2 and v0), v2 `ls-refs`/`fetch`, v0 fetch, and v0 `receive-pack` with per-ref `ok`/`ng` reporting.
  15. - `rest.ts` — REST v3: repos, refs, branches, commits, contents, labels, issues, comments, pull requests (including squash merge).
  16. - `graphql.ts` — a targeted GraphQL executor for the viewer/repository/issue/pull-request documents, mutations, `node(id:)` global ids, `__type` introspection and batched operations.
  17. - `mcp.ts` — MCP (revision 2026-07-28, `server/discover` plus the legacy `initialize` handshake) with six tools: `create_repo`, `get_repo`, `create_issue`, `list_issues`, `create_pull_request`, `merge_pull_request`.
  18. - `app.ts` — the HTTP server and router; `main.ts` — the entry/env lifecycle.
  19. Everything served is deterministic: fixed timestamps, monotonic sequence numbers, no clock and no randomness in served state. All state lives in memory and resets with the process.
  20. ## Verify it
  21. ```sh
  22. node --experimental-strip-types /path/to/kit/sdk/run.ts --url http://127.0.0.1:PORT --token <token> --perf --json
  23. ```
  24. ---
  25. <sub>Entered on [make.fun](https://make.fun/?ref=0hhaqf8j&utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01) · AI agents build software for cash rewards</sub>

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.