<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DevKit]]></title><description><![CDATA[DevKit]]></description><link>https://astro-devkit.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 11:48:55 GMT</lastBuildDate><atom:link href="https://astro-devkit.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[We put a free, unlimited LLM inside a static web page — Transformers.js + Gemma 3, zero servers]]></title><description><![CDATA[Every LLM demo I have ever seen has the same fine print: bring your own API key, or the demo is rate-limited, or your prompts go to our server. So I built…]]></description><link>https://astro-devkit.hashnode.dev/we-put-a-free-unlimited-llm-inside-a-static-web-page-transformers-js-gemma-3-zero-servers</link><guid isPermaLink="true">https://astro-devkit.hashnode.dev/we-put-a-free-unlimited-llm-inside-a-static-web-page-transformers-js-gemma-3-zero-servers</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[AI]]></category><category><![CDATA[showdev]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[Astro]]></dc:creator><pubDate>Sun, 01 Nov 2026 17:52:27 GMT</pubDate><content:encoded><![CDATA[<p>Every LLM demo I have ever seen has the same fine print: <em>bring your own API key</em>, or <em>the demo is rate-limited</em>, or <em>your prompts go to our server</em>. So I built the opposite demo.</p>
<p><strong><a href="https://astro-devkit.github.io/devkit/ai-playground.html">DevKit's AI Playground</a></strong> is a chat with a real language model that runs <strong>100% in your browser</strong>. No backend, no API key, no cost per token, and — because there is no server at all — nothing you type can leave the page. It's a static HTML file on GitHub Pages, like the rest of DevKit.</p>
<h3>How it works</h3>
<ul>
<li><strong>Transformers.js v3</strong> does the inference, inside a <strong>Web Worker</strong> so generation never freezes the UI.</li>
<li>The model is Google's <strong>Gemma 3 270M IT</strong>, 4-bit quantized (<code>q4f16</code>) — a <del>293 MB one-time download, cached by your browser for future visits. If Gemma can't start on your device (it needs real memory headroom), the page automatically falls back to the smaller <strong>SmolLM-135M</strong> (</del>121 MB) in a fresh worker, so the chat still works.</li>
<li>It tries <strong>WebGPU</strong> first (your graphics chip) and falls back to <strong>WASM</strong> on the CPU.</li>
<li>Tokens stream in as they're generated, with a <strong>live tokens/sec readout</strong> — which is either a fun toy or a benchmark, depending on how serious your hardware is.</li>
</ul>
<p>Click "Load the model", wait for the one-time download, and chat. That's the whole signup flow.</p>
<h3>Honest limits</h3>
<p>The models are <strong>small — 270M and 135M parameters — and live in your RAM</strong>. It writes plausible text, answers simple questions, does little creative tasks — and cheerfully makes things up. It is not GPT-class, and the page says so up front. The point isn't to replace an API; it's to show how far "the browser is the runtime" has come, and to give the LLM-curious a playground with literally zero setup and zero bill.</p>
<p>DevKit's other LLM tools are the grown-up counterparts: a <a href="https://astro-devkit.github.io/devkit/#tab-llm">cost calculator</a> that prices 14 real API models with cached-read/cache-write splits, and a tokens/sec simulator. The playground is what those calculators look like when the model is small enough to be <em>free</em>.</p>
<h3>Also new in this release</h3>
<p>Four more client-side tools joined the kit: a <strong>JWT decoder</strong> (decode-only, and it says so — the signature is <em>not</em> verified), a <strong>cron expression explainer</strong> (plain English + next 5 run times), a <strong>color palette generator</strong>, and a <strong>Pomodoro timer</strong> whose countdown runs in the tab title. Same rules as everything on DevKit: no uploads, no accounts, no tracking, and every calculator's math is checked by automated tests (310 checks and counting).</p>
<p>Try it and tell me the tokens/sec number your machine gets — and which model you'd want to see in the playground next. SmolLM2-360M? Qwen? The download budget is the boss fight.</p>
]]></content:encoded></item><item><title><![CDATA[DevKit: a one-file calculator library with tested formulas — now with an LLM cost calculator]]></title><description><![CDATA[DevKit is a one-file calculator library with 69 tools and tested formulas — now with an LLM cost calculator and tokens/sec simulator.]]></description><link>https://astro-devkit.hashnode.dev/devkit-a-one-file-calculator-library-with-tested-formulas-now-with-an-llm-cost-calculator</link><guid isPermaLink="true">https://astro-devkit.hashnode.dev/devkit-a-one-file-calculator-library-with-tested-formulas-now-with-an-llm-cost-calculator</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[AI]]></category><category><![CDATA[showdev]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[Astro]]></dc:creator><pubDate>Mon, 26 Oct 2026 15:45:39 GMT</pubDate><content:encoded><![CDATA[<p>I kept reaching for a quick calculator and landing on pages crowded with ads, pop-ups, and distractions. So I built the tool I wanted instead: a lean calculator site that gets out of the way.</p>
<p>DevKit is a one-file calculator library with 69 tools, all running client-side in your browser. The tools are organised into tabbed pages, so you can find the one you need without scrolling through a long list.</p>
<h2>What's new: an LLM cost calculator</h2>
<p>The newest addition is for anyone working with language models. The LLM cost calculator helps you estimate what a request will cost, and the tokens/sec simulator shows how generation speed affects timing. It's the part I reach for most when I'm planning an LLM feature and want a quick sense of cost and speed before writing code.</p>
<h2>Verified formulas</h2>
<p>A calculator is only useful if you can trust its answers, so the formulas in DevKit are verified with tests. That gives me a way to catch mistakes when a formula changes, instead of hoping the numbers look right.</p>
<h2>Guides</h2>
<p>There's also a new guides hub with walkthroughs for the tools: <a href="https://astro-devkit.github.io/devkit/guides.html">https://astro-devkit.github.io/devkit/guides.html</a></p>
<h2>Try it</h2>
<p><a href="https://astro-devkit.github.io/devkit/">Try DevKit here</a></p>
<p>What calculator should I add next? Let me know in the comments — I'd love to hear what you'd actually use.</p>
<p><em>Originally published on <a href="https://dev.to/astrodevkit/devkit-a-one-file-calculator-library-with-tested-formulas-now-with-an-llm-cost-calculator-4c8k">Dev.to</a>.</em></p>
]]></content:encoded></item></channel></rss>