whatisgithub

What is token-meter-dist?

ghostreindeer09/token-meter-dist — explained in plain English

Analysis updated 2026-05-18

0JavaScriptAudience · generalComplexity · 2/5Setup · moderate

In one sentence

A Chrome extension that shows a live token count while typing into ChatGPT, Claude, or Gemini, plus free tools to trim or rewrite a prompt.

Mindmap

mindmap
  root((token meter))
    What it does
      Live token count
      Prompt trimming
    Tech stack
      JavaScript
      Chrome extension
    Use cases
      Check token usage
      Trim filler text
      Estimate messages left
    Audience
      Chat AI users
    Sites supported
      ChatGPT
      Claude
      Gemini

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

See how many tokens a draft message will use before sending it to an AI chat site.

USE CASE 2

Trim filler wording from a prompt automatically for free before sending it.

USE CASE 3

Estimate how many more messages fit in a ChatGPT or Gemini conversation before the limit is hit.

What is it built with?

JavaScriptChrome ExtensionManifest V3

How does it compare?

ghostreindeer09/token-meter-distabhay-pratapsingh-ctrl/chaptrabhishek-akkal/finova
Stars000
LanguageJavaScriptJavaScriptJavaScript
Setup difficultymoderatehardeasy
Complexity2/55/51/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Optional AI rewrite feature requires entering your own Anthropic API key.

So what is it?

Token Meter is a Chrome browser extension that shows you, in real time, how many tokens your message will use as you type into ChatGPT, Claude, or Gemini. A token is the small chunk of text that these AI systems actually count against their limits, and this tool gives people a live view of that count directly inside the chat box, along with a free way to trim unnecessary wording from a prompt before sending it. There is also an optional feature that rewrites your prompt using AI to shorten it further, which requires entering your own Anthropic API key. Once installed as an unpacked extension in Chrome's developer mode, a small badge appears in the corner of the chat box on each supported site. Clicking it opens a panel showing the tokens in your current draft, the tokens already used across the whole visible conversation, an assumed limit for that site, and how many tokens remain. For ChatGPT and Gemini specifically, it also estimates roughly how many more back and forth exchanges could fit before hitting that limit, based on the average size of previous messages in the conversation. This particular countdown is intentionally left out for Claude, because the extension's assumed limit is about the size of a single conversation, while what actually matters for Claude users day to day is a separate quota tied to their plan, and showing an unrelated number next to it would be confusing rather than helpful. Counting is exact for ChatGPT using the same tokenizer OpenAI publishes, while Claude and Gemini use an estimate built from character and word counts, since neither company publishes their tokenizer. The free trimming feature works entirely offline using simple rules like collapsing extra whitespace and removing filler phrases, with no data sent anywhere unless the optional AI rewrite feature is used.

Copy-paste prompts

Prompt 1
Load this Chrome extension unpacked and confirm the token badge appears on chatgpt.com.
Prompt 2
Explain how this extension estimates messages left for ChatGPT and Gemini but not for Claude.
Prompt 3
Show me how the free prompt trimming rules in optimizer.js work.
Prompt 4
Walk me through rebuilding the tokenizer bundle in this repo after editing tokenizer.entry.js.

Frequently asked questions

What is token-meter-dist?

A Chrome extension that shows a live token count while typing into ChatGPT, Claude, or Gemini, plus free tools to trim or rewrite a prompt.

What language is token-meter-dist written in?

Mainly JavaScript. The stack also includes JavaScript, Chrome Extension, Manifest V3.

How hard is token-meter-dist to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is token-meter-dist for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.