Practical overview
When it fits
Use it when an application needs a lightweight IPFS layer for IPLD block access and can provide its own datastore and libp2p host.
Who it is for
- Developers building IPLD-based applications that need IPFS block access.
- Browser and mobile app developers seeking a smaller data-access layer than a full IPFS node.
Documented uses
- Add a library component for storing hash-linked application data over IPFS.
- Retrieve data from IPFS using a CID.
- Build IPFS data-replication features, although the README does not detail their implementation.
Requirements & limits
- The consuming application must supply a datastore and libp2p host, as shown in the README example.
- The project describes itself as highly experimental and advises caution.
- The README lists Apache 2.0 and MIT licenses.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up a peer and retrieve a block by CID
Construct and start a DAGService peer with a datastore and libp2p host, then request data by CID.
Before you start
- The dag-service library
- An interface-datastore-compliant store, such as MemoryDatastore
- A libp2p host supplied by the application
- A CID to request
Steps
Create a BlockStore using the chosen datastore.
Create a libp2p host and pass it with the BlockStore to Peer.
Start the peer, request the file by CID, and stop the peer when finished.
Expected outcome
The example retrieves data for the requested CID and converts it to a string.
Guide limitations
- The README calls the library highly experimental and advises caution.
- The example does not document host configuration details or a replication procedure.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 24 October 2026
- Original website title
- ipfs/js-dag-service · Official homepage title · retained in its source language

