IPFS implementation in C, (not just an API client library).
- ipfs init to create an ipfs repository on your machine
- ipfs add MyFile.txt to add a file to the repository, will return with a hash that can be used to retrieve the file.
- ipfs cat hash to retrieve a file from the repository
This fork adds a nostr + ipfs + git hybrid protocol for decentralized discovery, storage, and versioning.
# Announce IPFS content over nostr (kind 1064)
ipfs nostr publish --cid Qm... --content "hello world"
# Announce a git repo backed by IPFS (kind 30617)
ipfs nostr repo --id myrepo --name "My Repo" --cid QmRepoCID
# Publish repo state with RBSR fingerprint (kind 30618)
ipfs nostr state --repo <pubkey>:myrepo --refs refs.txt
# Publish relay recommendations (kind 10317)
ipfs nostr grasp --relay wss://relay.damus.io
# Publish patches and issues (kind 1617 / 1621)
ipfs nostr patch --repo <pubkey>:myrepo --subject "fix" --body "..."
ipfs nostr issue --repo <pubkey>:myrepo --subject "bug" --body "..."
# Verify a nostr event signature
ipfs nostr verify --event '{"id":"...","pubkey":"...","sig":"..."}'
# Reuse an existing secret key
ipfs nostr publish --cid Qm... --seckey 0000...0001./scripts/selfhost.shArchives tracked source files, adds the tarball to IPFS, and emits a signed nostr event announcing the CID.
Repo state events carry an RBSR fingerprint instead of raw refs. Two peers can efficiently agree on which refs differ using binary bisection of range fingerprints (count + XOR checksum). See rbsr/ and nostr/README.md.
ipfs-compatibility-profile.json is the
versioned interoperability target for this implementation. The corresponding
ipfs-compatibility-matrix.json records the
current source-backed audit, gaps, and evidence. A feature is conformant only
after its matrix entry has interoperability test evidence.
And of course this project at https://github.com/Agorise/c-ipfs
git submodule update --init --recursive
make all
GitHub Actions builds on Ubuntu (20.04, 22.04, latest) and macOS (13, latest) with smoke tests for init, add/cat, nostr publish/repo/state/patch/issue/grasp/verify, and IPFS sync loops.