git over Freenet: decentralized git hosting on the Freenet network
Repo freenet/freenet-git, read from GitHub 2 d ago. freenet has not joined Take My Repo.
freenet/freenet-git is a public repo on GitHub by freenet. git over Freenet: decentralized git hosting on the Freenet network. It declares the LGPL-3.0 license on GitHub. It is written mainly in Rust, has 87 stars and last changed on 2026-11-16. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-21.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Git repositories hosted directly on Freenet. Push, fetch, and clone through the Freenet network using normal Git commands, without GitHub, GitLab, federation, or a server you operate. A repository is a Freenet contract; Git sees it through a standard remote helper.
Hosted on Freenet and clonable today:
# freenet-core snapshot mirror: HEAD source only, no full history, no tags
git clone freenet::3GEERif5ihbf/freenet-core
# freenet-stdlib full git history (177 commits) + release tags
git clone freenet::96rknpy1GYhZ/freenet-stdlib
# freenet-git itself, full git history -- the tool publishes itself
git clone freenet::99TmCayXn6Tm/freenet-git
History-mode mirrors carry tags (both annotated and lightweight)
once a mirror push from 0.1.20+ has landed, so git ls-remote freenet::... lists them and git checkout v0.6.0 works on a
fresh clone. Snapshot-mode mirrors deliberately skip tags: each
push builds a fresh orphan commit and upstream tags point at
commits not in that bundle.
Requires cargo install freenet-git and a running local Freenet node.
See "Quick start" below.
Git is already decentralized: every clone is a complete repository, and any two clones can synchronize directly. What Git usually lacks is decentralized hosting and discovery. GitHub, GitLab, and Forgejo provide that layer by centralizing it on servers.
freenet-git moves the hosting layer onto Freenet. Repository state
lives in Freenet contracts; Git interacts with those contracts
through a standard remote helper. The long-term goal is a
decentralized software forge: repos first, then pull requests,
issues, CI attestations, releases, and names.
You need a Rust toolchain. If you don't have one, install via rustup.rs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Then:
cargo install freenet-git
This installs both freenet-git (the companion CLI) and
git-remote-freenet (the Git remote helper). Make sure
~/.cargo/bin is on your PATH.
You need a Freenet node running locally to talk to. See the
Freenet getting-started guide. The
WebSocket API endpoint defaults to
ws://127.0.0.1:7509/v1/contract/command.
git clone freenet::96rknpy1GYhZ/freenet-stdlib
No identity, no setup. Just git clone against a real
Freenet-hosted repository.
freenet-git init-identity --name "Your Name" --email you@example.com
cd ~/code/my-project
freenet-git create --name my-project --description "A thing"
# -> URL: freenet:RtTzy58hMxAB/my-project
git remote add freenet freenet::RtTzy58hMxAB/my-project
# See "Passphrase handling" below for the env-var bit.
export FREENET_GIT_PASSPHRASE='your-passphrase'
git push freenet main
freenet-git create is the step that actually publishes the repo
contract, and it prints PUT confirmed by host when that lands.
git remote add publishes nothing on its own, so it is not a
substitute. If you publish to a non-default node with --publish-to,
set FREENET_GIT_WS_URL to that same node before pushing: git push
reads that variable and knows nothing about --publish-to.
git push and git fetch go through git-remote-freenet, which
runs as a child process of git. Git owns stdin and stdout for the
remote-helper protocol, so the helper can't prompt you for a
passphrase interactively. You have two options.
Encrypted bundle (default). Set FREENET_GIT_PASSPHRASE before
pushing or fetching:
export FREENET_GIT_PASSPHRASE='your-passphrase'
git push freenet main
Avoid putting the passphrase in shell history or long-lived environment files. A future release will add OS-keychain integration.
Unencrypted bundle. Pass --no-passphrase when creating the
identity (or when re-encrypting via export-identity /
import-identity):
freenet-git init-identity --no-passphrase \
--name "CI Bot" --email ci@example.com
git push freenet main # no env var needed
The bundle file then holds the signing authority directly — no encryption layer. Use this when the file already lives in an authenticated store (CI secrets, an OS keychain, an encrypted volume); putting a passphrase on top there is redundant. This is the recommended path for CI workflows that mirror repositories into Freenet.
Today freenet-git works the way Linux kernel development worked before centralized forges: each contributor publishes their own freenet-hosted clone, and maintainers pull from those clones to review and merge. There is no shared "canonical repo with everyone pushing to it" yet (that's Phase 1.1).
A concrete walkthrough. Alice has a fix she wants Bob to consider
for freenet-core:
On Alice's machine:
# one-time setup
cargo install freenet-git
freenet-git init-identity --name "Alice" --email alice@example.com
# Alice already has a clone of freenet-core somewhere
cd ~/code/freenet-core
git checkout -b fix-thing
# ... commits ...
# publish her fork as a freenet-hosted repo
freenet-git create --name freenet-core-alice
# -> URL: freenet:Aa12bc34De56/freenet-core-alice
git remote add freenet freenet::Aa12bc34De56/freenet-core-alice
export FREENET_GIT_PASSPHRASE='whatever'
git push freenet fix-thing
She then tells Bob her URL through some other channel (Matrix, email, mailing list, IRC). There is no inbox of incoming proposals on Freenet itself yet, so the announce-your-fork step is still out-of-band.
On Bob's machine:
cd ~/code/freenet-core
git remote add alice freenet::Aa12bc34De56/freenet-core-alice
git fetch alice # streams from Freenet
git log alice/fix-thing --oneline -5 # review
git checkout -b alice-fix alice/fix-thing
cargo test
# if happy:
git checkout main && git merge alice-fix
Mechanically the round trip works end-to-end on the network today. What's missing is the social layer.
The same pattern with the missing pieces filled in:
git push of a feature
branch optionally publishes a signed "PR" document (commit range,
description, base ref) to a proposals contract Bob's repo
subscribes to. Bob's local UI sees incoming PRs without anyone
having to send a Matrix message. Comments and reviews are signed
follow-up entries on the same proposal. Cross-repo references
("Alice's fix-thing on top of upstream's main@abc1234") become
first-class.Until those phases land, the git remote add / git fetch /
out-of-band-tell-the-maintainer loop above is the supported flow.
It is enough for the substrate to be useful; the forge layers on
top.
Freenet is a communication medium, not a storage medium. Peers keep contracts in an LRU cache, so anything that nobody has touched recently is the first thing dropped to make room for hotter content. For a freenet-git repo this shows up as:
error: fetch ChunkedPack ...
Caused by: get exhausted all peers after 4 attempts
The fix is to refresh the network's hot copy. Anyone with a node that still has the contract data cached (typically the original publisher) can run:
freenet-git rescue freenet:<prefix>/<label>
This re-PUTs every bundle and chunk the repo references, which re-broadcasts each to whichever peers subscribe to that contract's location and bumps it back to the top of their LRU cache.
Rescue auto-detects snapshot vs history mode from a signed
mirror-mode extension that the helper writes on push (when the
publisher's workflow sets the FREENET_GIT_MIRROR_MODE env var,
which the bundled mirror-repo.yml reusable workflow does
automatically since 0.1.19). For snapshot-mode contracts this
skips bundles whose tip is no longer reachable from any current
ref — dropping freenet-core-style rescues from N bundles to ~1 —
with no per-call flag.
For snapshot-mode contracts published before 0.1.19, the
mirror-mode extension is not yet on the contract. Auto-detect
returns "unknown" and rescue defaults to the legacy "rescue
everything" behaviour until the first 0.1.19+ push lands. During
this window keep passing --only-current-tips explicitly:
freenet-git rescue freenet:<prefix>/<label> --only-current-tips
After the next mirror push from a 0.1.19+ workflow run records the extension, the manual flag is no longer needed.
Do not pass --only-current-tips for history-mode mirrors —
the older bundles' tips are ancestor commits, not current ref
values, and the flag would incorrectly skip them.
If auto-detect is wrong (stale metadata, a contract that
transitioned from snapshot to history without a fresh contract
URL, or a malformed mirror-mode value), use --rescue-all to
force a full rescue regardless of what the contract says:
freenet-git rescue freenet:<prefix>/<label> --rescue-all
--rescue-all and --only-current-tips are mutually exclusive.
If you push to a contract directly with git push freenet::...
(not through the bundled mirror-repo.yml workflow), set
FREENET_GIT_MIRROR_MODE so rescue knows which filter to apply
later:
FREENET_GIT_MIRROR_MODE=snapshot git push freenet::<prefix>/<label> +main:main
# or
FREENET_GIT_MIRROR_MODE=history git push freenet::<prefix>/<label> main:main
The env var only needs to be set when the mode changes or on the first push from 0.1.19+; the helper skips the extension write when the contract already records the correct value.
For repos you publish and want to keep reachable, run rescue as a
cron job (e.g. once a day or a few times a week) from a node that
holds the data. The demo URLs above are kept alive by the
rescue-demos GitHub Actions workflow in this repo
(.github/workflows/rescue-demos.yml); content freshness for the
freenet-core and freenet-stdlib mirrors is driven from those
upstream repos' workflows that call
freenet/freenet-git/.github/workflows/mirror-repo.yml.
Re-pushing unchanged source is a no-op end-to-end: snapshot mode produces deterministic orphan SHAs, so daily safety-net cron runs that find no upstream change neither rebuild the pack nor write the contract. Schedule mirror crons aggressively without worrying about contract churn -- they only do work when the source actually moved.
If the local node's cache has forgotten the bytes too, rescue can rebuild them from a clone instead of fetching them:
freenet-git rescue freenet:<prefix>/<label> --from ~/code/my-project/.git
Pack output is deterministic for a given object set and git version,
so the rebuilt pack is byte-for-byte the one the contract references.
This covers history-mode mirrors with SinglePack bundles; snapshot
mirrors and chunked bundles still use the fetch-only path, because
their reconstruction shape is not recoverable from the contract
metadata today.
UPDATE failed: missing contract when pushingerror: ... UPDATE failed: missing contract: <id>
If you are on 0.1.24 or earlier, upgrade. Every push failed this
way. freenet-git sent a placeholder value where the update request
carries the contract's code hash, and recent Freenet nodes look the
contract up by exactly that hash, so the lookup could never match. The
message named the network, but nothing was wrong with the network, the
node, or the repo. cargo install freenet-git picks up the fix.
On 0.1.25+ this means the node genuinely could not resolve the contract to apply your update to. It is still a local condition despite the host's wording: an update is applied on your own node before it is sent to the network. Check:
git push uses FREENET_GIT_WS_URL (default
ws://127.0.0.1:7509/v1/contract/command?encodingProtocol=native),
while freenet-git create uses --publish-to. If those differ,
point them at the same node.freenet-git create prints
PUT confirmed by host when it lands. With --no-publish nothing
was published, and you need the fdev publish command that create
printed for you.this identity cannot sign pushes to <prefix>Every repo has its own keypair, held in the identity bundle that
created it. The error lists the repos the current bundle can push to.
Either point FREENET_GIT_IDENTITY at the bundle that owns the repo,
or, if you are trying to contribute to someone else's repo, publish
your own clone and send them the URL (see "Sending changes to a
maintainer"). There is no shared-write mode yet; that is Phase 1.1.
exhausted all peers during clone or fetchThe contract is published but its pack bytes have fallen out of the
network's caches. Ask whoever publishes it to run freenet-git rescue
(see "Keeping a published repo alive"). Repos with no one running
rescue will eventually become unclonable; that is the current
durability model, not a bug.
A freenet-git URL looks like:
freenet:RtTzy58hMxAB/my-project
^~~~~~~~~~~~ ^~~~~~~~~~
prefix label (optional)
For git remote add and git clone, use the double-colon form:
freenet::RtTzy58hMxAB/my-project
The double colon is required by Git's remote-helpers protocol to disambiguate from SCP-style URLs.
The prefix is the first 12 base58 characters of the repo owner's
ed25519 public key (~70 bits). It's the only part that participates
in identity, signatures, and network routing. The full Freenet
contract key is computed locally as
BLAKE3(BLAKE3(repo-contract.wasm) || serialize({prefix})).
Anyone with a current freenet-git install resolves the same
contract key from the same prefix. The URL stays stable across
contract WASM upgrades; only the underlying contract key changes,
which the on-host helper handles transparently.
The label is a human-readable name following the prefix after a /.
It's purely cosmetic:
git clone freenet::RtTzy58hMxAB/my-project produces a
my-project/ directory.Today, only the repo owner can push to a given Freenet repo. Other developers publish their own Freenet-hosted clones and maintainers pull from them. This is the same workflow that built the Linux kernel before centralized forges became dominant.
Phase 1.1 adds opt-in multi-writer ACL for projects that prefer the GitHub-style "everyone pushes to one canonical repo" model. Both modes will coexist.
Each repo has its own ed25519 keypair, so compromising one repo's key does not compromise your cross-repo identity:
freenet-git init-identity creates a default identity (used for
cross-repo signing in Phase 2: PR comments and reviews).freenet-git create generates a fresh per-repo keypair and stores
it in your bundle's repos registry. The URL prefix is derived
from this per-repo public key.scrypt +
XChaCha20-Poly1305; pass --no-passphrase to skip encryption when
the file already lives in an authenticated secret store. Move
them between machines via freenet-git export-identity and
freenet-git import-identity.V1 bundles will continue to open in all future versions. CI keeps
checked-in v1 fixtures at crates/identity/tests/fixtures/; any
change that would break existing on-disk bundles trips the
wire_format tests, forcing a deliberate decision to either
preserve compatibility or ship a legacy-aware migration. Analogous
to crates/freenet-git/legacy_contracts.toml on the contract
side, but enforced via test rather than runtime fallback.
Experimental. Phase 1 of the design tracked in freenet-core#3985.
Working today:
freenet-git rescue <url> to re-PUT a repo's bundles when chunks
evict from the wider network (cures exhausted all peers errors),
with --from <git-dir> to rebuild packs the local node has also
forgottenNot yet supported:
freenet-core is
the one they want.The goal is a decentralized software forge, built incrementally:
See freenet-core#3985 for the design and rationale.
crates/
encoding/ length-prefixed signed payloads + canonical CBOR.
Wire format both contracts and binaries pin to.
types/ RepoState, deltas, validate_state, update_state,
CRDT merge, ChunkedPack manifest. Pure Rust,
unit-tested without WASM.
identity/ passphrase-encrypted ed25519 keypair bundle.
repo-contract/ WASM contract: mutable repo state (refs + bundle index).
pack-contract/ WASM contract: immutable packfile bytes.
freenet-git/ both binaries (`freenet-git` CLI + `git-remote-freenet`
helper) and the bundled contract WASMs.
docs/
0001-large-repos.md ChunkedPack design (incl. Codex review).
LGPL-3.0-only. See LICENSE.
freenet/freenet-git is a public repo on GitHub by freenet. git over Freenet: decentralized git hosting on the Freenet network.
It declares the LGPL-3.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-16. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Group chat with no backend

Atlas - decentralized discovery layer for Freenet (work-in-progress RFC)
Take My Repo has not tested this on your machine. Requirements come from the project's own documentation.