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

v0.2.2

Published

Scaffold a publishable web-component-base (wcb) custom element with custom-elements.json generation already set up

Readme

create-wcb

[!Note] Work in progress CLI for wcb development. Currently, it scaffolds a new web component project with our CEM Analyzer Plugin already configured

Scaffold a publishable web-component-base (wcb) custom element:

npm create wcb@latest
# or: npm create wcb@latest my-button
# or: pnpm create wcb / yarn create wcb / bun create wcb

What you get

  • A custom element built on wcb's static props convention, written in TypeScript — the class, tag, and file names are stamped from your project name (my-buttonMyButton / <my-button>), so there are no rename-me TODOs
  • A Vite setup patterned on the ayo-run/web-component template: npm run dev serves the demo page, npm run build:lib produces ESM + UMD bundles and .d.ts types in dist/, with web-component-base external as a peerDependency
  • custom-elements.json generation set up end to end:
    • custom-elements-manifest.config.mjs configured with web-component-base/cem-plugin, so every static props key becomes a typed attribute + field in the manifest
    • an analyze script (npm run analyze) running @custom-elements-manifest/analyzer
    • the customElements field set in package.json, which is how Storybook, editors, and other tooling discover the manifest
    • the manifest ships inside the published package: prepack rebuilds dist/ and regenerates custom-elements.json, and both are in files

The manifest is one shared custom-elements.json per package — the file every tool expects — regenerated on demand and gitignored in the repo.

Options

npm create wcb@latest [directory]

Prompts for a directory when omitted; . scaffolds into the current (empty) directory. Refuses to write into a non-empty directory. A hyphen-less name gets an -element suffix on the tag (button<button-element>), since custom element tag names require a hyphen.

Prefer starting from GitHub instead of the terminal? The ayo-run/web-component template repository serves the same purpose via "Use this template".


Part of the wcb project · MIT · Ayo Ayco