things-graph-renderer/README.md

653 B

things-graph-renderer - visualize a Things knowledge pool graph

This demo uses the sigma.js and Graphology libraries to read a straightforward graph specification from a JSON file, and renders it as an interactive visualization.

Usage

Run npm dev to start a demo locally.

Content

  • index.html: minimal HTML page for rendering the graph
  • style.css: minimal styling
  • main.js: javascript implementation of the graph rendering
  • graph.json: exemplary graph (nodes, and edges)
  • pool2graph.py: demo script reading Things records from STDIN and writing a graph JSON file