ArtefactKino (ArtefactKino v0.1.5)

Copy Markdown View Source

Livebook Kino widget for rendering %Artefact{} knowledge graphs.

Renders three panels: interactive vis-network graph (heartside), an export panel toggling between CREATE / MERGE Cypher, Arrows JSON and Mermaid source, and a tabbed Elixir inspector showing the artefact, nodes and relationships as tables.

Usage

ArtefactKino.new(artefact)
ArtefactKino.new(artefact, default: :merge)

Summary

Functions

Render an %Artefact{} as a three-panel Kino widget.

Functions

new(artefact, opts \\ [])

Render an %Artefact{} as a three-panel Kino widget.

Validates the artefact via Artefact.validate!/1 first so a hand-built struct with malformed fields (non-list labels, missing uuid, dangling relationship endpoint, etc.) fails with a clear ArgumentError instead of a cryptic render-time error.

Options:

  • default::create (default) or :merge