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

codex-plan

v0.1.4

Published

A small CLI that exposes the `codex-plan` command with `opencode` to open projects in VS Code.

Downloads

37

Readme

codex-plan

A tiny CLI that exposes the codex-plan command with a simple opencode subcommand to open a folder in Visual Studio Code.

Install (local testing)

  1. Clone or copy this repository to your machine.
  2. From the project root run:
npm install -g .

You can now run:

codex-plan opencode [path]

Examples:

# Open current directory in VS Code
codex-plan opencode

# Open a specific folder
codex-plan opencode ~/projects/my-repo

If path is omitted the current working directory is opened.

Install from npm (when published)

# Install globally
npm install -g codex-plan

# Or run without installing globally
npx codex-plan opencode [path]

Install via OCX

If you or your users use OCX, OCX can install npm packages as components. After publishing to npm, OCX users can add this package directly from the npm registry:

# Install the package into the current project via OCX
ocx add npm:codex-plan

# Or install a specific published version
ocx add npm:[email protected]

Notes:

  • ocx add npm:<pkg> installs the package into the project's .opencode/ area as a component/plugin. If you want the global CLI available on the PATH, install via npm install -g codex-plan instead.
  • After OCX installs the package you can still run the codex-plan command (if installed globally) or invoke it via npx. OCX is primarily useful when you want to include the functionality as a project-scoped OpenCode component.

Example: run the OCX-installed component in your project

After ocx add npm:codex-plan the package files are placed under your project's .opencode/ directory. You can invoke the CLI from the project in a couple of ways:

  1. Add a small npm script that calls the installed binary (adjust the path if OCX placed the package in a different subfolder):
// package.json
{
  "scripts": {
    "opencode": "node .opencode/codex-plan/bin/codex-plan.js opencode"
  }
}

Then run:

npm run opencode -- [path]
  1. Or inspect .opencode/ to find the package directory and run the binary directly:
node .opencode/codex-plan/bin/codex-plan.js opencode ~/projects/my-repo

Note: OCX's install layout may vary by registry and component. If you don't find the package under .opencode/codex-plan, list the .opencode/ contents to locate it and update the path accordingly.

Publishing (how I prepared the package)

  1. Ensure package.json has a unique package name. If codex-plan is already taken on npm you may want to use a scoped name like @your-username/codex-plan.
  2. Login to npm: npm login.
  3. Publish a public package: npm publish --access public (for scoped packages use --access public).

Creating the GitHub repository

  1. Create a new public repository on GitHub (e.g. codex-plan).
  2. Push this code and create a lightweight tag for releases:
git init
git add .
git commit -m "chore: initial codex-plan CLI"
git remote add origin [email protected]:YOUR_USERNAME/codex-plan.git
git branch -M main
git push -u origin main

Notes

  • This CLI is intentionally small and uses the VS Code command-line tool code to open folders. If you need support for other editors or more subcommands I can extend it.
  • I did not create the remote repository or publish to npm because I need your credentials or explicit approval to push/publish.

If you want I can:

  1. Initialize a git repository here and create the initial commit (I will not push to GitHub without your confirmation).
  2. Create the repository on GitHub and push the code if you provide access (or if you authorize me to use your gh authentication on this machine).
  3. Publish the package to npm if you provide npm credentials or want me to guide you through it.

Tell me which of the above you'd like me to do next.