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

adomonitions

v0.3.0

Published

Styled admonition callouts generated on page load, for static site generators whose Markdown renderer doesn't support them.

Readme

aDOMonitions

Styled admonition callouts generated on page load, for static site generators whose Markdown renderer doesn't support them.

Check out the Quickstart to get up and running right away!

Look at the Demo page to view all the callouts and themes:

Example callout boxes

What is this?

This JavaScript library scans the DOM for Admonition markers in HTML generated by a static site generator without built-in admonition support.

Admonitions are highlighted callout boxes, like "Note", "Warning", "Tip", etc; used to draw attention to important content. Normally Markdown renderers only support these via build-time plugins, so without these plugins, the markers end up as plain text in the HTML.

aDOMonitions can look for either GitHub-style or Docusaurus-style markers. When it finds them, it transforms the corresponding HTML into styled, accessible callout boxes with icons, colours, and ARIA roles.

For example, a GitHub style Markdown Admonition:

> [!WARNING]
> This will delete all data.

Is likely converted to this raw HTML by static site generators without built-in admonition support:

<blockquote>
  <p>[!WARNING]</p>
  <p>This will delete all data.</p>
</blockquote>

Running aDOMonitions transforms that HTML into this styled callout box, with accompanying CSS for colours, layout, and an icon:

<div class="adomonitions adomonitions-warning" role="alert" aria-label="Warning">
  <p class="adomonitions-title">
    <span class="adomonitions-icon" aria-hidden="true"><!-- SVG --></span> Warning
  </p>
  <p>This will delete all data.</p>
</div>

Rendered callout box

Install and run

npm install adomonitions
import { init } from "adomonitions";
init(); 

Or load via a <script> tag (UMD):

<script src="https://unpkg.com/adomonitions/dist/adomonitions.umd.min.js"></script>
<script>
  adomonitions.init();
</script>

Check out the Quick Start guide for more examples.

Themes

Eight bundled themes. The active theme is injected automatically as a <style> tag:

| Theme | Description | |-----------------|-------------| | default-light default-dark default-auto | Tinted background with rounded corners, default | | github-light github-dark github-auto | GitHub callout style (transparent bg, left border highlight), light | | material | MkDocs Material style (full border, colour in title background, smaller text size) | | docusaurus | Docusaurus/Infima style (thick border, heavier title) |

Set theme: null to skip CSS injection and bring your own styles. Standalone CSS files are also available at dist/themes/ for use via <link> tags.

Documentation

License & Acknowledgements

MIT licensed.

Icons are inline SVGs from GitHub Octicons, MIT licensed (see LICENSE-THIRD-PARTY).

The bundled themes are inspired by and styled after the admonition designs of: