---
title: "Diagrams"
description: "@xyflow/svelte-based flow and state diagram components with custom node types for interactive node-edge visualizations."
category: "Data Viz"
---

# Diagrams

> Generated from `mcp/patterns.registry.json` — do not edit by hand; change the registry and run `bun run patterns:build`.

_Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes._

**Category:** Data Viz · **Tier:** light · **Risk:** low — frontend only

@xyflow/svelte-based flow and state diagram components with custom node types for interactive node-edge visualizations.

**When to use:** Use when building an interactive flowchart or state-machine diagram that needs draggable, connectable nodes.

## Docs

- [docs/stack/capabilities/viz.md](/docs/stack/viz) ([GitHub](https://github.com/ApeDevil/v10r/blob/main/docs/stack/capabilities/viz.md) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/blob/main/docs/stack/capabilities/viz.md))

## Code

- `src/lib/components/viz/diagram/` ([GitHub](https://github.com/ApeDevil/v10r/tree/main/src/lib/components/viz/diagram) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/tree/main/src/lib/components/viz/diagram))

## Proof

- [`/showcases/viz/diagrams`](/showcases/viz/diagrams)

---

_Machine-readable record: `viz-diagrams` in `mcp/patterns.registry.json`._
