Examples
This section is the fastest way to see what TopoViewer can render and which YAML contract to copy. Read it like a gallery:
- use the object-family pages when you need a specific primitive;
- use the use cases when you want a complete applied workflow;
- use the generated example families when you need exhaustive feature coverage.
The examples are generated from the same canonical fixtures used by tests. That keeps the documentation honest: if an example renders here, the same topology and stylesheet are part of the regression surface.
Start Here
Examples are for reusable patterns, not product-positioning walkthroughs. Start with the smallest tutorial when you are learning the contract, then use this section when you need a concrete primitive or applied workflow.
- First Topology teaches the smallest
topology.yamlplusstylesheet.yamlpair. - Nodes, Edges, and Regions cover focused object behavior.
- Service Provider Network shows a complete network use case with underlay, BGP, transport, service path, and failure views.
Example Families
Use these when you want to learn one part of the model or one visual behavior. They are intentionally focused and copyable.
| Family | What it teaches |
|---|---|
| Graph | Nodes, links, layers, labels, data, and parent/child graph facts. |
| Nodes | Node shape, icons, labels, status markers, badges, outlines, and underlays. |
| Edges | Link geometry, labels, arrows, endpoint spacing, dashes, gradients, and directional strokes. |
| Paths | Ordered service or transport paths across existing links and child objects. |
| Attention | Focus, dimming, dependency traversal, aggregation, and dense-link grouping. |
| Regions | Visual grouping, labels, dragging, nesting, and overlap behavior. |
| Shapes | Diagram primitives that explain the topology without becoming graph nodes. |
| Callouts | Markdown callouts, image callouts, pins, and leader lines. |
| Styling | Selector-driven visual policy and style overrides. |
| Layout | Manual, force, CLOS, and deterministic tree layout behavior. |
| Object Family Examples | A lookup table from object family to focused example and reference contract. |
| Validation | Broken references, unsafe images, and renderer limits. |
Use Cases
Use cases show complete workflows rather than isolated features. They are useful when you want to understand how TopoViewer behaves inside authoring tools, documentation, topology imports, or operational dashboards.
| Use case | What it proves |
|---|---|
| React | Embed TopoViewer as a typed React component with stable topology documents. |
| MkDocs | Render topoviewer fenced blocks from Markdown documentation. |
| Static HTML / Zensical Adapter | Mirror authored documentation into static HTML embeds. |
| TopoViewer Studio | Author one portable topology, stylesheet, and mapper bundle with visual and code workspaces. |
| Kubernetes Service Map | Convert Kubernetes and EDA inventory into a reviewable service map. |
| Service Provider Network | Render one provider topology as underlay, BGP, transport, service path, and failure view. |
| Grafana TopoViewer Panel | Mount topology/style/mapper bundles into Grafana and drive runtime overlays from telemetry. |
Open Use Cases when you want the applied examples grouped by workflow instead of by object family.