Skip to content
TokenFlow

TokenFlow

Eco-Friendly Prompts, Powerful Results

Created on 29th June 2025

•

TokenFlow

TokenFlow

Eco-Friendly Prompts, Powerful Results

The problem TokenFlow solves

TokenFlow

TokenFlow is a Chrome extension that helps you write cleaner, more efficient prompts. It uses NLP to optimize your entire prompt—eliminating filler and redundancy while enhancing clarity before sending it to any LLM like ChatGPT, Claude, or Gemini.

TokenFlow reduces token count in your prompts to cut down energy usage and carbon emissions—placing sustainability at the core of every AI interaction, with the added benefit of faster, more efficient responses


Key Features

  • Automatically rewrites prompts in your browser before sending them to an LLM
  • Eliminates superfluous words while preserving intent, clarity, and meaning.
  • Leverage with natural language Processing winkNLP and shallow semantic heuristics for context-aware prompt compression and optimization
  • Helps reduce token count, improving speed and lowering Token usage
  • Mask all sensitive data (e.g., environment variables, API keys) with ‘*’ — never expose them to ChatGPT or in shared outputs.
  • Tracks token savings and estimates environmental impact
  • After each prompt is sent, user will instantly see how many tokens were saved through optimization. These savings aren’t just technical—they represent user's contribution to a more sustainable future.
  • Preserves privacy with 100% client-side processing
  • Provides a dedicated dashboard where users can track their environmental impact—showing cumulative tokens saved, energy conserved, and CO₂ emissions reduced

Why It Matters

Every prompt you send to an AI consumes electricity, often requires water for data center cooling, and contributes to carbon emissions. Longer prompts increase that impact.

TokenFlow helps reduce:

  • Server compute demand
  • Electricity consumption
  • Water use and carbon emissions

Making your prompts more efficient helps make AI more sustainable.


Use Cases

  • TokenFlow empowers users to reduce their environmental footprint by optimizing prompts before they’re sent to LLMs. This directly lowers compute requirements, electricity consumption, and carbon emissions—making everyday AI usage more sustainable.
  • All prompt processing happens entirely in-browser with no API calls or server dependencies. This makes TokenFlow ideal for users who prioritize data privacy, such as developers, journalists, or legal researchers working with sensitive content.
  • TokenFlow works directly on popular platforms like ChatGPT, Claude, and Gemini without altering their native interfaces. It enhances the user experience by improving prompt clarity and reducing token usage—all without requiring any changes to user workflow.
  • Users get immediate feedback on how many tokens they’ve saved after each prompt. These savings are translated into estimated reductions in electricity use, water consumption, and CO₂ output—encouraging sustainable habits through visible impact.
  • The dashboard makes TokenFlow useful in academic or organizational settings, where institutions can measure cumulative environmental savings and raise awareness about responsible AI usage.

How It Works

  1. Prompt Detection:
    TokenFlow monitors popular AI platforms like ChatGPT, Claude, and Gemini to detect when a user inputs a prompt—without interfering with the site’s original interface.

2.Local Prompt Optimization with winkNLP:
Before the prompt is submitted, it’s processed entirely within the browser using winkNLP. The engine applies shallow semantic heuristics to identify and remove filler words, redundant phrases, and unnecessary constructs—while preserving the original intent and meaning.

3.Token Count Comparison:
The tool calculates how many tokens were present in the original prompt vs. the optimized one, giving a precise token savings count per interaction.

4:Instant Environmental Feedback:
After each prompt is submitted, a toast notification informs the user of how many tokens were saved.

5.Impact Dashboard:
A built-in dashboard tracks cumulative savings—displaying total tokens reduced and their estimated environmental impact over time. It helps users see how their actions contribute to more sustainable AI usage.

6.Fully Offline & Private:
All processing happens locally in the user’s browser. No server calls, no model loading, and zero data leakage—ensuring complete privacy and minimal energy consumption.


TokenFlow is built to make AI usage cleaner, faster, and more responsible—without changing how you work.

Challenges we ran into

  1. Designing Token Optimization Without Heavy Models:
    Initially, we considered using transformer models like T5-small for rephrasing. However, running such models entirely offline in the browser created performance and bundle size issues. We pivoted to using winkNLP with shallow semantic heuristics, which was lighter and faster—though less expressive—requiring fine-tuning rules for effective compression without altering meaning.

  2. Cross-Platform Prompt Detection:
    Each LLM platform (ChatGPT, Claude, Gemini) has a different DOM structure, which made detecting prompt input boxes and submit actions non-trivial. We had to write site-specific logic that remained resilient to UI changes without breaking functionality.

  3. Maintaining Meaning While Reducing Tokens:
    Striking the balance between cutting tokens and preserving the original intent was tricky. Removing too aggressively made prompts vague, while being too conservative gave minimal savings. We had to iterate on our semantic rules and tune the heuristics to ensure meaningful compression.

  4. Token Counting Consistency:
    Different LLMs tokenize prompts differently. To ensure consistency in token savings reporting, we built a simplified but reliable token estimation method that worked uniformly across platforms, even without access to their proprietary tokenizers.

  5. Accurate Environmental Impact Estimation:
    Translating token savings into tangible metrics like electricity, CO₂, and water reduction required research and approximation. We gathered available data on average energy use per token and built estimators that, while approximate, give meaningful insights without misleading the user.

  6. Building a Zero-Dependency, Fully Offline System:
    One major goal was to keep TokenFlow 100% offline to ensure privacy and sustainability. This meant no cloud APIs, no external analytics, and no backend. Achieving this required careful use of local storage, client-side processing, and optimizing performance for low-resource environments.

Discussion

Builders also viewed

See more projects on Devfolio