npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@diagrammo/dgmo

v0.26.0

Published

DGMO diagram markup language — parser, renderer, and color system

Downloads

5,019

Readme

@diagrammo/dgmo

Simple text in. Brilliant diagrams out.

Write plain-text .dgmo files, get clean, themeable diagrams and charts. One markup language, 45+ chart types — flowcharts, sequence diagrams, ER, org charts, C4, gantt, maps, bar/line/pie, and a lot more.

npm npm downloads license

📖 Docs · 🧩 Language Reference · 🖥️ Desktop App · 🪄 Live Editor


sequence Boarding the Marauder

Quartermaster -Hoist the colors-> Crew
Crew -Aye, captain-> Bosun
Bosun -Heading 270-> Helm
Helm -On course-> Quartermaster

That's a complete diagram. No coordinates, no XML, no drag-and-drop — just text you can diff, review, and version like any other source file.

Install

# Library
npm install @diagrammo/dgmo

# CLI (macOS, via Homebrew)
brew install diagrammo/dgmo/dgmo

# CLI (no install)
npx @diagrammo/dgmo diagram.dgmo

CLI

dgmo                                   # creates a sample.dgmo to get you started
dgmo diagram.dgmo                      # → diagram.png
dgmo diagram.dgmo -o out.svg           # → SVG (format from extension)
cat diagram.dgmo | dgmo > out.png      # pipe in, PNG to stdout
dgmo diagram.dgmo --theme dark --palette catppuccin

| Flag | Values | Default | |------|--------|---------| | --theme | light, dark, transparent | light | | --palette | one of 13 palettes (see below) | nord | | -o | output path (.svg → SVG, else PNG) | <input>.png |

Library

Render any diagram to an SVG string — no browser, no visible DOM:

import { render } from '@diagrammo/dgmo';

const { svg } = await render(`
bar Revenue by Quarter
Q1 12
Q2 19
Q3 15
Q4 22
`, { theme: 'light', palette: 'nord' });

render() auto-detects the chart type and dispatches to the right engine. Need the lower-level parsers, config builders, and per-type renderers? They live under the @diagrammo/dgmo/advanced subpath — see the docs for the full surface and stability contract.

Drop into any web page

Add one <script> tag and every <pre class="dgmo"> block renders on load:

<script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo/dist/auto.js"></script>

<pre class="dgmo">pie Crew Rations
Grog: 58
Hardtack: 21
Limes: 21</pre>

Theme detection, copy button, and "open in editor" come for free. Full config, framework recipes (Astro, Docusaurus, Hugo, MkDocs), self-hosting, and CSP guidance: diagrammo.app/embed.

Using a docs framework? First-class plugins wrap all of this: remark-dgmo · astro-dgmo · docusaurus-plugin-dgmo · fumadocs-dgmo

Use it from your AI tool

There's an MCP server (@diagrammo/dgmo-mcp) so Claude, Cursor, and other agents can author and render DGMO directly. Setup: diagrammo.app/ai.

Chart types

Data charts — bar · line · area · pie · doughnut · radar · polar-area · bar-stacked · multi-line · scatter · heatmap · funnel · sankey · chord

Visualizations — slope · wordcloud · arc · timeline · venn · quadrant · tech-radar · cycle · pyramid · ring · function · map

Diagrams — sequence · flowchart · class · er · org · c4 · state · infra · kanban · sitemap · mindmap · gantt · pert · journey-map · boxes-and-lines · wireframe · raci

Each type's full syntax, directives, and options live in the Language Reference — the authoritative spec.

Palettes & themes

Thirteen built-in palettes, each with light, dark, and transparent variants:

nord (default) · atlas · blueprint · slate · tidewater · solarized · catppuccin · rose-pine · gruvbox · tokyo-night · one-dark · dracula · monokai

Register your own with registerPalette(). Color helpers (getPalette, tint, mute, contrastText, …) and Mermaid theme-variable generation ship from the package too — see the docs.

Editor support

Syntax highlighting and autocomplete for .dgmo files ship as ready-to-use exports:

  • @diagrammo/dgmo/highlight — standalone highlighter
  • @diagrammo/dgmo/editor — CodeMirror 6 language support

Both back the desktop app and the live editor.

Develop

pnpm install
pnpm build        # tsup → dist/ (ESM + CJS + CLI)
pnpm test         # vitest
pnpm typecheck

License

MIT © Demian Neidetcher