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

@tickrmeter/ai-usage

v0.1.3

Published

Privacy-preserving TickrMeter personal AI usage bridge

Readme

TickrMeter AI Usage CLI

Privacy-preserving personal subscription monitoring for Codex / ChatGPT and Claude Code.

Customer flow

  1. Open AI Usage in TickrMeter and choose Connect personal usage.

  2. Copy the one-time command shown by TickrMeter.

  3. Run it on the computer where Codex or Claude Code is installed:

    npx @tickrmeter/ai-usage connect ABCD-927F
  4. The helper detects the Codex desktop app, Codex CLI, and Claude Code, uploads normalized limit metadata, and installs a user-scoped five-minute sync using Task Scheduler, launchd, or a systemd user timer (cron fallback).

The initial npx command installs a fixed copy under ~/.tickrmeter-ai/app. Scheduled runs invoke that fixed version, never npx ...@latest. On Windows, a standard per-user Startup entry starts the installed Node CLI once at sign-in. The CLI launches one background agent that performs the five-minute sync without recurring console windows. The helper does not install or execute hidden VBS, WScript, or PowerShell wrappers.

Commands

tickrmeter-ai connect <pairing-code> [--server URL]
tickrmeter-ai sync
tickrmeter-ai status
tickrmeter-ai doctor
tickrmeter-ai disconnect

For an unpublished local build:

cd tickrmeter-ai-usage
npm install
npm run build
node dist/cli.js connect ABCD-927F --server https://develop.tickrmeter.io

TICKRMETER_API_URL may be used instead of --server. The production default is https://api.tickrmeter.io.

Codex

Codex must already be installed and signed in. On Windows, the helper automatically uses the signed-in Codex desktop app when available and falls back to an installed Codex CLI. It starts codex app-server, performs the JSON-RPC initialization handshake, calls account/read with token refresh disabled, calls account/rateLimits/read, and optionally calls account/usage/read. It terminates the child process after each sync.

The helper does not read ~/.codex/auth.json, browser cookies, OAuth tokens, or private ChatGPT endpoints. If setup is incomplete, tickrmeter-ai doctor directs the user to codex login; it never asks for a token.

Claude Code

Claude Code 2.1.80 or newer is required. Claude supplies structured rate_limits.five_hour and rate_limits.seven_day values to its configured status-line command. TickrMeter stores only those percentages, reset timestamps, and capturedAt in ~/.tickrmeter-ai/claude-usage.json.

If a status line already exists, its complete configuration is backed up locally and wrapped. The same input is passed to the existing command and its stdout/stderr are preserved. Disconnect restores the exact prior statusLine value. Prompts, conversations, transcript paths, project paths, cookies, and OAuth credentials are neither stored nor uploaded.

Claude data older than 60 minutes is marked stale. The helper does not send dummy prompts to refresh usage.

Local files

Files live under ~/.tickrmeter-ai/ with restrictive permissions where supported:

config.json            TickrMeter bridge ID/token and server
state.json             scheduler and reversible Claude wrapper state
claude-usage.json      normalized Claude rate-limit snapshot only
app/                   fixed installed CLI version

The bridge token is scoped to AI usage upload/status/disconnect. It is not a TickrMeter user session and cannot access provider credentials.

API usage

OpenAI and Anthropic organization API monitoring does not run in this CLI. Admin keys are entered directly in TickrMeter, encrypted by the backend, and used only for official provider usage/cost APIs. They are never returned to this helper.