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

claw-plugin-init

v0.1.9

Published

Scaffold OpenClaw Plugin projects with one command

Downloads

445

Readme

claw-plugin-init

Scaffold OpenClaw plugin projects with one command.

npx claw-plugin-init my-plugin

Then follow the prompts — you'll have a working plugin in seconds.


Usage

Interactive

# npm
npx claw-plugin-init my-plugin

# pnpm
pnpm create claw-plugin-init

# yarn
yarn create claw-plugin-init

Non-interactive (CLI flags)

npx claw-plugin-init my-plugin --type tool-plugin --no-install

Skip all prompts

npx claw-plugin-init my-plugin --yes

Scaffold in current directory

npx claw-plugin-init . --force

Preview only (dry run)

npx claw-plugin-init my-plugin --dry-run

CLI Options

| Flag | Description | |------|-------------| | --type, -t | Plugin type: tool-plugin (default), channel-plugin, provider-plugin, mcp-server | | --force, -f | Overwrite existing directory | | --yes, -y | Skip all prompts, accept defaults | | --no-install | Skip dependency installation | | --git / --no-git | Initialize (or skip) a Git repository | | --dry-run | Preview actions without executing | | --help, -h | Show help |


Prompts

| Prompt | Description | Default | |--------|-------------|---------| | Plugin type | Select plugin type | tool-plugin | | Project name | npm package name | interactive | | Display name | Human-readable name | package name | | Description | Short description of your plugin | An OpenClaw plugin |


Templates

| Template | Status | |----------|--------| | tool-plugin | ✅ Available | | channel-plugin | ✅ Available | | provider-plugin | ✅ Available | | mcp-server | ✅ Available |


What You Get

Tool Plugin

Register a tool callable by AI.

my-plugin/
├── src/
│   └── index.ts          # Plugin entry point (register tools)
├── openclaw.plugin.json  # Plugin manifest
├── package.json          # Dependencies & scripts
├── tsconfig.json         # TypeScript config
└── README.md             # Plugin docs

Channel Plugin

Connect a messaging platform such as Discord, Telegram, or WeChat.

my-channel/
├── src/
│   └── index.ts          # Channel plugin entry point
├── openclaw.plugin.json  # Plugin manifest
├── package.json          # Dependencies & scripts
├── tsconfig.json         # TypeScript config
└── README.md             # Plugin docs

Provider Plugin

Integrate a model provider with API-key authentication and a starter model catalog.

my-provider/
├── src/
│   └── index.ts          # Provider definition and model catalog
├── openclaw.plugin.json  # Provider setup and auth manifest
├── package.json          # Dependencies & scripts
├── tsconfig.json         # TypeScript config
└── README.md             # Provider configuration guide

The generated environment variable is portable across shells. For a project named my-provider, it is:

export MY_PROVIDER_API_KEY=your-api-key

Before publishing, update the generated baseUrl, protocol adapter, and model catalog in src/index.ts.

MCP Server

Create a standalone MCP protocol service.

my-server/
├── src/
│   └── index.ts          # MCP server entry point (stdio transport)
├── openclaw.plugin.json  # Plugin manifest
├── package.json          # Dependencies & scripts
├── tsconfig.json         # TypeScript config
└── README.md             # Server docs

After Scaffolding

cd my-plugin
npm install        # Installed automatically unless --no-install is used
npm run lint       # Type-check the generated project
npm run build      # Build the generated project

Then depending on your plugin type:

  • Tool plugin — register or publish it:

    openclaw plugins install ./dist
    # or
    clawhub package publish
  • Channel plugin — register the channel:

    openclaw plugins install ./dist
    # Then configure the channel via openclaw config
  • Provider plugin — configure credentials and register it:

    export MY_PROVIDER_API_KEY=your-api-key
    openclaw plugins install ./dist
  • MCP server — start the server on stdio:

    npm start

    Then connect an MCP client by pointing it to the generated server entry point.


Compatibility

  • Node.js 22+
  • npm, pnpm, or yarn
  • The scaffold targets the current OpenClaw and plugin SDK versions available from npm.
  • When registry lookup is unavailable, a tested fallback version is used.
  • If an older local OpenClaw CLI is detected, the command prints an upgrade warning.

License

MIT