Skip to content

V2.0.0 - Diagrams - #300

Merged
Timmoth merged 13 commits into
mainfrom
feature/cli-tags
Jun 13, 2026
Merged

V2.0.0 - Diagrams#300
Timmoth merged 13 commits into
mainfrom
feature/cli-tags

Conversation

@Timmoth

@Timmoth Timmoth commented Jun 13, 2026

Copy link
Copy Markdown
Owner

RackPeek 2.0.0

What's New

Web UI

  • Visualise page (/visualise) — live network diagrams
    rendered from your inventory, with a tab toggle between
    Physical (hardware topology with rack/host groupings and
    port-level connections) and Logical (services & systems
    grouped by subnet and host). One-click Save PNG and Save
    Mermaid (.mmd) for embedding in docs or sharing.
  • Diagram previews on the home page — the dashboard now
    embeds compact Physical Topology and Logical View cards
    next to the totals, each with an open → jump to the full
    Visualise tab.
  • Better YAML import errors — invalid YAML now surfaces the
    exact line, column, and a contextual snippet pointing at
    the offending line, rather than dumping the raw parser
    stack trace. Same treatment for in-place YAML file edits.

CLI

  • rpk graph topology — emits a Mermaid flowchart of the
    physical topology (hardware + connections) on stdout, ready
    to pipe into a .mmd file or any Mermaid renderer.
  • rpk graph logical — same, for services & systems grouped
    by subnet.
  • Tag commands on every resource kind: rpk tag add
    / rpk tag remove for all
    ten kinds (servers, switches, routers, firewalls, access
    points, UPSs, systems, services, desktops, laptops).
  • Tag discovery: rpk tags list (every tag in use, with
    counts) and rpk tags show (every resource carrying
    that tag).

API

  • New POST /api/inventory endpoint — upsert resources via
    YAML or JSON over HTTP. Supports mode: merge (preserves
    unspecified fields) and mode: replace (overwrites). dryRun:
    true returns the computed diff (added / updated / replaced
    plus oldYaml / newYaml snapshots) without persisting, so
    you can preview a change before applying it.
  • Authenticated via X-Api-Key header. The endpoint returns
    503 if RPK_API_KEY is unset and 401 for a wrong key.
  • Tags are wholesale-replaced in merge mode; labels are
    merged key-wise.

Git Sync

  • Auto-initialises a Git repo on first run when GIT_TOKEN
    is set and the config directory is a plain folder (no
    .git/). No more "Git is not available" dead-end for
    first-time users — Add Remote works immediately.

@Timmoth Timmoth changed the title V2.0.0 V2.0.0 - Diagrams Jun 13, 2026
@Timmoth
Timmoth merged commit a5ab9df into main Jun 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant