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

cxreset

v0.1.1

Published

Display OpenAI Codex usage reset time for statusline

Readme

cxreset

日本語版 README

A CLI tool to display OpenAI Codex usage reset time. Ideal for statusline display. Can also be used as a display component for ccstatusline.

cxreset output highlighted in red — works great with ccstatusline

Red circle: cxreset in action. Used alongside the awesome ccstatusline

Installation

# Recommended: run without global install
bunx cxreset

# or with npx
npx cxreset

# or with pnpm
pnpm dlx cxreset

Optional: Global install

bun add -g cxreset
# or
npm install -g cxreset

Usage

Package execution

bunx cxreset
# or
npx cxreset
# or
pnpm dlx cxreset

Local execution (from source)

npm install
npm run build
node dist/index.js

Output

Codex: 5h:2h30m(5%) | 7d:3d12h(11%)

| Field | Description | |-------|-------------| | Codex: | Prefix (distinguishes from ccreset) | | 5h: | 5-hour reset window | | 2h30m | Time remaining until reset | | (5%) | Current usage | | 7d: | 7-day (weekly) reset window | | 3d12h | Time remaining until reset | | (11%) | Current usage |

When the secondary window is not available, only the 5-hour window is shown:

Codex: 5h:2h30m(5%)

Claude Code Statusline

Add the following to ~/.claude/settings.json.

Bun runtime

{
  "statusLine": {
    "type": "command",
    "command": "bunx cxreset"
  }
}

Node.js-only runtime

{
  "statusLine": {
    "type": "command",
    "command": "npx cxreset"
  }
}

With ccstatusline

When using cxreset as a ccstatusline addon, it is recommended to set the timeout to 2000ms. cxreset communicates with the Codex app-server via JSON-RPC, which may take longer than typical HTTP requests.

Requirements

  • Node.js 18+ or Bun runtime
  • Codex CLI installed and authenticated

How it works

Launches the Codex CLI's app-server and communicates via JSON-RPC to fetch usage information.

npm Auto Publish (GitHub Actions)

This repo includes CI (.github/workflows/npm-publish.yml) that automatically publishes to npm when you push a tag like v1.2.3.

Prerequisites:

  1. Add a Trusted Publisher in your npm package settings
  2. Select GitHub Actions as the provider and bind this repository and workflow (.github/workflows/npm-publish.yml)
  3. No NPM_TOKEN GitHub secret is required

Release flow:

# Example: release 0.1.0
npm version 0.1.0
git push origin main --follow-tags

If the Git tag (for example v0.1.0) and package.json version do not match, the workflow fails and does not publish.

License

MIT

GitHub Pages

The landing page (docs/) is deployed by .github/workflows/pages.yml. In GitHub Settings > Pages, set Source to GitHub Actions.