Install
$ agentstack add skill-theseus-run-theseus-jsx-md-beautiful-mermaid ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
@theseus.run/jsx-md-beautiful-mermaid
Single-component companion to @theseus.run/jsx-md. Takes a Mermaid diagram string, calls renderMermaidASCII() from beautiful-mermaid synchronously, and returns a fenced code block (or raw ASCII) as a plain string. No DOM, no SVG, no async.
Setup
Install both packages:
bun add @theseus.run/jsx-md @theseus.run/jsx-md-beautiful-mermaid
Import:
import { render } from "@theseus.run/jsx-md"
import { BeautifulMermaid } from "@theseus.run/jsx-md-beautiful-mermaid"
No tsconfig.json changes needed beyond what @theseus.run/jsx-md already requires.
Authoring rules
1. Diagram source must be multi-line. Single-line graph LR; A --> B syntax is NOT supported.
// WRONG — parser rejects single-line inline syntax
B --> C" />
// CORRECT — header on its own line
B --> C`} />
// CORRECT — template literal children (preferred for longer diagrams)
{`graph LR
A --> B --> C`}
2. diagram prop takes precedence over children. Don't pass both.
// WRONG — diagram prop wins, children are silently ignored
{flowB}
// CORRECT — use one or the other
{flowB}
3. block={true} (default) wraps output in a fenced code block. Use block={false} only when composing the ASCII string into another context manually.
// Default — output is ```\n\n```\n\n
// Raw — output is the ASCII string only, no fencing
4. Unicode box-drawing is the default. Switch to plain ASCII only for maximum terminal compatibility.
// Unicode (default) — ┌ ─ │ └ ┘ ►
// ASCII — + - | >
Props
Full props table: [references/beautiful-mermaid.md](references/beautiful-mermaid.md).
| Prop | Type | Default | |---|---|---| | diagram | string | — | | children | string | — | | block | boolean | true | | useAscii | boolean | false | | paddingX | number | 5 | | paddingY | number | 5 | | boxBorderPadding | number | 1 |
All other AsciiRenderOptions from beautiful-mermaid are forwarded via spread.
Output shape
```\n\n```\n\n
With block={false}: raw ASCII string, no trailing newline added by this component.
Supported diagram types
Flowcharts, state diagrams, sequence diagrams, class diagrams, ER diagrams, XY charts.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: theseus-run
- Source: theseus-run/theseus
- License: MIT
- Homepage: https://www.theseus.run
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.