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

markawesome-js

v0.3.1

Published

Framework-agnostic Markdown to Web Awesome component transformer (TypeScript port of the markawesome Ruby gem)

Readme

markawesome-js

Framework-agnostic Markdown → Web Awesome component transformer. A TypeScript port of the markawesome Ruby gem, for the Node / Eleventy ecosystem.

It turns a terse custom Markdown dialect into Web Awesome web components:

:::info
This becomes a **callout**.
:::

%%%brand large
[Get started](https://example.com)
%%%

<wa-callout variant="brand">
  <wa-icon slot="icon" name="circle-info" variant="solid"></wa-icon>
  <p>This becomes a <strong>callout</strong>.</p>
</wa-callout>
<wa-button variant="brand" size="large" href="https://example.com">Get started</wa-button>

This package is the transformation engine. To wire it into Eleventy, use eleventy-plugin-webawesome.

Install

npm install markawesome-js

Requires Node >= 18. Ships dual ESM + CJS with type definitions.

Usage

import { process, configure } from 'markawesome-js';

// Optionally override callout icons globally (last-write-wins).
configure({ calloutIcons: { brand: 'lightbulb' } });

const html = process(markdownString, {
  imageDialog: { defaultWidth: '90vh' }, // optional; off by default
});

process(content, options?) protects fenced code blocks, runs the component transformers in a fixed (load-bearing) order, and restores the code blocks. The surrounding markdown is left untouched — render it with your host's markdown processor (e.g. Eleventy's markdown-it with html: true).

Options

| Option | Type | Default | Notes | | --- | --- | --- | --- | | imageDialog | boolean \| { defaultWidth?: string } | false | Wrap standalone images in click-to-zoom dialogs. |

Configuration

configure({ calloutIcons, customComponents }) merges into a global singleton (last-write-wins). calloutIcons is keyed by variant (brand/success/ neutral/warning/danger). It is applied globally, not per call.

Supported components

callout · badge · button · tag · icon · card · copy-button · comparison · details · dialog · popover · tooltip · layout (grid/stack/cluster/split/flank/frame) · tabs · carousel · accordion · image-dialog.

See the markawesome README for the full syntax reference — this port is behaviour-compatible.

Parity with the Ruby engine

Output is verified byte-for-byte against the Ruby engine across a cross-engine corpus, including deterministic MD5 ids for dialogs/popovers/tooltips. The only intentional divergences are cosmetic whitespace differences between Kramdown and markdown-it (markdown list indentation and the wrapping of a standalone raw <img>), which produce visually identical HTML.

License

MIT