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

@ippei523/token-usage-face

v0.2.0

Published

A terminal character that watches local AI activity and changes expression from usage pressure.

Downloads

206

Readme

token-face

token-face is a CLI application that watches local AI usage activity and turns it into a terminal character whose status and facial expression change with usage pressure.

The code is split by responsibility: CLI entrypoint, provider adapters, status calculation, rendering, diagnostics, notifications, and JSON serving are separated so new providers can be added without rewriting the UI.

It reads local Codex state from ~/.codex by default, so after installation anyone can run it on their own machine without editing the source.

Install

npm install -g @ippei523/token-usage-face

Or from a local directory:

npm install -g .

After install, run:

token-face

Usage

token-face
token-face status
token-face watch
token-face json
token-face help
token-face status --provider codex
token-face status --provider claude
token-face doctor
token-face notify
token-face serve --port 4311
token-face watch --theme robot --notify-at 70,85,100

token-face without arguments stays resident and refreshes the expression view every 5 seconds.

Optional environment variables

CODEX_HOME : Override the Codex data directory. Default is ~/.codex.

TOKEN_FACE_DAILY_TOKEN_LIMIT : Optional daily token cap. Used for rate and limit.

TOKEN_FACE_USD_PER_1M_TOKENS : Optional flat token price used only for estimated cost.

TOKEN_FACE_DAILY_BUDGET_USD : Optional daily budget. If set together with TOKEN_FACE_USD_PER_1M_TOKENS, the pet reacts more strongly to overspending.

TOKEN_FACE_PROVIDER : Optional default provider. Supported values are auto, codex, and claude.

TOKEN_FACE_THEME : Theme name for the character. Supported values are default, wa, office, shojo, and robot.

TOKEN_FACE_NOTIFY_AT : Comma-separated notify thresholds, for example 70,90,100.

TOKEN_FACE_PORT : Default port for serve and daemon.

Notes

  • The app uses local Codex session data and requires the sqlite3 command to be available in your environment.
  • If actual billing data is not available locally, the pet falls back to token pressure and activity density.
  • claude is scaffolded as a provider adapter, but its local usage parsing still needs to be implemented against your actual Claude data files.
  • doctor checks local prerequisites and provider detection.
  • serve and daemon expose the current snapshot at /snapshot for future menu bar or GUI clients.