Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tkati-dashboard — dataflow graph viewer

Reads a serialized tkati dataflow directory (see docs/dataflow-serialization.md) and serves a local web page rendering it as a graph — no live runtime process required, no manifest to maintain, just a directory of *.json/*.yaml/*.yml fragment files (freely mixable — both encodings merge into the same graph identically).

Usage

tkati-dashboard path/to/dataflow-dir

Then open http://127.0.0.1:8000/ in a browser. The page fetches /api/graph and renders it with React Flow, laid out by dagre using each node's real measured box (from its label text, via canvas measurement — no DOM mount needed) rather than a flat grid, so a node with a long broker/topic string pushes its neighbors aside instead of overlapping them. A toggle in the top-left corner of the canvas switches the layout between left-to-right (the default) and top-to-bottom, remembered across reloads. Source/sink nodes (kafka-topic, clickhouse-table) and processing nodes are colored differently, and stream edges are labeled by kind on its own line plus, for a Kafka consumer edge, group: and lag: on their own lines below it. Click a node to fill the always-visible inspector panel on the right — its border highlights blue while selected — with its full connection/config/schema details, plus every stream edge touching it and that edge's live consumer lag; drag the panel's left edge to resize it (the width is remembered across reloads).

Try it with the bundled example

examples/simple-pipeline is the smallest interesting dataflow: two Kafka topics and one processing node (raw-events → dedup → deduped-events). Its connection blocks point at localhost:9092, so if you have a broker there, seed it with sample events first:

uv run python packages/tkati-dashboard/examples/simple-pipeline/seed_kafka.py
uv run tkati-dashboard packages/tkati-dashboard/examples/simple-pipeline

Then open http://127.0.0.1:8000/, click the raw-events or deduped-events node, and click "Load latest events" in the side panel to see the real messages the seed script just produced (raw-events includes two intentional duplicate event_ids so you can see what the dedup node in between is for).

For a bigger graph exercising fragment merging across topics.json, tables.json, nodes.json, and edges.json (two raw topics → dedup → a sessionize/enrich node → a ClickHouse table, plus a side branch straight to another table), see examples/analytics-pipeline — its topics aren't seeded with data, so "Latest events" there will error unless you produce to them yourself.

Options:

  • --host (default 127.0.0.1)
  • --port (default 8000)

The dataflow directory is re-read on every request to /api/graph, so editing the fragments and refreshing the browser picks up the change without restarting the server.

Node panel

The panel on the right is always there, like an inspector rather than a popup — it shows a placeholder until you click a node, then shows that node's full metadata: connection settings, config, and schema (field → type). Clicking empty canvas clears the selection back to the placeholder. Every section has a clickable header to collapse/expand it — a collapsed section stays mounted, just hidden, so collapsing a live-fetching section and reopening it doesn't re-fetch. For a kafka-topic node, the panel also fetches two more, live views:

  • GET /api/nodes/{id}/snapshot connects to connection.broker/connection.topic and shows the most recent messages on that topic (newest last), parsed as JSON, using a throwaway consumer group that never commits offsets. It only fetches on demand — click "Load latest events" — and a "↻ Refresh" button afterward pulls a fresh batch on request rather than automatically. Each message renders as its own pretty-printed JSON block (fields reordered to match schema, when there is one) rather than a table — real messages commonly carry 5-20 fields, too many to lay out sensibly as table columns in a side panel — with a small header showing that message's Kafka-level partition, offset, and timestamp, alongside its parsed body.
  • GET /api/nodes/{id}/topic-stats shows the topic's partitioning and replication (per-partition leader/replicas/in-sync-replicas, flagging any under-replicated partition) and its topic-level config — retention.ms, retention.bytes, cleanup.policy, segment.bytes, compression.type, max.message.bytes — via tkati_dashboard.topic_stats, marking each value that differs from the broker default. Partition/replica info comes from the same topic metadata lookup as the snapshot/lag features (_kafka_metadata.py); the config comes from a separate read-only AdminClient.describe_configs() call.

These are two of the places tkati-dashboard talks to a live broker rather than just the serialized directory — best-effort conveniences for the panel, not something the graph view itself depends on: a broker that's unreachable, or a topic that doesn't exist, shows an inline error in that section instead of breaking the page.

Consumer lag

For every stream edge whose consumer.group_id is set and whose source is a kafka-topic, the page also fetches GET /api/nodes/{topic_id}/consumer-lag?group_id=... and shows the result both on the edge itself (a group:/lag: line under the edge's kind) and, for either node that edge touches, in the inspector panel's "Consumer lag" section (← other-node (group_id) for an edge consumed by the selected node, → other-node (group_id) for one where it's the topic being consumed). This is another place tkati-dashboard talks to a live broker: it looks up group_id's committed offset with Consumer.committed() and compares it to the topic's high watermark — it never subscribes or polls as that group, so it can't join it, trigger a rebalance, or otherwise disturb a real pipeline's consumer. A group that has never committed an offset is reported as fully behind (lag = the topic's full size); an unreachable broker shows lag: n/a instead of failing the page.

Validation

tkati_dashboard.dataflow.load_dataflow enforces the rules from the serialization doc: the directory must contain at least one *.json/*.yaml/*.yml fragment, node ids must be unique (or identically redefined) across fragments, edges must reference existing nodes, and a node's schema, when present, must use field types known to tkati_core.type_mapping — schema itself is always optional, since it isn't always on hand for a real-world node. A validation failure surfaces as an HTTP 422 with the error message, shown inline on the page instead of a blank graph.

Metadata

Release files for tkati-dashboard 0.4.0a8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tkati-dashboard 0.4.0a8
File Size Uploaded
tkati_dashboard-0.4.0a8.tar.gz 28.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tkati-dashboard 0.4.0a8
File Interpreter ABI Platform
tkati_dashboard-0.4.0a8-py3-none-any.whl Python 3 none any Details

Total release size: 52.3 kB

Release files / tkati_dashboard-0.4.0a8.tar.gz

Download URL tkati_dashboard-0.4.0a8.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bf9dd1a8f5939fd686d008afa97bc43238499556cb08cbf42ce4f49b66f5d6d5
BLAKE2b-256 checksum
How to use checksums
f087641f8d5e4c0e5f93d644966a24b54588e7b72ddd36deded940c9082c50ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release files / tkati_dashboard-0.4.0a8-py3-none-any.whl

Download URL tkati_dashboard-0.4.0a8-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
778042a9fd5a808c451c136ba34b5c056a18df672a61a5c5b21965d26dff4bc9
BLAKE2b-256 checksum
How to use checksums
043b0910ee79d10e86f1f2d81a7688e774aabb917d8ff1cbf8ed429bee0d6588
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page