Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: