pkel / cpr

consensus protocol research
9 stars 2 forks source link

Visualize blockchains and executions in browser #19

Open pkel opened 2 years ago

pkel commented 2 years ago

The current approach to visualization is to generate GraphViz dot files and render them to PNG. This works for small blockchains and short executions. It also works on the local machine only.

A better approach might be to log executions into a graph exchange format (e.g. graphml), then render it in a browser using javascript. Candidate libraries are sigma.js and cytoscape.js. It would be really nice if make visualize would create a website listing all available executions. I could also support loading an execution that is not listed, e.g. from a raised exception on a different machine.

Tasks: