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

claude-plugin-to-codex

v0.1.1

Published

Convert a Claude Code plugin into a native OpenAI Codex plugin: manifest translation, marketplace registration, and ${CLAUDE_SKILL_DIR} anchor rewriting. Plugin-level, not just skill-copying.

Readme

claude-plugin-to-codex

Convert a Claude Code plugin into a native OpenAI Codex plugin - not just copy its skills.

Codex adopted the open SKILL.md standard, so standalone skills mostly carry over on their own. But a real plugin (a .claude-plugin/plugin.json with shared scripts/, a marketplace, internal helper skills) does not - and the existing community tools stop at copying loose skill files. This tool does the plugin-level work that nothing else does:

  • translates .claude-plugin/plugin.json → Codex .codex-plugin/plugin.json (with the required interface / defaultPrompt block, dropping the unsupported hooks field)
  • registers the plugin in your Codex personal marketplace (~/.agents/plugins/marketplace.json) and runs codex plugin add
  • rewrites the bundled-shared-scripts anchor ${CLAUDE_SKILL_DIR}/../../scripts/… to an absolute path - Codex runs skill commands with cwd = your project and exposes no skill/plugin-dir env var, so a relative anchor cannot work
  • CLAUDE.mdAGENTS.md
  • normalizes SKILL.md frontmatter for Codex's strict YAML parser (e.g. an unquoted description: containing ": ", which Codex rejects but Claude Code tolerates)
  • strips the non-spec user-invocable: field; keeps _-prefixed internal skill names (Codex's loader tolerates them)

Usage

# point it at a downloaded/cloned Claude Code plugin (a dir with .claude-plugin/plugin.json)
npx claude-plugin-to-codex --source /path/to/the/plugin

# or, from a clone of this repo:
node bin/claude-plugin-to-codex.mjs --source /path/to/the/plugin

Then start a new Codex thread so it picks up the plugin's skills and MCP servers.

Flags

| Flag | Effect | |---|---| | --source <dir> | the Claude Code plugin root (default: cwd if it has .claude-plugin/) | | --dry-run | preview, no writes, no install | | --no-install | build + register, but skip codex plugin add | | --no-validate | skip the official validate_plugin.py check | | --default-prompt <s> | a starter prompt for the Codex UI (repeatable, max 3 used) | | --category <c> | plugin category (default: Engineering) | | --plugins-dir <dir> | where to build (default: ~/plugins) | | --help | full help |

How it works

It builds the Codex plugin at ~/plugins/<name>/, upserts an entry in the personal marketplace, validates it, and installs it. Each run stamps a version cachebuster so re-running is an idempotent rebuild + reinstall - handy while iterating on the source plugin.

Limitations

  • Shell-heavy plugins: run Codex with trusted / full access, or its sandbox may block the plugin's commands.
  • The generated Codex build bakes absolute paths for your machine, so it is produced locally per machine and is not a committable artifact - which is exactly why this conversion must run on each user's machine rather than ship prebuilt.
  • The Codex ecosystem moves fast; OpenAI could ship a first-party plugin importer that supersedes this.

License

MIT © 2026 Flavien Chervet