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-limit-bar

v1.0.0

Published

A lightweight native macOS menu bar utility for local Codex usage limits.

Readme

Codex Limit Bar

A small native macOS menu bar utility that shows the latest Codex usage limits recorded by the local Codex app.

macOS 13+ Swift 6 License MIT

Features

  • Displays remaining usage for the five-hour and seven-day windows.
  • Shows the local reset time for each window.
  • Refreshes once per minute with a 10-second timer leeway.
  • Refreshes after the Mac wakes from sleep.
  • Stores the last known snapshot for offline display.
  • Supports launch at login through SMAppService.
  • Uses a compact native AppKit status item.
  • Does not read, store, or transmit Codex credentials.

How it works

Codex writes structured rate_limits events to JSONL session files under:

~/.codex/sessions
~/.codex/archived_sessions

Codex Limit Bar checks only recently modified JSONL files and reads at most the last 4 MB of each candidate. All processing happens locally.

The displayed value is the latest snapshot written by Codex. If Codex has not produced a recent event, the app marks the value as saved rather than live.

Requirements

  • macOS 13 Ventura or newer
  • A local Codex installation that writes session events to ~/.codex
  • Xcode 16 or newer to build from source

Build from source

  1. Clone the repository.
  2. Open CodexLimitBar.xcodeproj in Xcode.
  3. Select your development team under Signing & Capabilities if you want a signed local build.
  4. Run the CodexLimitBar scheme.

Command-line build without code signing:

xcodebuild \
  -project CodexLimitBar.xcodeproj \
  -scheme CodexLimitBar \
  -configuration Release \
  -derivedDataPath .build/DerivedData \
  CODE_SIGNING_ALLOWED=NO \
  build

Run tests:

xcodebuild \
  -project CodexLimitBar.xcodeproj \
  -scheme CodexLimitBar \
  -configuration Debug \
  -derivedDataPath .build/DerivedData \
  CODE_SIGNING_ALLOWED=NO \
  test

The source package is also mirrored on npm:

npm pack codex-limit-bar

The npm package contains the Xcode source project; it is not a Node.js runtime or a prebuilt macOS application.

Privacy

The app has no networking code and does not access Codex authentication files or the macOS Keychain. See SECURITY.md for reporting security issues.

Limitations

  • Codex's local session format is not a guaranteed public API and may change.
  • Values update after Codex writes a new rate-limit event.
  • The app intentionally runs without App Sandbox so it can read ~/.codex automatically.

Contributing

Contributions are welcome. Read CONTRIBUTING.md before opening a pull request.

License

MIT © 2026 Sergey Kosten. See LICENSE.