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-wp-ai-plugin

v0.1.0

Published

Scaffold a new WordPress plugin from wp-agentic-kit, configured for agentic engineering with Claude Code. Run via `npm create wp-ai-plugin <target>`.

Readme

create-wp-ai-plugin

Interactive scaffolder for wp-agentic-kit. Fetches the kit at the requested git ref and replaces the example plugin identity with values you choose.

Usage

npm create wp-ai-plugin my-cool-plugin
# or
npx create-wp-ai-plugin my-cool-plugin

You'll be prompted for:

  • Plugin name — free text, e.g. My Cool Plugin
  • Vendor prefix — optional, e.g. pl, acme
  • One-sentence description — optional, fills the placeholder in CLAUDE.md / AGENTS.md
  • Author — optional, fills the Author: line
  • Minimum WordPress version — pick from 6.6 / 6.7 / 6.8 / 7.0
  • Minimum PHP version — pick from 8.0 / 8.1 / 8.2 / 8.3 / 8.4

The CLI derives the slug, namespace, and constant/function prefixes from your inputs, then substitutes every occurrence across the kit's files.

Pinning a release

npm create wp-ai-plugin my-cool-plugin -- --ref v0.2.0

Any branch, tag, or commit SHA on the upstream repo works.

Requirements

  • Node.js 18+ and npm
  • PHP 8.0+ and composer
  • git on $PATH (used to initialise a fresh repo with a scaffold tag on the initial commit)

Missing composer or npm doesn't abort the scaffold — the corresponding install step is skipped and surfaced in the final summary so you can run it manually.

What it does

  1. Fetches the repo tarball from codeload.github.com at the requested ref.
  2. Removes kit-only artifacts (cli/, docs/, .github/).
  3. Substitutes:
    • pl-example → your slug
    • PLExample → your namespace
    • PL_EXAMPLE_* → your constant prefix
    • pl_example_* → your function prefix
    • Example Plugin → your plugin name
    • **WordPress:** 6.7+ and minimum_supported_wp_version → your WP version
    • **PHP:** 8.2+, composer.json#require.php, and testVersion → your PHP version
    • placeholder description / author sentences if you supply them
  4. Strips kit-meta HTML comments from CLAUDE.md and AGENTS.md.
  5. Runs composer install and npm install foregrounded with a spinner. Each step's full output is captured to /tmp/setup-<step>-<slug>.log and only surfaced on failure.
  6. Runs three foreground indexing / sync steps with spinners (also logged to /tmp/setup-<step>-<slug>.log):
    • Clones WordPress/agent-skills (trunk) into .claude/skills/, preserving any skill dir already present in the scaffold.
    • wp-devdocs-mcp indexes fresh WP 7.0 sources (wp-ai-client, abilities-api).
    • wp-blockmarkup-mcp indexes Gutenberg core blocks.
  7. Initialises a fresh git repo and tags the initial commit scaffold so git reset --hard scaffold has a stable anchor.

License

MIT