Scan your whole stack
From OX Research Newsroom
Are you using @cardenelabs/dragon?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.94.0
@cardenelabs/dragon was last scanned on 1 Dec 2026 at version 0.94.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.94.0 LATEST | 1 Dec 2026 | No rules fired |
| 0.93.1 | 29 Nov 2026 | No rules fired |
| 0.92.0 | 29 Nov 2026 | No rules fired |
| 0.91.0 | 28 Nov 2026 | Not shown |
| 0.90.0 | 28 Nov 2026 | Not shown |
Findings for v0.94.0. 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.94.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Animated diagrams that people and AI write in a plain notation.
dragon turns a short text file into a diagram that plays one step at a time. The catalog at https://cardene777.github.io/dragon/ shows every kind of diagram, with an editor that plays what you type.
| mermaid | dragon | |
|---|---|---|
| What you get | A still picture | A diagram that plays step by step. Lines light up, chips travel, and values change |
| Look | A theme picked per diagram | One table of colors, sizes, and spacing that every kind reads |
| Export | SVG, PNG, and PDF through mermaid-cli | MP4, GIF, HTML, and PNG through dragon export |
| Writing with AI | Parse errors when the diagram renders | dragon check points to the line and column, and a skill teaches the notation to AI agents |
| On GitHub | Drawn from a mermaid code block |
Shown as an exported picture, and plays on any page with one script line |
dragon builds diagrams out of blocks, the way Lego builds models out of bricks. Every kind of diagram is assembled from blocks of fixed shapes, so all of them share one look.
| Block | What it is | Examples |
|---|---|---|
| Core blocks | Blocks that two or more diagram kinds share | box (box), step (step), color, icon |
| Kind blocks | Blocks that only one diagram kind uses | the lifeline of a sequence diagram, the group of an architecture diagram (group) |
| Connector blocks | Blocks that join two blocks | the edge (->), the merge of a git graph |
A diagram is blocks put together. A diagram kind only decides how its blocks are laid out and which connections it accepts. Colors, text sizes, and spacing live in one table that every block reads, so every diagram looks consistent.
You can also add your own blocks in your own project. Start from a box, a line, or an icon, change its shape and color role, and write it as plain data (Add your own blocks). To add a diagram kind or a new base block, open a pull request to this repository or work in a fork.
dragon also aims to be as easy as mermaid to write, and to show the diagram right away.
A -> B: name line make a diagram, and the names on the lines become boxes.The notation is modeled on mermaid, but it is not compatible with mermaid.
It drops hard-to-read forms such as -->|text|, and the first English word of each line says what the line is.
npm install @cardenelabs/dragon
The package has four parts.
| Part | What it is |
|---|---|
| Source | JSON that holds the kind, title, and steps, plus a field for each block name (blocks) (see below). It records a format version, and older versions are converted when read |
| Notation | The dragon notation, where the first English word of each line sets the line's kind (see below). It converts to and from JSON, and names and text can be in any language (notation guide) |
| Renderer | Draws the source on a page and plays it one step at a time. It draws sequence, architecture, state, git, time, tree, lineup, and try diagrams |
| Export | The dragon export command writes MP4, GIF, HTML, PNG, and SVG from the same source |
The dragon skill teaches an AI agent to write diagrams in the dragon notation, check them with dragon check, and fix them until the check passes.
In Claude Code, add the GitHub repository cardene777/dragon as a plugin marketplace and install the plugin.
/plugin marketplace add cardene777/dragon
/plugin install dragon@dragon
For other AI agents, copy the plugins/dragon/skills/dragon directory from the cardene777/dragon repository on GitHub into the folder where the agent loads its skills.
The agent starts from SKILL.md and reads only the reference file for the kind of diagram it draws.
The plugin version matches the npm version of @cardenelabs/dragon, and the skill checks the installed version with dragon --version.
sequence
browser -> app: GET /login
app -> browser: Return the sign-in page
A diagram kind plus lines that join boxes with -> is all a diagram needs.
Each name on a line becomes a box, and each line becomes a step that lights up in the order you wrote it.
Add box and step lines when a box needs a display name or a caption, or when a step needs a title and a body.
sequence Ask to sign in
box browser as User's browser [note: operated by the user, color: slate]
box app as App [note: asks for sign-in, color: blue]
step Press sign in
say The user presses the app's sign-in button.
browser -> app: GET /login
Paste it into the editor on the catalog to watch it play, or put it on your own page as shown below.
Each picture is the last step of an example in packages/dragon/examples.
Select a kind to read how to write it.
Add one script line to any HTML page and write the notation in a <pre class="dragon"> block.
The block turns into a diagram that plays.
There is nothing to install or build.
<script type="module" src="https://cdn.jsdelivr.net/npm/@cardenelabs/dragon@0.94/dist/cdn/dragon.js"></script>
<pre class="dragon">
sequence Ask to sign in
box browser as User's browser
box app as App
step Press sign in
say The user presses the app's sign-in button.
browser -> app: GET /login
</pre>
The script loads from jsDelivr, with the URL pinned to the minor version.
Later patch releases with fixes reach the page, but a release that changes the notation does not.
It loads the sequence renderer up front.
It loads the renderer for any other kind, architecture included, only when a block on the page uses that kind.
It adds one <link> to the page that loads the CSS for the two bundled fonts from jsDelivr.
It draws every block on the page once the page has loaded.
It does not watch for blocks added later.
A block that has no width at that point, such as one in a tab hidden with display: none, is drawn when it first gets a width.
When the page is printed, such a block is drawn before printing.
Indentation shared by every line of a block is removed before parsing.
Write < in the notation as <.
A block whose notation has an error is not drawn, and its error messages appear in its place (<pre class="dragon-error">).
Diagram text and error messages are in Japanese when the page's lang starts with ja, and in English otherwise.
When the page is printed, the player bar and the buttons of the bar above a diagram, which cannot be pressed on paper, are left out.
A diagram with steps prints the still of every step in order, each with its step number, title, and say text below it.
To make a file that works offline, run dragon embed on the page.
It replaces the script line with the bundled script, which contains every diagram kind, and writes page.offline.html next to the page (--out <file> sets the file).
The file fetches nothing from the network.
It does not embed the bundled fonts, so it uses the device's sans-serif fonts, which come after the bundled fonts in the font list.
The Export menu on a data-header block's bar saves the same seven formats as the jsDelivr page (PNG, SVG, HTML, GIF, MP4, notation, and JSON) without fetching anything.
The HTML it saves also uses the device's sans-serif fonts, like the embedded page.
dragon embed page.html
To draw without npm, a CDN, or the network, place the standalone folder beside the page.
Copy dist/standalone/ from the npm package, or download dragon-standalone-<version>.zip from the GitHub Release.
Then add these lines to the page.
<link rel="stylesheet" href="standalone/dragon.css">
<script src="standalone/dragon.js"></script>
<script src="standalone/dragon-icons.js"></script>
dragon.js contains every diagram kind and reads nothing from outside the folder.
dragon.css loads the bundled fonts from standalone/fonts/, and without it the page uses the device's fonts.
dragon-icons.js holds the Tabler icon table, so load it only when the page names icons like tabler:building-bridge-2.
The Export menu of the bar saves HTML only when the page is served over HTTP, and the other six formats also work from file://.
To show only the last step as a single picture, for example in a report or an explainer, add data-still to the block.
<pre class="dragon" data-still>
chart Sales by product in thousands of yen [shape: bar]
item croissant as Croissant
item melon as Melon bun
step This week
set croissant: 129
set melon: 82
</pre>
A data-still block gets no player: no buttons, step number, step title and text, or progress bar.
It is replaced by an SVG of the last step (<div class="dragon-figure dragon-still">).
A chart draws its values and shows the diagram title where the step title would be.
A flow diagram draws every line its steps passed through as a solid line.
Its font list puts the device's sans-serif fonts after the bundled fonts, so a page that does not load the bundled fonts never shows a serif font.
It uses the clear palette by default, which suits a white page.
To draw it in another palette, name the palette with data-palette, for example <pre class="dragon" data-still data-palette="paper">.
A name that is not a palette draws in clear, the same as no name.
A guide page (layout: guide) names paper for the map at the head of each topic, so it matches the other figures on the page.
It turns dark when the page's <html> has data-theme="dark".
It also turns dark when the device prefers a dark color scheme and the page does not set data-theme="light".
To give the figure your page's own color, set --dragon-figure-background on the figure or an ancestor, for example .card { --dragon-figure-background: var(--surface); }.
The background, the outlines around lines, and the plates behind labels then use that color on both light and dark pages.
A donut chart wraps a center label onto two lines when it does not fit inside the ring.
A step band (cycle with [shape: band]) writes each step name inside its chevron.
The figure never grows past its own width, and it shrinks to fit a narrower frame while keeping its aspect ratio.
If every block on a page is still, dragon embed draws them as SVGs in place and adds no bundled script.
If the page also has moving blocks, it draws only the still blocks as SVGs and adds the bundled script for the rest.
From the package, pass figure: true to renderDiagram to get the same SVG.
To place a diagram paused on one step, add data-step with the step number, counting from 1 as the step bar does.
<pre class="dragon" data-step="2">
sequence Order
box shop as Shop
box bank as Bank
step Ask
shop -> bank: payment
step Pay
bank -> shop: paid
step Close
shop -> bank: closed
</pre>
The block does not play when it is placed and waits on the still of step 2.
In sequence, architecture, state, and flow diagrams, lines of earlier steps keep their labels in faint gray.
The reader sees the flow up to that step in one picture.
The reader can still play the diagram or move between steps with the bar.
A number larger than the step count pauses on the last step.
A value that is not a whole number from 1 turns the block into an error message.
A block with both data-still and data-step uses data-still.
dragon export notes.md reads a Markdown file and writes one HTML page, notes.html, next to it (--out <dir> sets the folder).
The page contains the file's prose, tables, and dragon code blocks, and it turns the headings into pages and tabs.
To do the same from code, call exportPage(file, { outDir, lang }) from @cardenelabs/dragon/node.
| Heading | Becomes |
|---|---|
# |
The page title |
Text before the first ## |
The entry, the first thing the page shows |
## |
A group of items |
### |
An item, which has its own page |
#### |
A tab, in the entry and in an item page |
##### |
A tab inside a tab |
The default layout shows the entry with one card per item, grouped by ##.
Clicking a card opens the item's page without a reload.
An item page links back to the entry and to the previous and next items.
To choose another layout, add a layout line between --- lines at the top of the file.
layout: sidebar keeps a table of contents on the left.
layout: tabs puts the groups in tabs along the top, with each group's items in tabs below them.
layout: guide makes a guide page that answers questions, as Guide page shows.
layout: entry is the default.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.