Skip to content

Nessie-org/nessie-simple-visualizer-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nessie-simple-visualizer-plugin

A Nessie block that takes a graph data structure and returns an interactive HTML visualisation.


Overview

nessie-simple-visualizer-plugin exposes a single action — visualise_graph — which accepts a graph object and returns a self-contained HTML string that renders the graph visually in any browser or webview.


Action

visualise_graph

Renders a graph data structure as an HTML visualisation.

Field Details
Action visualise_graph
Payload Graph
Returns String — HTML content
Side effects None
Setup required None

Payload

{
  <Graph>
}

The Graph object is an object described in nessie-api.

Return value

A String containing a complete, self-contained HTML document (or embeddable HTML fragment) that renders the supplied graph. This can be written to a file, injected into a <div>, or loaded inside an <iframe>.


Usage

const result = await block.run("visualise_graph", Graph(name));
// result is an HTML string — render it however you like
document.getElementById("graph-container").innerHTML = result;

Installation

Install directly from the GitHub repository using pip:

pip install git+https://github.com/Nessie-org/nessie-simple-visualizer-plugin.git

To pin to a specific branch:

# Latest from main
pip install git+https://github.com/Nessie-org/nessie-simple-visualizer-plugin.git@main

Or add it to your requirements.txt:

git+https://github.com/Nessie-org/nessie-simple-visualizer-plugin.git

Setup

No setup or configuration is required after installation. The block has no external dependencies that need to be authenticated before use.


Repository

https://github.com/Nessie-org/nessie-simple-visualizer-plugin


License

See LICENSE for details.

About

Nessie visualizer plugin that renders graph nodes as labeled SVG circles. Minimal, fast, and compatible with the D3 physics simulation in the Nessie web UI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors