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

@liqngliz/tokenflow

v1.0.2

Published

Live token spend dashboard and LLM gateway. Point Claude Code or Codex at it and watch what every call costs.

Readme

TokenFlow

Track token spend across any AI agent, ships pre-configured with Claude Code, Codex and Local LLM routes. Single command install.

Problem

I use AI daily and have no idea where my tokens are going and what the AI agent is doing under the hood. I built TokenFlow to answer the question:

"What is all my routed AI traffic doing, how is it allocating my tokens, what is being sent with my prompts and why is this turn consuming so many tokens?"

See where your tokens go in realtime

Dashboard at http://localhost:5050. Live feed as calls land, per-session totals, date range, and prompt detail with the wire body behind it.

Where tokens went

Token flow

Spend patterns

Insights

Prompt and wire log

Prompt detail

Prompt and wire logs allow us to see what was exactly sent to Anthropic, OpenAI, or any other provider not just what the harness logs in your session logs.

Totals per agent

Usage metrics

Install

One command. Needs Node, nothing else. First run fetches the runtime (~46 MB) into ~/.tokenflow.

npx @liqngliz/tokenflow

Leave that terminal open, it runs there. CTRL-C to shut down.

Open http://localhost:5050 in browser to see dasboard.

http://localhost:5050/info gives info on where to point Claude, Codex or local llm.

Point agent to TokenFlow

Three routes shipped /llm/claude, /llm/codex, and /llm/local

All three routes have been exercised against live traffic. claude and codex through their VS Code extensions, local through Cline.

Claude Code Config, one repo

File: <repo>/.claude/settings.local.json

Create a .claude folder in your repository root. Add settings.local.json inside it.

{
  "env": {
    "ANTHROPIC_BASE_URL": "http://localhost:5050/llm/claude"
  }
}

Windows Explorer refuses a folder name starting with a dot. Type .claude. with a trailing dot and it saves as .claude, or run mkdir .claude in the terminal.

Claude Code Config, every repo

File: ~/.claude/settings.json

On Windows that is C:\Users\<you>\.claude\settings.json.

Create a .claude folder in your home directory. Add settings.json inside it.

{
  "env": {
    "ANTHROPIC_BASE_URL": "http://localhost:5050/llm/claude"
  }
}

Windows note: type .claude. with a trailing dot in Explorer, or mkdir .claude in the terminal.

If a repo also has its own settings.local.json, that one wins.

Restart Claude Code after editing.

Codex (VS Code extension) Config

File: ~/.codex/config.toml

On Windows that is C:\Users\<you>\.codex\config.toml.

Codex creates .codex when you sign in, so the folder is already there. Add config.toml to it, or edit the one you have.

model_provider = "conduit"

[model_providers.conduit]
name     = "ConduitSharp"
base_url = "http://localhost:5050/llm/codex/backend-api/codex"
wire_api = "responses"

Restart the extension after editing.

Cline (VS Code extension) + LM Studio Config

In LM Studio, start the local server on port 1234.

Cline: API Provider -> LM Studio, tick Use custom base URL:

http://localhost:5050/llm/local/v1

How it works

TokenFlow is built upon ConduitSharp, an API gateway with realtime body capture capabilities.

All requests are streamed through the gateway. Token and prompt metrics are captured in the stream and passed in realtime to the dashboard to build metrics.

Privacy

The gateway runs locally on your device and all logged data stays local. The dashboard is served on localhost, no data from token flow is sent anywhere.

License

Apache-2.0, same as ConduitSharp. Copyright © 2026 liqngliz.

Advanced configurations

ADVANCED.md: Docker and .NET SDK installs, log location, ports, your own routes, known limits.