Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

open-diagram-rs

Latest version: v0.6.2

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
MCP server Transport: stdio Publisher: Orrae-Labs
0 Stars
0 Forks
1 Versions
Rust Repo language

Scan summary

open-diagram-rs was last scanned on 25 Nov 2026 at version 0.6.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 25 Nov 2026.
  • Findings: No rules fired in version 0.6.2.
  • MCP server: Runs over stdio.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.2 LATEST 25 Nov 2026 No rules fired

No rules fired in 0.6.2

Findings

Findings for v0.6.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

open-diagram-rs

open-diagram-rs draws architecture diagrams and checks their layout. You describe boxes, lines and groups in JSON, in a Mermaid flowchart, or in Rust. It measures every label with the bundled Inter font, places everything, and names each layout problem it finds: two boxes that overlap, a line that runs through a box, text below 10 px. It writes an SVG and, when Chrome or a Chromium-based browser is installed, a PNG.

There are three ways to use it:

  • open-diagram-rs, a command for your terminal or CI.
  • open-diagram-rs, a Rust library.
  • open-diagram-rs-mcp, an MCP server that lets AI apps such as Claude, Codex or Cursor draw and check diagrams.

Install

cargo install open-diagram-rs-cli --locked

This installs the open-diagram-rs command. It needs Rust 1.100 or later.

PNG output uses Chrome, Chromium or Edge. If yours is installed somewhere unusual, set CHROME to its path. Without a browser you still get the SVG.

To use the library in your own crate:

cargo add open-diagram-rs

For the MCP server, see docs/agents.md.

Draw your first diagram

Start from a template:

open-diagram-rs new azure_web_app
open-diagram-rs draw azure_web_app.json

new writes azure_web_app.json into the current folder, and draw turns it into azure_web_app.svg and azure_web_app.png. Run open-diagram-rs new on its own to list the templates.

Or write one yourself. Save this as search.json:

{
  "title": "How a search request is answered",
  "tag": "EXAMPLE",
  "columns": [
    [{"id": "app", "title": "Web app", "tiles": ["Search box", "Results page", "Filters"], "footer": "Owner: Web team"}],
    [{"id": "api", "title": "Search API", "tiles": ["Checks access", {"label": "Caches results", "status": "building"}], "footer": "Owner: Platform team"}],
    [{"id": "index", "title": "Search index", "status": "planned", "tiles": ["Product text", {"label": "Spelling fixes", "status": "planned"}]}]
  ],
  "links": [
    {"from": "app", "to": "api"},
    {"from": "api", "to": "index", "kind": "planned", "label": "new"}
  ]
}

Then run open-diagram-rs draw search.json:

Each entry in columns is a column of panels, drawn left to right. A part marked building gets a dashed amber outline and one marked planned a dotted gray one. The legend under the title lists the states and kinds of line the picture uses. The same picture in Rust is open_diagram_rs::examples::quickstart.

When the layout has a problem

draw and check print each problem as a sentence that names the parts involved, for example that one panel overlaps another, or that a line crosses a panel it doesn't connect to. draw still writes the files so you can look at them, then exits with status 1. check builds the diagram without writing anything, which suits CI.

Labels are never squeezed or cut to make them fit. If a box is too small for its text, the problem says how many pixels it needs.

Examples

docs/images holds every example picture. The test suite redraws them all and fails if a single byte changes.

Picture What it shows
systems_map A video platform, with columns, a group, numbered steps, states, owners, a small data map and lanes
how_it_works How open-diagram-rs works
pipeline A release pipeline with a rollback lane
card_payment A card payment, with return paths above and below
layers Stacked layers and a side panel
concept_map How git stores a project
smart_home A smart home with a planned overnight path
incident_response An outage, from the first alert to the lessons learned
business_map A furniture store, from order to doorstep
aws_etl, aws_architecture, azure_web_app, gcp_event_pipeline The cloud templates, drawn with the providers' own icons

Three have source files in examples that you can draw directly:

open-diagram-rs draw examples/email_delivery.json
open-diagram-rs draw examples/signup_flow.mmd
open-diagram-rs draw examples/release_cycle.json

Documentation

Topic Page
Every JSON key docs/json.md
What a Mermaid flowchart keeps and loses docs/mermaid.md
The Rust API docs/rust.md
Commands, and the GitHub Action that checks diagrams on every push docs/cli.md
The MCP server and AI agents docs/agents.md
Cloud templates and icons crates/open-diagram/templates/README.md
What each layout problem means and how to fix it skills/open-diagram-rs/SKILL.md
How it compares with Mermaid, D2, draw.io, Excalidraw and archify docs/comparison.md

Background

open-diagram-rs is a Rust port of open-diagram, which is written in Python. It started from open-diagram 0.6.0 and ports later changes from it. The changelog lists each release.

Contributing

Before opening a pull request, run:

cargo test --workspace --all-features
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo audit

The tests compare every example picture with the committed copy in docs/images, byte for byte. If your change is meant to alter a picture, update the committed SVG and PNG in the same pull request.

AGENTS.md maps the source files and lists the rules the code keeps, such as determinism and the exact wording of layout problems. Releases are described in docs/releasing.md.

License

The code is MIT. The library package also carries the licenses of the files bundled with it, so its license field is MIT AND OFL-1.1 AND Apache-2.0 AND CC-BY-ND-2.0:

  • The Inter fonts use the SIL Open Font License 1.1 (crates/open-diagram/fonts/OFL.txt).
  • The Google Cloud icons are Apache-2.0.
  • The AWS icons, including the QuickSight PNG, are CC BY-ND 2.0.
  • The Azure icons also come with Microsoft's icon terms, which have no SPDX identifier.

crates/open-diagram/templates/assets/README.md gives the source and terms of each icon set.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.Orrae-Labs/open-diagram-rs

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229