things-graph-renderer/README.md

15 lines
653 B
Markdown

# `things-graph-renderer` - visualize a Things knowledge pool graph
This demo uses the [sigma.js](https://www.sigmajs.org) and [Graphology](https://graphology.github.io) 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