<?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: Charles Kariuki</title>
    <description>The latest articles on DEV Community by Charles Kariuki (@chazchege).</description>
    <link>https://dev.clauneck.workers.dev/chazchege</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%2F3995188%2F50645ba5-ea2b-4aba-848d-46c4213e93e5.jpg</url>
      <title>DEV Community: Charles Kariuki</title>
      <link>https://dev.clauneck.workers.dev/chazchege</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.clauneck.workers.dev/feed/chazchege"/>
    <language>en</language>
    <item>
      <title>From 47 to 75 Commits: How a Single _headers File Broke My Brain (and My App) for 8 Hours</title>
      <dc:creator>Charles Kariuki</dc:creator>
      <pubDate>Wed, 24 Jun 2026 11:05:36 +0000</pubDate>
      <link>https://dev.clauneck.workers.dev/chazchege/from-47-to-75-commits-how-a-single-headers-file-broke-my-brain-and-my-app-for-8-hours-59hi</link>
      <guid>https://dev.clauneck.workers.dev/chazchege/from-47-to-75-commits-how-a-single-headers-file-broke-my-brain-and-my-app-for-8-hours-59hi</guid>
      <description>&lt;h2&gt;
  
  
  The 8-Hour "Please Work" Marathon
&lt;/h2&gt;

&lt;p&gt;We’ve all been there. You have a vision. You want to build a completely free, local-first, privacy-respecting PWA toolkit (NeatKit). Everything is running smoothly until you decide to implement client-side video processing using ffmpeg.wasm.&lt;/p&gt;

&lt;p&gt;Suddenly, you are slapped in the face by browser security rules, SharedArrayBuffer requirements, and Cross-Origin Isolation blockades.&lt;/p&gt;

&lt;p&gt;Yesterday, my repo was sitting at a comfortable 47 commits. Today? 75 commits.&lt;/p&gt;

&lt;p&gt;By commit #65, my commit messages literally just said "please please work."&lt;/p&gt;

&lt;h2&gt;
  
  
  Grasping at Straws (and breaking my own site)
&lt;/h2&gt;

&lt;p&gt;When you're 6 hours deep into a web worker security issue, you start losing your mind. I questioned everything I knew about how Cloudflare handles routing, headers, and workers. I convinced myself that my entire deployment pipeline was fundamentally broken.&lt;/p&gt;

&lt;p&gt;In a moment of pure desperation, I did the unthinkable: I deleted the deployment files on Cloudflare entirely to rebuild from scratch.&lt;/p&gt;

&lt;p&gt;For 30 terrifying minutes, the live production site was a completely empty void. No tools. No layout. Just blank space.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Twist Ending
&lt;/h2&gt;

&lt;p&gt;After tearing down the infrastructure and treating the codebase like a crime scene, the culprit wasn't a massive structural flaw. It was a configuration issue inside the _headers file the entire time.&lt;/p&gt;

&lt;p&gt;Cloudflare Pages handles headers brilliantly, but if your syntax or placement is even slightly off when trying to pass strict Cross-Origin-Opener-Policy (COOP) and Cross-Origin-Embedder-Policy (COEP) rules, the browser tab silently sandboxes your workers into oblivion.&lt;/p&gt;

&lt;h2&gt;
  
  
  My 2 Big Takeaways From the Trenches:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Local-first WASM has strict boundaries: Client-side processing means ultimate privacy, but it also means dealing with strict browser sandboxing. For heavy files, cloud servers win. For small, quick utility trims, local WASM is amazing—but you have to play by the browser's origin rules.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Walk away sooner: If I had stepped away at commit #55 instead of nuking my environment, I probably would have found the file syntax error in 10 minutes instead of 3 hours.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The site is finally back up, the video trimmer is fully functional for short clips, and I am going to sleep for a week.&lt;/p&gt;

&lt;p&gt;Check out the final, working product here: &lt;a href="https://neatkitapp.com/" rel="noopener noreferrer"&gt;NeatKit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>cloudflare</category>
      <category>webassembly</category>
    </item>
    <item>
      <title>45 Commits Later: Turning my browser-based utility suite into a fully offline PWA (with client-side video editing)</title>
      <dc:creator>Charles Kariuki</dc:creator>
      <pubDate>Tue, 23 Jun 2026 07:23:53 +0000</pubDate>
      <link>https://dev.clauneck.workers.dev/chazchege/45-commits-later-turning-my-browser-based-utility-suite-into-a-fully-offline-pwa-with-client-side-17h1</link>
      <guid>https://dev.clauneck.workers.dev/chazchege/45-commits-later-turning-my-browser-based-utility-suite-into-a-fully-offline-pwa-with-client-side-17h1</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;The Core Concept&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;A few weeks ago, I launched NeatKit—a suite of free web utilities aimed at solving a common frustration: having to upload sensitive files (like PDFs, images, and now videos) to random cloud servers just to perform basic tasks like compressing or trimming.&lt;/p&gt;

&lt;p&gt;From day one, the architecture was 100% client-side. The browser does all the heavy lifting using local processing power. But yesterday, after crossing the 45-commit mark on the repo, I finally took the architecture to its logical conclusion: NeatKit is now an officially installable Progressive Web App (PWA) that works completely offline.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Why Local-First + PWA is a Game Changer for Utility Tools&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Most online file converters follow a traditional client-server model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You upload a 50MB video file.&lt;/li&gt;
&lt;li&gt;The server processes it (and keeps your data in a cache somewhere).&lt;/li&gt;
&lt;li&gt;You download the processed file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This model is slow, terrible for data privacy, and burns through internet bandwidth. By leveraging modern browser APIs and WebAssembly, NeatKit bypasses the server entirely.&lt;/p&gt;

&lt;p&gt;By upgrading the platform to a PWA with aggressive service worker caching, you can now literally turn off your Wi-Fi, open the app, and it will still compress your videos or merge your PDFs perfectly.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What’s New in the App?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Along with the PWA upgrade, I just shipped three new intensive, browser-based video tools that run entirely client-side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Video Compressor: Shrink mp4/webm files directly in your tab without burning upload data bundles.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Video Trimmer: Fast, frame-accurate cuts using local browser processing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Video to GIF: Convert clips into high-quality GIFs instantly without watermarks.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because it happens locally, a 100MB video uses 0MB of internet data to process. You only use data to load the website the very first time.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Lessons Learned &amp;amp; Challenges&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Setting up the service workers to handle heavy media processing assets offline was a massive headache. Ensuring that the caching strategies didn't choke when dealing with large file buffers in the browser tab required a lot of trial and error (hence the jump to 45 commits!).&lt;/p&gt;

&lt;p&gt;I’m currently mapping out the next phase of development. If you are a developer who hates clunky, ad-ridden web tools, I’d love for you to test this out.&lt;/p&gt;

&lt;p&gt;Try installing the PWA, kicking your device into airplane mode, and seeing if you can break it.&lt;/p&gt;

&lt;p&gt;I’m wide open to critiques on the architecture, UI improvements, or suggestions on what utility tool I should build client-side next!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check it out here:&lt;/strong&gt; &lt;a href="https://neatkitapp.com/" rel="noopener noreferrer"&gt;neatkitapp.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>pwa</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How I Built a Suite of 16 Web Utilities with Zero Backend and $0 Hosting Costs</title>
      <dc:creator>Charles Kariuki</dc:creator>
      <pubDate>Sun, 21 Jun 2026 15:13:13 +0000</pubDate>
      <link>https://dev.clauneck.workers.dev/chazchege/how-i-built-a-suite-of-16-web-utilities-with-zero-backend-and-0-hosting-costs-3ae0</link>
      <guid>https://dev.clauneck.workers.dev/chazchege/how-i-built-a-suite-of-16-web-utilities-with-zero-backend-and-0-hosting-costs-3ae0</guid>
      <description>&lt;p&gt;We've all been there. You need to quickly compress a JPEG, split a PDF, or convert an ID card image to a document format. You Google it, click the first link, and immediately get hit with: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A mandatory account signup. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A premium paywall because your file is 1MB over their "free tier" limit. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The uneasy feeling of uploading a sensitive personal document to a random, opaque cloud server just for a 2-second processing task.  &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm a software engineering student, and frankly, I got tired of it. Modern browsers are incredibly powerful, yet we still route basic byte-manipulation tasks through external servers.&lt;br&gt;
So, I decided to build an alternative: &lt;a href="https://neatkitapp.com/" rel="noopener noreferrer"&gt;NeatKit&lt;/a&gt; — a zero-bloat web hub with 16 essential tools that run 100% client-side. No signups, no limits, and absolutely nothing leaves your machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Core Architecture: Why No Backend?&lt;/strong&gt;&lt;br&gt;
The design philosophy behind NeatKit is simple: Your browser is the server. By eliminating a backend entirely, I solved two massive problems at once:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Privacy: User data never leaves their device. If you inspect the Network tab in DevTools while running a heavy PDF merge or compression, you'll see exactly zero outbound data packets containing your files.&lt;/li&gt;
&lt;li&gt;Infrastructure Costs: Since the user's CPU handles all the heavy lifting, my hosting bill is exactly $0. The site scales infinitely without me needing to worry about server clusters, memory leaks, or execution timeouts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The Tech Stack (Squeezing the Browser)&lt;/strong&gt;&lt;br&gt;
To keep things lightning fast, I kept the foundational stack as close to the metal as possible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Vanilla JavaScript &amp;amp; TailwindCSS: I wanted near-instant initial page loads. No massive framework overhead, just highly optimized script modules loaded as needed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HTML5 Canvas API: This does the heavy lifting for all image processing tools. When you drop an image into the compressor, JavaScript paints it to an offscreen canvas, samples the pixel data, and recalculates the compression ratios locally.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;pdf-lib: For handling PDF creation, splitting, merging, and compression. It allows NeatKit to manipulate document structures directly in-memory as binary arrays (Uint8Array), rendering new, optimized blobs in milliseconds.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;🛠️ What's Under the Hood Right Now?&lt;/strong&gt;&lt;br&gt;
I've rolled out 16 utilities so far, broken down into a few categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Document Tools: &lt;a href="https://neatkitapp.com/tools/pdf-compress" rel="noopener noreferrer"&gt;PDF Compressor&lt;/a&gt; (just shipped today!), &lt;a href="https://neatkitapp.com/tools/pdf-merge" rel="noopener noreferrer"&gt;PDF Merge &amp;amp; Split&lt;/a&gt;, &lt;a href="https://neatkitapp.com/tools/images-to-pdf" rel="noopener noreferrer"&gt;Image to PDF convertor&lt;/a&gt;, and an "&lt;a href="https://neatkitapp.com/tools/id-card-to-pdf" rel="noopener noreferrer"&gt;ID Card to PDF&lt;/a&gt;" converter (great for printing/compliance)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Image Handling: Client-side &lt;a href="https://neatkitapp.com/tools/image-compress" rel="noopener noreferrer"&gt;image compressor&lt;/a&gt;, format converters, and SVG tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dev Utilities: &lt;a href="https://neatkitapp.com/tools/base64" rel="noopener noreferrer"&gt;Base64 encoder/decoder&lt;/a&gt;, &lt;a href="https://neatkitapp.com/tools/qr-generator" rel="noopener noreferrer"&gt;QR code generator&lt;/a&gt;, and &lt;a href="https://neatkitapp.com/tools/color-converter" rel="noopener noreferrer"&gt;hex-to-RGB color converters&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Lessons Learned &amp;amp; What's Next&lt;/strong&gt;&lt;br&gt;
Building this completely solo taught me a massive lesson about asset optimization and cross-browser quirks—especially handling high-resolution image rendering on mobile browsers where RAM allocation is tightly throttled.&lt;/p&gt;

&lt;p&gt;The project is live at &lt;a href="https://neatkitapp.com/" rel="noopener noreferrer"&gt;neatkitapp.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Since this is a fresh launch, I’d love for the Dev.to community to check it out. Please, absolutely roast the UI, try to break the performance, or let me know what essential daily tool you think I should add to the suite next!&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>webdev</category>
      <category>showdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
