Skip to content

docs(pinning): recursive DAG pinning + standard REST API + CAR import#174

Merged
ehsan6sha merged 2 commits into
mainfrom
docs/dag-pinning
Jun 11, 2026
Merged

docs(pinning): recursive DAG pinning + standard REST API + CAR import#174
ehsan6sha merged 2 commits into
mainfrom
docs/dag-pinning

Conversation

@ehsan6sha

Copy link
Copy Markdown
Member

Expands the IPFS Pinning Service API page (docs/pinning-service/ipfs-pinning-service-api.md), which previously only showed the ipfs pin remote CLI, to document DAG pinning aligned with the IPFS Pinning Services API spec.

What's added

  1. Pinning a DAG (recursive pinning) — The key clarification: in the Pinning Service API, pinning a CID is recursive DAG pinning. There is no separate "DAG pin" operation and no recursive flag; a pin always pins the entire DAG rooted at the CID. Quotes the spec ("CID points at the root of a DAG that is pinned recursively") and explains how the service fetches the DAG from the network (origins/Bitswap), which is why pins go queued → pinning → pinned.

  2. Standard REST API — The five standard operations (POST /pins, GET /pins, GET /pins/{requestid}, POST /pins/{requestid}, DELETE /pins/{requestid}) with bearer auth, a POST /pins example, the Pin/PinStatus object fields, the paginated PinResults list shape, and the status lifecycle. The page now documents the actual standard API surface, not just the CLI wrapper.

  3. Importing a DAG by uploading a CAR file — Documents the Functionland POST /pins/import/car extension, clearly labeled as NOT part of the IPFS Pinning Service API standard (the standard is pin-by-CID only and has no upload endpoint). Covers ipfs dag export to produce the CAR, single-root/complete-DAG/CARv1+v2 requirements, the 800 MB cap, and the error codes.

Alignment

Standard behavior is presented as standard; the CAR-upload capability is explicitly delineated as a vendor extension, so the page stays a faithful representation of the IPFS Pinning Service API. Content was fact-checked against the spec and independently reviewed for accuracy — no inaccuracies found.

Pure content addition (+111 lines), matches the page's existing <Note> / Markdown style.

Note: docs live in this repo (functionland/docs), separate from the pinning-service implementation repo, so this is necessarily its own PR.

🤖 Generated with Claude Code

ehsan6sha and others added 2 commits June 11, 2026 10:52
…AR import

The IPFS Pinning Service API page only showed the `ipfs pin remote`
CLI. Added, aligned with the IPFS Pinning Services API spec:

- "Pinning a DAG (recursive pinning)": clarifies that in the standard,
  pinning a CID IS recursive DAG pinning (the CID is a DAG root pinned
  recursively) — there is no separate DAG-pin op or recursive flag.
  Quotes the spec and explains the network-fetch / queued->pinning
  lifecycle.
- "Standard REST API": the five standard operations (POST/GET /pins,
  GET/POST/DELETE /pins/{requestid}) with bearer auth, a POST /pins
  example, the Pin/PinStatus object fields, the paginated PinResults
  shape, and the queued->pinning->pinned/failed lifecycle.
- "Importing a DAG by uploading a CAR file": the Functionland CAR
  import extension (POST /pins/import/car), CLEARLY labeled as NOT part
  of the IPFS Pinning Service API standard (the standard is pin-by-CID
  with no upload endpoint), with ipfs dag export usage, limits, and
  error codes.

Content fact-checked against the spec (independently reviewed).
actions/setup-node@v2 with cache:yarn calls GitHub's legacy Actions
cache service, which GitHub has shut down — every PR build now fails at
the setup step with "Cache service responded with 400", before yarn
install or the docusaurus build run (hence ~10s failures). The change
is purely environmental: this same workflow passed until GitHub
disabled the old backend.

deploy.yml was already modernized (checkout@v4, setup-node@v4, node 18)
and still succeeds on main; pull-request.yml was just never updated to
match. Bring it in line: checkout@v2 -> v4, setup-node@v2 -> v4,
node 14.x -> 18.x.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ehsan6sha ehsan6sha merged commit 1f5434c into main Jun 11, 2026
1 check passed
@ehsan6sha ehsan6sha deleted the docs/dag-pinning branch June 11, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant