
IPFS on the Web in 2024: Update From Interplanetary Shipyard
Update from Interplanetary Shipyard on our efforts to make IPFS work on the Web.
Interplanetary Shipyard is thrilled to share js-libp2p inspector , the new developer tools for debugging and inspecting js-libp2p and Helia, for use both in browsers and Node.js.
Debugging is an essential part of software development, and having the right tools can make all the difference. The new developer tools provide a user-friendly interface to inspect your libp2p nodes in real-time, tightening the feedback loop and making it easier to diagnose issues.
These new developer tools expand the existing set of metrics implementations for js-libp2p, which include metrics-prometheus and metrics-opentelemetry .
While Prometheus and OpenTelemetry are for monitoring and tracing in production (though not exclusively), the inspector is intended for use during development. Together, these tools provide a comprehensive solution for monitoring and debugging js-libp2p and Helia nodes throughout the development lifecycle.
To inspect a js-libp2p or Helia node, you need to pass the metrics implementation from the @ipshipyard/libp2p-inspector-metrics package to your js-libp2p or Helia factory:
import { createLibp2p } from 'libp2p'
import { inspectorMetrics } from '@ipshipyard/libp2p-inspector-metrics'
const node = await createLibp2p({
metrics: inspectorMetrics()
})
import { createHelia } from 'helia'
import { inspectorMetrics } from '@ipshipyard/libp2p-inspector-metrics'
const node = await createHelia({
libp2p: {
metrics: inspectorMetrics()
},
})
Once you have your node running with the inspector metrics enabled, you can start inspecting it using the browser extension or the Electron app.
The following video walks through setup and usage with both Node.js and browser environments:
The new developer tools consist of several npm packages that work together:
We encourage you to try out the new developer tools and provide feedback. You can find the source code on GitHub .
Update from Interplanetary Shipyard on our efforts to make IPFS work on the Web.
Update from Shipyard on our efforts to make IPFS work on the Web.
Our free IPFS tools and integrations have over 75 million monthly active users around the globe.
Help Fund Shipyard