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-standalone

v0.75.0

Published

DGMO diagrams in a plain web page — one <script> tag, no build step

Downloads

1,540

Readme

@diagrammo/dgmo-standalone

Diagrams in a plain web page. One <script> tag, no build step.

Write a diagram as text, get an SVG. No npm install, no bundler, no framework — paste a script tag into a page you already have.

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

<dgmo-diagram palette="slate">pie Crew Rations

Salt Pork: 34
Hardtack: 28
Rum: 17
Limes: 21</dgmo-diagram>

That is the whole install.

Two ways in

element.js gives you a <dgmo-diagram> element to write in your own markup — use it when you control the HTML.

auto.js scans the page for <pre class="dgmo"> blocks and draws them — use it when you don't control the HTML, which is the usual case with markdown, a CMS, or a static-site generator emitting ```dgmo fences.

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

<pre class="dgmo">bar Ship Stores

Salt Pork 34
Hardtack 28
Rum 17</pre>

Load one or the other, not both — each carries a complete copy of the renderer.

Optional styling for the auto-scanner lives at dist/auto.css; the element brings its own.

Pinning a version

The examples above float to the latest release, which is fine for a demo and a poor idea for a page you will not revisit. Pin it:

<!-- replace VERSION with the number shown at the top of this npm page -->
<script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo-standalone@VERSION/dist/element.js"></script>

unpkg works the same way — swap the host for unpkg.com/.

What you get

40+ chart types from one text format: flowcharts, sequence diagrams, timelines, org charts, gantt, maps, and the usual bar/line/pie family. The renderer infers the chart type from what you wrote, so there is one syntax to learn rather than one per chart.

Themes and palettes are attributes — palette="slate", theme="dark". Maps fetch their basemaps on demand from @diagrammo/dgmo on the same CDN, so a page with no map downloads no map data.

Watching a diagram somebody showed you

If someone published a diagram at Diagrammo — showed it on the web — you can watch it from any page, and every reader gets the version its author has now:

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

<dgmo-diagram watch="https://online.diagrammo.app/d/dgm_7f2a91"></dgmo-diagram>

Paste the share link you were sent, or just the id at the end of it. The diagram is fetched when the page loads — there is no polling, so a page left open shows what it fetched on arrival until it is reloaded.

If your page sends a Content-Security-Policy header, it needs connect-src https://api.diagrammo.app or the browser will block the request. That case is not silent: the element draws a card naming the diagram and says what went wrong, as it does when a diagram is missing or its author has stopped showing it.

When you want a different package

This one exists for the no-build case. Reach for a sibling instead when:

  • You are using npm and a bundler@diagrammo/dgmo, the library. It does not contain these two files, deliberately: they are a complete renderer twice over, and shipping them to every npm install meant 39% of the tarball for something no import could reach.
  • You are rendering markdown at build timeremark-dgmo and its wrappers for Astro, Docusaurus, Fumadocs, Nextra and VitePress. They draw the SVG during the build, so the reader downloads a picture and no renderer at all.
  • You want it on the command line@diagrammo/dgmo-cli, or brew install dgmo.

Links

MIT licensed — the full text is in LICENSE, in this package. Labels are drawn in Inter when your page already provides it, falling back to the system interface font; no font files are bundled.