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

create-mdp-extension

v0.3.0

Published

Scaffold a correctly named, tagged MDP block or artifact extension package.

Readme

create-mdp-extension

Scaffold a correctly named, tagged, permissively licensed MDP extension in one command: a block (mdp-block-<name>) or an artifact (mdp-artifact-<name>).

MDP seeds its ecosystem the zero-maintenance way: a naming convention plus an npm keyword plus a GitHub topic. There is no central registry. This tool makes the right thing the easy thing.

Use

npm create mdp-extension tag-list
# or
npx create-mdp-extension tag-list

Make an artifact instead, with the Apache-2.0 license:

npm create mdp-extension card -- --type artifact --license apache-2.0

Then:

cd mdp-block-tag-list
npm test          # the generated package is self-testing
npm run demo      # writes dist/preview.html - open it

Options

| Flag | Default | Meaning | |---|---|---| | --type <block\|artifact> | block | Kind of extension. | | --license <mit\|apache-2.0> | mit | License for the generated package. | | --author <name> | Your Name | Author in package.json + LICENSE. | | --dir <path> | ./<package-name> | Where to write. | | --year <YYYY> | <YEAR> placeholder | LICENSE copyright year. | | --scope <@scope> | none | Publish as @scope/mdp-<type>-<name>. | | -y, --yes | off | Non-interactive: flags + defaults, no prompts. | | --force | off | Write into a non-empty directory. |

Run with no name in a terminal and it prompts for the missing pieces. With --yes (or no TTY, e.g. CI) it takes flags and defaults and never blocks.

What you get

A zero-dependency package that runs anywhere Node 18+ does:

  • src/index.mjs - the extension, shaped like the engine's own blocks (a STYLE string + a render function). Author content is escaped through a vendored copy of the engine's inline().
  • test/index.test.mjs - node --test assertions for markup, escaping, the design lock (tokens only, logical properties), and determinism.
  • demo.mjs - renders a sample into dist/preview.html so you can see it.
  • package.json with the required keywords (mdp + mdp-block / mdp-artifact), README.md, LICENSE, .gitignore.

The generated README explains how to publish (the keyword + the GitHub topic) and how to wire the extension into a document.

The convention

See CONTRIBUTING.md in the MDP repo for the full naming / keyword / topic convention.

License

Apache-2.0. Part of the MDP monorepo.