<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ranker</title>
    <description>The latest articles on DEV Community by Ranker (@rankerza).</description>
    <link>https://dev.to/rankerza</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4002082%2F8966a11f-30f2-4970-8efe-7798d1d1eca7.png</url>
      <title>DEV Community: Ranker</title>
      <link>https://dev.to/rankerza</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rankerza"/>
    <language>en</language>
    <item>
      <title>Token Diet: Free Open-Source Prompt Token Counter to Cut LLM API Costs</title>
      <dc:creator>Ranker</dc:creator>
      <pubDate>Thu, 25 Jun 2026 14:21:05 +0000</pubDate>
      <link>https://dev.to/rankerza/token-diet-free-open-source-prompt-token-counter-to-cut-llm-api-costs-4m36</link>
      <guid>https://dev.to/rankerza/token-diet-free-open-source-prompt-token-counter-to-cut-llm-api-costs-4m36</guid>
      <description></description>
      <category>ai</category>
      <category>llm</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I built Token Diet: a free, open-source prompt token counter to cut LLM API costs</title>
      <dc:creator>Ranker</dc:creator>
      <pubDate>Thu, 25 Jun 2026 09:56:27 +0000</pubDate>
      <link>https://dev.to/rankerza/i-built-token-diet-a-free-open-source-prompt-token-counter-to-cut-llm-api-costs-e</link>
      <guid>https://dev.to/rankerza/i-built-token-diet-a-free-open-source-prompt-token-counter-to-cut-llm-api-costs-e</guid>
      <description>&lt;p&gt;Full disclosure: I work on Ranker, and Token Diet is our tool. Sharing it here because it is free, open source, and might genuinely save you money.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Every token you send to an LLM costs money and eats into the context window. Bloated prompts quietly burn budget, especially anything you run thousands of times a day.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Token Diet does
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://ranker.co.za/token-diet" rel="noopener noreferrer"&gt;Token Diet&lt;/a&gt; is a free prompt token counter and optimizer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Paste a prompt and instantly see its token count (OpenAI, Claude, and Gemini estimates).&lt;/li&gt;
&lt;li&gt;Trim the filler and compare the before and after side by side.&lt;/li&gt;
&lt;li&gt;Estimate the monthly savings for your chosen model and call volume.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It runs entirely client side in your browser. No login, and nothing leaves the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open source
&lt;/h2&gt;

&lt;p&gt;The code is MIT licensed and on GitHub: &lt;a href="https://github.com/rankerZA/token-diet" rel="noopener noreferrer"&gt;https://github.com/rankerZA/token-diet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is also an embeddable widget if you want to drop the counter into your own site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Live tool: &lt;a href="https://ranker.co.za/token-diet" rel="noopener noreferrer"&gt;https://ranker.co.za/token-diet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback and issues welcome on the repo. If it saves you a few dollars on your API bill, that is the whole point.&lt;/p&gt;

</description>
      <category>aiopensourcellmproductivity</category>
    </item>
  </channel>
</rss>
