Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add introspection #45

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Feb 16, 2021

This PR adds the introspection protocol for libp2p. This was done as a hack for a demo and this should be revisited. This draft PR is mostly for visibility.

The daemon is not the best place to have the introspection, specially if we want to enable libp2p users to use it when running using libp2p as a lib, such as IPFS. Libp2p should be able to have the introspection module plugged in.

Note: The @libp2p/observer-data and @libp2p/observer-proto need a .npmrc file to be installed.

The @libp2p/observer-proto was updated in libp2p/observer-toolkit#89 and that version should be used. Unfortunately, lerna repos do not allow to install a dependency as a git branch and I cannot add it here but it is important for testing purposes.

A good example for testing the DHT widget is running:

node src/cli/bin.js --hostAddrs /ip4/0.0.0.0/tcp/55555/ws --bootstrapPeers /dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN,/dnsaddr/bootstrap.libp2p.io/ipfs/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa --bootstrap

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