<?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: sir lu</title>
    <description>The latest articles on DEV Community by sir lu (@sir_lu_62bd118924537f9510).</description>
    <link>https://dev.to/sir_lu_62bd118924537f9510</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%2F4079966%2F2c3aa984-b132-41ee-9caf-98a62ee3ca45.png</url>
      <title>DEV Community: sir lu</title>
      <link>https://dev.to/sir_lu_62bd118924537f9510</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sir_lu_62bd118924537f9510"/>
    <language>en</language>
    <item>
      <title>I was tired of laggy, ad-bloated web tools, so I built a zero-latency AI toolkit that runs 100% in the browser.</title>
      <dc:creator>sir lu</dc:creator>
      <pubDate>Sun, 16 Aug 2026 10:31:45 +0000</pubDate>
      <link>https://dev.to/sir_lu_62bd118924537f9510/i-was-tired-of-laggy-ad-bloated-web-tools-so-i-built-a-zero-latency-ai-toolkit-that-runs-100-in-3i2o</link>
      <guid>https://dev.to/sir_lu_62bd118924537f9510/i-was-tired-of-laggy-ad-bloated-web-tools-so-i-built-a-zero-latency-ai-toolkit-that-runs-100-in-3i2o</guid>
      <description>&lt;p&gt;Hey r/SideProject,&lt;/p&gt;

&lt;p&gt;Like many of you, I spend half my day switching between LLMs, tweaking prompts, and handling AI-generated assets. But every time I needed a simple task done—like estimating API costs, cleaning up weird Markdown artifacts, or splitting a Midjourney 2x2 grid—I had to rely on sketchy, ad-riddled websites that felt sluggish and kept uploading my data to who-knows-where.&lt;/p&gt;

&lt;p&gt;I figured: &lt;em&gt;None of these simple operations actually require a server.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So over the past few weeks, I built &lt;strong&gt;&lt;a href="https://runaitoolkit.com" rel="noopener noreferrer"&gt;RunAIToolkit&lt;/a&gt;&lt;/strong&gt;—a set of ultra-fast, privacy-first micro-tools that execute entirely on the client side.&lt;/p&gt;




&lt;h3&gt;
  
  
  💡 What I built so far:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.google.com/search?q=https://runaitoolkit.com/tools/ai-token-calculator" rel="noopener noreferrer"&gt;AI Token &amp;amp; API Cost Estimator&lt;/a&gt;:&lt;/strong&gt; Calculates exact token usage and estimates API costs across top LLMs (GPT-4o, Claude 3.5, DeepSeek R1). No more surprise cloud bills after running long prompts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.google.com/search?q=https://runaitoolkit.com/tools/prompt-markdown-cleaner" rel="noopener noreferrer"&gt;Prompt &amp;amp; Markdown Cleaner&lt;/a&gt;:&lt;/strong&gt; Strips system artifacts, invisible unicode characters, and unwanted formatting from LLM outputs instantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.google.com/search?q=https://runaitoolkit.com/tools/midjourney-grid-splitter" rel="noopener noreferrer"&gt;Midjourney / Flux Grid Splitter&lt;/a&gt;:&lt;/strong&gt; Uses local HTML5 Canvas to slice 2x2 image grids into high-res individual files with zero compression loss and zero upload delay.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🛠️ Key Technical Choices &amp;amp; Takeaways:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Static Export + Cloudflare Pages:&lt;/strong&gt; Built with Next.js (App Router) and exported as pure static files to Cloudflare’s Anycast CDN. TTFB is under 50ms globally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Backend Cost:&lt;/strong&gt; Since all logic runs in Web Workers and local JS, server maintenance cost is literally &lt;strong&gt;$0/month&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Privacy by Design:&lt;/strong&gt; User prompts, text, and images never leave the browser. Perfect for developers handling NDA-sensitive data.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>ai</category>
      <category>javascript</category>
      <category>node</category>
    </item>
    <item>
      <title>Why I Built a Zero-Latency AI Utility Platform Running 100% in the Browser</title>
      <dc:creator>sir lu</dc:creator>
      <pubDate>Sun, 16 Aug 2026 10:20:45 +0000</pubDate>
      <link>https://dev.to/sir_lu_62bd118924537f9510/why-i-built-a-zero-latency-ai-utility-platform-running-100-in-the-browser-5fm4</link>
      <guid>https://dev.to/sir_lu_62bd118924537f9510/why-i-built-a-zero-latency-ai-utility-platform-running-100-in-the-browser-5fm4</guid>
      <description>&lt;p&gt;When building helper tools for AI workflows—like estimating token counts, cleaning LLM output formatting, or splitting image grids—most online solutions share two frustrating drawbacks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Privacy Concerns:&lt;/strong&gt; Passing prompt context or generated assets through third-party servers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server Overhead &amp;amp; Latency:&lt;/strong&gt; Unnecessary API roundtrips and cloud hosting costs for operations that modern browsers can easily execute locally.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To solve this for my own daily workflow, I built &lt;strong&gt;&lt;a href="https://runaitoolkit.com" rel="noopener noreferrer"&gt;RunAIToolkit&lt;/a&gt;&lt;/strong&gt;—a suite of browser-first AI utilities designed with a zero-server-cost architecture.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of how it works under the hood and why client-side execution makes sense for AI micro-tools.&lt;/p&gt;




&lt;h3&gt;
  
  
  🛠️ What's Under the Hood?
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. AI Token &amp;amp; API Cost Estimator
&lt;/h4&gt;

&lt;p&gt;Instead of making backend requests to compute token counts, tokenization logic runs directly inside browser-side Web Workers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;How it helps:&lt;/strong&gt; You can estimate costs for models like &lt;strong&gt;GPT-4o, Claude 3.5, and DeepSeek R1&lt;/strong&gt; locally without exposing proprietary prompts or system instructions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it here:&lt;/strong&gt; &lt;a href="https://www.google.com/search?q=https://runaitoolkit.com/tools/ai-token-calculator" rel="noopener noreferrer"&gt;AI Token &amp;amp; API Cost Estimator&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  2. Prompt &amp;amp; Markdown Cleaner
&lt;/h4&gt;

&lt;p&gt;Raw LLM outputs frequently contain hidden unicode artifacts, system tags, and inconsistent markdown formatting.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Implementation:&lt;/strong&gt; Uses client-side regex transforms to strip unnecessary formatting instantly without high-latency server trips.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it here:&lt;/strong&gt; &lt;a href="https://www.google.com/search?q=https://runaitoolkit.com/tools/prompt-markdown-cleaner" rel="noopener noreferrer"&gt;Prompt &amp;amp; Markdown Cleaner&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  3. Midjourney &amp;amp; Flux Grid Splitter
&lt;/h4&gt;

&lt;p&gt;Midjourney and Flux output 2x2 image grids that need to be sliced into single high-res images.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Implementation:&lt;/strong&gt; Slices images instantly using local HTML5 Canvas (&lt;code&gt;ctx.drawImage&lt;/code&gt;). Because processing occurs strictly in memory, image uploads are instantaneous and quality remains untouched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it here:&lt;/strong&gt; &lt;a href="https://www.google.com/search?q=https://runaitoolkit.com/tools/midjourney-grid-splitter" rel="noopener noreferrer"&gt;Midjourney / Flux Grid Splitter&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  ⚡ Technical Stack &amp;amp; Architecture
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework:&lt;/strong&gt; Next.js (App Router) with Static Site Generation (&lt;code&gt;output: 'export'&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling &amp;amp; UI:&lt;/strong&gt; Tailwind CSS + Shadcn/ui&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; GitHub + Cloudflare Pages (Anycast Edge Network)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operating Cost:&lt;/strong&gt; &lt;strong&gt;$0/month&lt;/strong&gt; (Zero backend servers or serverless execution costs)&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  💡 Key Takeaways for Web Developers
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Shift Logic to the Client:&lt;/strong&gt; Modern JavaScript engines and Web Workers can handle token calculations and canvas manipulation in milliseconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static Export + Edge Hosting = Speed:&lt;/strong&gt; Serving pre-rendered HTML straight from CDN edge nodes delivers global TTFB (Time to First Byte) under 50ms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy as a Feature:&lt;/strong&gt; When input data never leaves the client's memory, you remove security concerns around user data logging entirely.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Check out the live platform at &lt;strong&gt;&lt;a href="https://runaitoolkit.com" rel="noopener noreferrer"&gt;runaitoolkit.com&lt;/a&gt;&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;I'd love to hear your feedback on the architecture, performance, or suggestions for additional client-side AI tools you'd like to see added next.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>nextjs</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
