Skip to content

Instantly share code, notes, and snippets.

@jhiesey
Created March 19, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhiesey/c1dabee4fa75e5ebbbf3614f81f396f1 to your computer and use it in GitHub Desktop.
Save jhiesey/c1dabee4fa75e5ebbbf3614f81f396f1 to your computer and use it in GitHub Desktop.
Ideas for libp2p visualizer

Network level visualization:

Fundamentally, choose a set of peers to visualize by ID

  • Optionally also show neighbors of those peers up to a certain number of hops
  • Allow zooming in to particular peer (below)
  • Allow zooming out to more distant neighbors
  • Allow filtering displayed peers by protocol support
  • Show protocols supported by each peer
  • Show connections/disconnections between these peers
  • Show streams and/or messages (perhaps color coded by protocol)
  • Show relays and the connections they enable

Peer level visualization:

  • Show all streams/messages
  • Allow filtering by protocol
  • Show contents of PeerStore
  • Show addresses used for each connection/message

DHT specific visualization:

  • Show this node's queries by type
  • Show outstanding queries and replies
  • Show the entire state of a given lookup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment