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

m0squared-indicator

v1.0.4

Published

M0² — Universal AI Agent Token Usage HUD for Claude Code, Codex CLI & Gemini CLI

Readme

M0² — M-zero-Squared

Real-time token usage indicator for AI coding agents


npm npm downloads license made with love built by a Claude Code lover


What is M0²?

M0² is a live HUD that sits inside your AI coding agent and shows you exactly how much of your token quota you've consumed — in real time, right where you work.

No more getting cut off mid-task. No more opening dashboards. No more guessing.

Start full. Watch it drain. Know when to stop.


Supported Agents

| Agent | Status | Integration | |---|---|---| | Claude Code | ✅ Full support | Native statusLine hook — live in the status bar | | Codex CLI | ✅ Supported | PostToolUse hook — tracks every response | | Gemini CLI | ✅ Supported | AfterTool hook — tracks every response |

More agents coming. PRs welcome.


Install

Pick your method — they all do the same thing.

npx (recommended — no install needed)

npx m0squared-indicator install

npm

npm install -g m0squared-indicator
m0squared-indicator install

pip

pip install m0squared-indicator
m0squared-indicator install

curl (Linux / macOS)

curl -sSL https://raw.githubusercontent.com/m0squared/m0s-indicator/main/scripts/install.sh | bash

PowerShell (Windows)

irm https://raw.githubusercontent.com/m0squared/m0s-indicator/main/scripts/install.ps1 | iex

How it works

M0² auto-detects which AI agents are installed on your machine and patches their config files silently. After a restart, the HUD appears automatically.


Usage


Configuration

After install, a config file is created at ~/.m0squared/config.json:

| Key | Values | Description | |---|---|---| | plan | auto pro max payg free | Override plan auto-detection | | bar_width | number | Width of the progress bar (default: 20) | | *.session_token_limit | number | Token limit for Codex / Gemini sessions |

Auto-detection: Claude Code Pro/Max is detected automatically via the rate_limits field. Set "plan": "max" manually if you're on Max.


Uninstall

npx m0squared-indicator uninstall

This removes all hooks from your agent configs and deletes ~/.m0squared/.


Why M0²?

Built out of pure love for Claude Code — and frustration with hitting token limits mid-session without any warning.

M0² was born from a simple idea: your tools should tell you when you're running out of fuel.

Built by a Claude Code lover, with Claude Code.
— haddad med / morius


License

MIT © 2026 morius (M-zero-Squared / haddad med)

See LICENSE for full terms.


Made with ❤️ by haddad med · github.com/m0squared

If M0² saved your session — give it a ⭐