Loading repository data…
Loading repository data…
rishabhk571 / repository
An advanced, multi-sensor MV3 Chrome extension for real-time token tracking and state reconciliation on Google Gemini.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A multi-sensor token accounting system and state reconciliation engine for gemini.google.com.
Unlike basic counters, this extension fuses multiple imperfect signals (DOM scraping, upload interception, and server metadata) into one stable output, designed to survive Gemini's rapid SPA churn and DOM instability.
The system operates as an aircraft using barometric, radar, and inertial estimates together. If one sensor drifts, the system survives by fusing sources via a priority ladder.
background.js): Inspects network requests for upload detection and exact usage metadata via stream parsing.content.js): Manages DOM scraping, SPA lifecycle transitions, plan-tier detection, and state reconciliation.tokenizer.js): Dual-mode engine supporting heuristic natural language/code estimation and a definitive API-backed countTokens mode.canvas-bridge.js): Safely extracts Monaco internal models when Gemini's code-immersive panels are active..docx extraction (via Mammoth), image dimension estimation, and text file parsing directly in the browser.chrome://extensions/.gemini.google.com to see the tracker initialize.By default, token counting is done locally via heuristics. If API Mode is enabled in the extension settings, prompt text will be transmitted to the Google Generative Language API for exact token calculation.