<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fayaz Bin Salam on Medium]]></title>
        <description><![CDATA[Stories by Fayaz Bin Salam on Medium]]></description>
        <link>https://medium.com/@p32929?source=rss-6b07c54fe05a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Y85iWnW5Xr2X2V9FDJe8uQ.jpeg</url>
            <title>Stories by Fayaz Bin Salam on Medium</title>
            <link>https://medium.com/@p32929?source=rss-6b07c54fe05a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:40:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@p32929/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The USB Shortcut Virus Is Still Alive in 2026 — and the Fix Is Still Two Commands]]></title>
            <link>https://medium.com/@p32929/the-usb-shortcut-virus-is-still-alive-in-2026-and-the-fix-is-still-two-commands-f96b83b64cf1?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f96b83b64cf1</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[shortcut-virus]]></category>
            <category><![CDATA[malware-removal]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 23:36:42 GMT</pubDate>
            <atom:updated>2026-09-24T23:36:42.045Z</atom:updated>
            <content:encoded><![CDATA[<p>The USB Shortcut Virus Is Still Alive in 2026 — and the Fix Is Still Two Commands</p><p>You plug a USB drive into a shared computer, and every folder turns into a shortcut pointing nowhere. Your files are still on the drive — the “shortcut virus” just hid them and littered fake .lnk files in their place. Antivirus can catch the payload, but it rarely bothers cleaning up its mess, so people either panic, reformat the drive and lose everything, or leave it broken.</p><p>I built Shortcut-Virus-Remover for exactly this, and it’s embarrassingly small for something that fixes a problem this annoying: a single Windows batch script, two commands, no installation. Run it, type the infected drive letter, and it undoes the damage — attrib clears the hidden/system/archive flags the malware set on your real files, then del wipes out every fake .lnk shortcut the virus left behind. It doesn’t scan for or remove the malware itself; that’s your antivirus’s job. This just cleans up after it, which turns out to be the part nobody else bothered shipping.</p><p>The whole thing is genuinely two lines you can read before you run it — no downloaded .exe you have to trust blindly. Here’s what’s actually inside the repo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oTwTfSUinpSKGYQqqwzvng.png" /><figcaption>The repo README: what it does and the two-command fix, up front.</figcaption></figure><p>That’s the entire fix. attrib -s -h -a /s /d strips the hidden/system/archive attributes the virus set on your real folders and files; del /a /q /s wipes every .lnk shortcut the virus dropped in their place. Run it against the infected drive letter, not your system drive, and you’re done — no reboot, no scan, no waiting.</p><p>Using it takes about ten seconds longer to explain than to do: download the .bat file from the repo, double-click it, type the letter of the infected drive when it asks, hit Enter, and wait — a drive with a lot of files takes a moment. One thing worth knowing before you run it: step two deletes every .lnk file on that drive, so if you keep real shortcuts there on purpose, move them off first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nZanAV30z4VWvSgrWtm7wA.png" /><figcaption>The README’s “How to use” section and the exact warning about .lnk deletion.</figcaption></figure><p>If you want proof it’s not doing anything sneaky, here’s the actual source — not a screenshot of documentation, the file itself:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mm-s0wdFkhXW-CKRv79Jw.png" /><figcaption>The full script — 38 lines counting comments and prompts, ~2 lines of actual logic.</figcaption></figure><p>It’s MIT licensed, five stars, free, and it will not, in fact, make you a programmer just by reading it — the README says so itself. If you’ve got a USB drive full of shortcuts pointing at nothing, or you’re the person your family calls when this happens, grab it here: https://github.com/p32929/Shortcut-Virus-Remover</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f96b83b64cf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Portfolio Site Has Been “Coming Soon” for Three Years]]></title>
            <link>https://medium.com/@p32929/your-portfolio-site-has-been-coming-soon-for-three-years-b68b6a4dd926?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b68b6a4dd926</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 04:22:45 GMT</pubDate>
            <atom:updated>2026-09-14T04:22:45.933Z</atom:updated>
            <content:encoded><![CDATA[<p>A free React + TypeScript template where your entire site lives in one file. Fork it, edit variables, deploy to GitHub Pages in two commands.</p><p>Every developer I know has a portfolio site. It exists in roughly the same place as their half-finished novel and their gym membership: in the future, on a weekend that keeps not arriving.</p><p>The reason is rarely laziness. It’s that “build a personal site” quietly expands into picking a design, arguing with yourself about the hero section, choosing a font you’ll hate in a week, and then finding somewhere to host it. Four days later you have a beautiful About page and zero projects listed.</p><p>I got tired of that loop, so a while back I built portfolio-v2 — a free, open-source portfolio template where you don’t write components. You edit variables.</p><h4>The whole site is one file</h4><p>That’s the entire idea. Your name, bio, skills, project list, social links, résumé link — all of it lives in src/Others/GlobalVars.ts. You open one TypeScript file, replace my data with yours, and you’re finished. No hunting through JSX to find where the About paragraph is hardcoded. No accidentally deleting a closing tag at 1 a.m. and wondering why the build hates you.</p><p>Underneath it’s React, TypeScript, Material-UI and Overmind for state, scaffolded with Create React App. Familiar enough that extending it is boring, which is the highest compliment you can pay a template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XESxHqyft3VP0oI8sRA9DA.png" /><figcaption>The About section. Every word of this comes from one variables file.</figcaption></figure><h4>What you actually get</h4><p>Four sections — About, Skills, Works, Contact — in a clean two-pane layout. Works is a grid of your projects with links, which is the part recruiters actually scroll to, and the part most hand-rolled portfolios never get around to filling in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0GTvhG6h7z2CMX4lCiHn3A.png" /><figcaption>The Works grid — an array of objects in GlobalVars.ts, not a day of layout work.</figcaption></figure><p>There’s also a dynamic color theme picker wired into the UI, so if you don’t like the green you can change the accent by clicking a swatch rather than grepping the project for hex codes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1Zk0EaS7PKluYC-VV71sA.png" /><figcaption>Skills, grouped by category. Add a language, delete one you exaggerated about — same file.</figcaption></figure><h4>Going live in two commands</h4><p>Deployment is usually where these projects quietly die. Here it’s GitHub Pages, which is free, and the whole process fits in a paragraph: fork the repo, rename it to your-github-username.github.io, clone it, run npm install, edit src/Others/GlobalVars.ts, then run npm run predeploy followed by npm run deploy. Point GitHub Pages at the master branch in your repo settings, wait three to five minutes, and your site is live at your-username.github.io.</p><p>No hosting bill, no build pipeline to configure, no domain purchase unless you decide you want one. The README walks through the same steps if you’d rather follow a checklist than a paragraph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAAen4ktLdgC6mYUYx8zrg.png" /><figcaption>The setup section from the README. Seven steps, most of which are “press enter”.</figcaption></figure><h4>The honest part</h4><p>This is a template, not a framework. If you want a blog, a CMS or server-side rendering, look elsewhere with my blessing. The design is based on Vijay Verma’s free Glazzy Portfolio — credited in the README — so you are not the only person on the internet capable of shipping this layout. And it sits on Create React App, which is no longer the fashionable choice, though it retains the underrated property of still working.</p><p>In exchange: it’s MIT licensed, free for personal and commercial use, and it has 198 stars and 61 forks. That last number is the one I care about, because it means the thing has survived contact with sixty-one other people’s real data, which is more than most templates can honestly claim.</p><h4>Take it</h4><p>Code: <a href="https://github.com/p32929/portfolio-v2">https://github.com/p32929/portfolio-v2</a></p><p>Live demo: <a href="https://p32929.github.io/portfolio-v2/">https://p32929.github.io/portfolio-v2/</a></p><p>Fork it, spend twenty minutes in one file, and retire the phrase “I really should put up a portfolio sometime.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b68b6a4dd926" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Got Tired of Paying for Claude Code, So I Wrote 200 Lines of JavaScript Instead]]></title>
            <link>https://medium.com/@p32929/i-got-tired-of-paying-for-claude-code-so-i-wrote-200-lines-of-javascript-instead-528cb6f30d04?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/528cb6f30d04</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 05:54:57 GMT</pubDate>
            <atom:updated>2026-09-02T05:54:57.119Z</atom:updated>
            <content:encoded><![CDATA[<h4>A tiny local translator that points Anthropic’s CLI at any OpenAI-compatible API. No dashboard, no plugin system, no tray icon — just the one thing I actually wanted.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zALqAnh4KtCRi9JoGRJuVw.png" /></figure><p>Claude Code is genuinely good. That’s the annoying part.</p><p>If it were mediocre, this would be a much shorter article. But it isn’t — it’s the first coding CLI I’ve used where I stop thinking about the tool and just think about the code. The friction was never the product. The friction was everything wrapped around getting access to it: an API bill that scales with exactly how useful you find it, regional availability that treats “can I pay you money” as a surprisingly hard question, and the low-grade anxiety of watching a token counter while you debug someone else’s regex.</p><p>Meanwhile, there’s an entire shelf of free and nearly-free OpenAI-compatible endpoints sitting right there. OpenRouter’s free tier. A model running locally on your own machine, drawing power you already pay for. Whatever provider your employer already has a contract with. All of them speak the same wire format. Claude Code just doesn’t speak it.</p><p>That gap is roughly a weekend of work. So I did the weekend.</p><h3>What opencc actually is</h3><p>opencc runs a small local server that sits between Claude Code and whatever provider you want to use. Claude Code talks to it exactly the way it would talk to Anthropic. The server translates the conversation into OpenAI-compatible calls, sends them to your provider, and translates the response back on the way out.</p><p>Claude Code doesn’t know the difference. That’s the whole trick. There is no clever part.</p><p>I want to be honest about the crowded shelf here: proxies like this already exist. Several of them. My problem wasn’t that nobody had solved it — it was <em>how</em> they’d solved it. The ones I tried came with admin dashboards. Support for ninety-nine providers. Multiple coding agents. Messaging-bot integrations. A desktop app. With a tray icon.</p><p>I did not need a platform. I needed one small thing to be true: Claude Code should talk to my endpoint. Setup should take a minute, not an afternoon of reading configuration docs to find the four lines that matter.</p><p>So opencc does one job, has <strong>zero dependencies</strong>, and there is nothing else in the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHDZorS7KIqdI5JD9fKNqw.png" /></figure><h3>Setting it up</h3><p>Five steps, and two of them are “press enter.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVA3xlAZhugpjv4hEeUZcQ.png" /></figure><p><strong>1. Clone it.</strong></p><pre>git clone https://github.com/p32929/opencc.git<br>cd opencc</pre><p><strong>2. Run it once to install.</strong></p><pre>npm start</pre><p>No npm install first — there’s nothing to install. This registers the opencc command globally, so you’re never stuck running things from inside this folder. You do this once, ever.</p><p><strong>3. Configure it.</strong></p><pre>opencc init</pre><p>It asks five questions: your provider’s base URL (e.g. https://openrouter.ai/api/v1), your API key, the model that does the real work (e.g. openai/gpt-4o), a cheaper model for Haiku-tier background tasks — blank reuses the first one — and a port, where the default is fine. Answers are saved. Re-run opencc init any time you want to change them; it shows your current values first.</p><p><strong>4. Start the server.</strong></p><pre>opencc</pre><p>Leave that terminal open. This is the thing Claude Code will be talking to.</p><p><strong>5. Start Claude Code.</strong></p><p>Second terminal, cd into your actual project, then:</p><pre>opencc claude</pre><p>It behaves like claude always does — it works on the folder you’re in. Claude Code’s own flags pass straight through:</p><pre>opencc claude --continue<br>opencc claude --resume</pre><p>To stop, close both terminals. Nothing lingers in the background, nothing installs a daemon, nothing phones home. opencc exists only while those two commands are running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OYxtURYfHsS2aMFbVhGZ1g.png" /></figure><h3>The honest caveats</h3><p>I’d rather you find these out here than at 2am.</p><p><strong>You’re not getting Claude.</strong> You’re getting Claude Code — the harness, the tool-calling loop, the file editing, the ergonomics — driven by whatever model you pointed it at. If you wire it to a small local model, you will get small-local-model quality. The CLI is the part that’s free; the intelligence is still whatever you paid for. Some free tiers handle this beautifully. Some do not.</p><p><strong>Two terminals is a real requirement, not a suggestion.</strong> If opencc claude tells you the server isn’t running, that’s step 4 asking for attention. If opencc says it isn’t configured, that’s step 3.</p><p><strong>Model behaviour varies more than you’d like.</strong> Claude Code leans hard on tool use. Providers implement OpenAI-compatible tool calling with a range of enthusiasm. A model that’s excellent at chat can still be mediocre at driving an agent loop. Trying two or three before settling is normal.</p><p><strong>On your key:</strong> it never leaves your machine except to talk to the provider you chose. The server binds locally — it isn’t reachable from your network. This is deliberate, and it’s also why there’s no hosted version.</p><p><strong>Working from a clone?</strong> Drop a project-local .env (copy .env.example) — it takes priority over the global config. npm run server starts the server directly and skips the configured-check, which is handy while debugging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvMUGS8QnCU4LNZfMatgPA.png" /></figure><h3>Why I’m posting it</h3><p>I built this because I wanted it to exist, and I’m sharing it because the version of me from three months ago would have wanted someone else to have already built it.</p><p>It’s small on purpose. If you open it expecting a framework, you’re going to be disappointed in a way I’d consider a compliment. If you want a proxy with a plugin architecture, there are several excellent ones and I genuinely recommend them. If you want Claude Code pointed at your own endpoint in under two minutes and then never to think about it again, that’s this.</p><p>It’s MIT, it’s readable in one sitting, and issues and PRs are open:</p><p><a href="https://github.com/p32929/opencc">https://github.com/p32929/opencc</a></p><p>If you try it against a provider I haven’t tested, I’d like to hear how it went — especially if it went badly. That’s the useful feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=528cb6f30d04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Shipped a 60-Line CLI Tool Because My Attention Span Is Worse Than My Build Times]]></title>
            <link>https://medium.com/@p32929/i-shipped-a-60-line-cli-tool-because-my-attention-span-is-worse-than-my-build-times-3f441ed5ac21?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f441ed5ac21</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 01:57:21 GMT</pubDate>
            <atom:updated>2026-09-02T01:57:21.554Z</atom:updated>
            <content:encoded><![CDATA[<h4>cmdn wraps any command and makes a noise when it is done. That is it. That is the tool — and it has saved me more hours than any optimization I have ever written.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHSiUM_a9D96ZlwvUhlpNg.png" /></figure><p>I have spent real, billable, non-refundable hours of my life staring at a terminal that had already finished.</p><p>You know the sequence. You kick off npm install, or a Docker build, or the test suite that a teammate described as “quick now.” The output starts scrolling. You are a professional, so you alt-tab to do something useful while it runs. Nine seconds later you are reading a GitHub issue from 2019 that has forty-one comments and no resolution. Some time after that you are on Wikipedia learning about container ship displacement, and behind three windows a terminal has been sitting there, finished, patiently blinking, for the last nineteen minutes.</p><p>The build was not slow. I was.</p><p>I spent a while looking for the sophisticated fix — better caching, a leaner Dockerfile, splitting the test suite. Those are real improvements and I did some of them. They shaved maybe 30 seconds off a task where I was routinely losing twenty minutes to my own wandering focus. The bottleneck was never the machine. So I stopped optimizing the build and wrote a tool that optimizes me.</p><p>It is called <strong>cmdn</strong>, it is MIT licensed, and it lives here: <a href="https://github.com/p32929/cmdn">https://github.com/p32929/cmdn</a></p><h3>What it actually does</h3><p>You put cmdn in front of the command you were already going to run:</p><pre>cmdn npm install<br>cmdn git push<br>cmdn make build<br>cmdn docker build -t myapp .</pre><p>cmdn runs your command exactly as typed, passes the output straight through to your terminal, and when it is finished, plays a sound.</p><p>That is the entire product.</p><p>I want to be honest about how unambitious this is, because our industry has a strong instinct to turn every small tool into a platform with a pricing page. There is no background daemon quietly holding 200MB of RAM hostage. There is no account to create, no telemetry, no dashboard, no “upgrade to cmdn Pro to unlock additional notification sounds.” It is a JavaScript wrapper that does one job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4JpUlurcto0nK4IOGNtkQ.png" /></figure><h3>The walk-through, which takes about a minute</h3><pre>git clone https://github.com/p32929/cmdn<br>cd cmdn<br>npm install<br>npm run setup</pre><p>The setup asks you three things: whether you want sound notifications, whether you want a command to run after cmdn finishes, and then it wires up the global cmdn binary so you can call it from any directory.</p><p>Then you use it. cmdn npm run build, walk away, get pinged.</p><p>If you later decide the bundled alarm.mp3 is intolerable — a genuine possibility, it is a personality test not everyone passes — cmdn --configure walks you through the questions again, and you can drop in your own file. Config lives in a plain cmdn-config.json in the repo folder. Not a registry key. Not a dotfile you will rediscover in three years and be too frightened to delete.</p><h3>The feature I actually use every day</h3><p>The sound is the headline, but the <strong>post-command hook</strong> is the part that earns its place.</p><p>When you configure cmdn, you can give it a command to run <em>after</em> your command completes, with two template variables available: [[command]] (what you originally ran) and [[output]] (that command’s full output). That one small hook covers a surprising amount of ground:</p><pre># Log every finished command<br>echo &quot;$(date): [[command]] completed&quot; &gt;&gt; ~/commands.log</pre><pre># Fire a webhook with the details<br>curl -X POST <a href="https://webhook.site/xyz">https://webhook.site/xyz</a> -d &quot;Command: [[command]]&quot;</pre><pre># Native desktop notification on macOS<br>osascript -e &#39;display notification &quot;[[command]] finished&quot;&#39;</pre><p>So when a sound is not enough — the forty-minute build where you have left not just the desk but the building — you can push to a Slack webhook, write to a log you grep later, or raise a real OS notification. Same wrapper, no extra tooling to install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ulVUUxEiSzOP5cUZ8jevgg.png" /></figure><h3>It runs where you run</h3><p>The genuinely annoying part of building this was cross-platform audio, which cmdn absorbs so you do not have to think about it: PowerShell’s SoundPlayer on Windows, afplay on macOS, and on Linux it walks through the players that plausibly exist — paplay, aplay, mpg123, mpv, vlc — until one of them works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGxFBu0dl3wMJHxUKpA1pA.png" /></figure><h3>Honest limitations</h3><p>I would rather you hear these from me than discover them at an inconvenient moment.</p><p>It does not make your builds faster. It makes you faster at noticing they are done, which is a different and less impressive claim.</p><p>Setup is clone-and-install rather than a one-line global package install, so it is a minute of work up front and it lives in the folder you cloned it into.</p><p>On Linux, if none of those audio players are installed, you get silence — which is exactly the failure mode you do not want from a notification tool. That is what the post-command hook is for; wire up a desktop notification and you have a backup.</p><p>And it is a wrapper, not a scheduler or a job runner. If you need retries, queuing, or dependency graphs, this is not that, and I would be suspicious of anyone selling you a 60-line file that claimed otherwise.</p><h3>The pitch</h3><p>cmdn will not modernize your pipeline, shrink your bundle, or impress anyone in a code review. It closes the gap between <em>“the command finished”</em> and <em>“you found out the command finished”</em> — and if you are honest about your own attention span, that number is larger than you would like to admit in public.</p><p>The code is small enough to read in one sitting, which I would genuinely encourage before you run anything from a stranger’s repo. Judge it yourself: <a href="https://github.com/p32929/cmdn">https://github.com/p32929/cmdn</a></p><p>Star it if it saves you an afternoon. Fork it if the alarm sound offends you. Both are entirely reasonable outcomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f441ed5ac21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Wrote a 104 KB Mac App Whose Entire Job Is Closing Other Apps]]></title>
            <link>https://medium.com/@p32929/i-wrote-a-104-kb-mac-app-whose-entire-job-is-closing-other-apps-00303c092b18?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/00303c092b18</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 04:11:48 GMT</pubDate>
            <atom:updated>2026-09-01T04:11:48.963Z</atom:updated>
            <content:encoded><![CDATA[<h4>Thirty windows, one frozen Photoshop, and the slow realisation that Command-Q is not a shutdown procedure.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*O4dgHEJi7vimDhHItU3UJg.png" /></figure><p>Every workday ends the same way. I look at my Mac and count: two browsers with more tabs than I would admit under oath, three terminal windows (two of which I am genuinely afraid to close), a design tool I opened “for one second” on Monday, a music app paused since 11am, Slack, and somewhere in that pile exactly one application that has stopped taking requests entirely. The beachball is spinning. It has been spinning for a while. It has the energy of a colleague who left the meeting but not the call.</p><p>The officially sanctioned fix for this is to quit each app individually. Click, Command-Q, wait. Click, Command-Q, wait. Every so often one refuses, so you open Activity Monitor, hunt down the process, force quit it, and then confirm a dialog asking whether you are <em>sure</em> you want to do the thing you very obviously came here to do. Apple calls this a workflow. I call it a small ceremony I perform daily for a computer that does not appreciate it.</p><p>So I built Boom. It is a macOS menu bar utility that force quits every running application in one click, and it is open source here: <a href="https://github.com/p32929/boom">https://github.com/p32929/boom</a></p><h3>What it actually does</h3><p>Boom sits in your menu bar. No dock icon, no window, no onboarding flow, no account. You click the icon and a short menu drops down.</p><p><strong>Force Close All</strong> does what the name promises — every user application you have open stops being open. <strong>Force Shut Down</strong> goes one step further and closes everything, then shuts the Mac down, which is the correct button for 6pm on a Friday. <strong>Launch at Login</strong> is there, off by default, because software that assumes it is welcome on startup is software I do not trust. There is an About item with links to the source, and an Exit item, because Boom is not exempt from its own philosophy.</p><p>The whole interaction takes roughly a second and a half, most of which is your hand moving the mouse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n4N7l70cX5EBmCmTyVBMDg.png" /></figure><h3>How it works, and what it deliberately refuses to touch</h3><p>There is no clever hack here and nothing sketchy. Boom enumerates running applications through NSWorkspace.shared.runningApplications, force terminates each one with NSRunningApplication.forceTerminate(), and triggers shutdown via AppleScript when you pick Force Shut Down. That is the entire mechanism. You can read all of it in an afternoon, which is roughly the point.</p><p>The more interesting engineering is in the restraint. Boom only closes regular user applications — the ones with visible windows. It leaves Finder, Dock, System UI Server, Window Manager, Control Center, Notification Center, background agents, daemons and itself completely alone. This distinction is the difference between a utility and an incident. The naive version of this app, the one that kills literally every process it can see, is not a productivity tool; it is a bug report with a menu bar icon. Your system stays stable. Your app clutter does not.</p><p>There is also a single-instance guard, so you cannot accidentally end up with two copies of Boom sitting in the menu bar quietly duplicating each other’s work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbO_NArju-CKSz56sni-zg.png" /></figure><h3>Installing it, briefly</h3><p>Grab the latest build from the Releases page, unzip it, drag Boom.app into Applications, and right-click → Open the first time so Gatekeeper can perform its due diligence on an unsigned indie app. It needs macOS 13.0 or later. You will likely need to grant it permission under System Settings → Privacy &amp; Security → Automation, since it is, after all, an app whose stated purpose is bossing other apps around. If you would rather build it yourself, it is a standard Xcode 15 project — clone, open boom.xcodeproj, Cmd+R.</p><p>Launch at Login works best when the app lives in a permanent location, so Applications rather than your Downloads folder, where good software goes to be forgotten.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TNSCIQG19nNfOpJrvWuJg.png" /></figure><h3>The honest pitch</h3><p>Boom is not a platform. There are no accounts, no telemetry, no roadmap, no waitlist, and no ambition to become an ecosystem. It is a small pile of Swift, MIT licensed, solving a problem that costs you twenty seconds a day — which, compounded across a year, turns out to be a surprisingly defensible amount of time to want back.</p><p>If you are the sort of person who ends every day closing windows one at a time like you are turning off lights in an empty office, it costs about thirty seconds to try. And if you think the excluded-apps list is wrong, the source is right there — fork it, argue with it, open an issue.</p><p>Code, releases and README: <a href="https://github.com/p32929/boom">https://github.com/p32929/boom</a></p><p>Stars are appreciated. Force quits are guaranteed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00303c092b18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a TUI Because Claude Code Makes You Resume Sessions by UUID]]></title>
            <link>https://medium.com/@p32929/i-built-a-tui-because-claude-code-makes-you-resume-sessions-by-uuid-003e6729aff8?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/003e6729aff8</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 00:10:20 GMT</pubDate>
            <atom:updated>2026-09-01T00:10:20.788Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your Claude Code sessions are all still on disk. Finding the right one shouldn’t feel like a memory test.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APb_0UNre1zeTS7U8gCjMA.png" /><figcaption>ccss: every Claude Code session in the current project, with the exact resume command pinned to the bottom.</figcaption></figure><p>You had a good session. Four hours of back-and-forth, the model finally understood the codebase, the refactor was two-thirds done. Then you closed the terminal, because that is what people do with terminals.</p><p>The next morning you type claude --resume, fully expecting to pick up where you left off, and you get a list. Session IDs. Hexadecimal. 0f8e2a91-4c3d-4b7a-9e11-aa22bb33cc44 and eleven of its closest friends, none of which mean anything to you. You pick one. Wrong one. You pick another. Also wrong, but in a more interesting way. Somewhere in that list is four hours of context, and the interface&#39;s position is that you should simply remember which UUID it was.</p><p>So I wrote ccss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xH9Xln1daisU2KPjH1QTRg.png" /><figcaption>MIT-licensed, 99.7% Go, and deliberately read-only apart from the delete key.</figcaption></figure><h3>What it actually is</h3><p>ccss is a small Go terminal UI that reads the session files Claude Code already writes to ~/.claude/projects and shows them as something a human can navigate. Each row is a session with its summary line, its short id, how many messages it holds, how long ago you touched it, and how much disk it occupies. At the bottom, always visible, is the exact command to resume the highlighted one.</p><p>That is the whole trick. The data was never missing — Claude Code has been dutifully storing every session as a .jsonl file this entire time. What was missing was any way to look at it that didn&#39;t involve guessing.</p><p>A detail I care about more than it probably deserves: when you copy the resume command, the cd is baked in, so you get cd /Users/you/dev/my-app &amp;&amp; claude --resume 0f8e2a91-… rather than the bare flag. This is not me being precious. claude --resume only finds a session from the directory that created it, which is a fact I learned the way everyone learns things, which is by being confused for twenty minutes first.</p><h3>The walk-through</h3><p>Install needs Go 1.21 or newer:</p><pre>go install github.com/p32929/ccss@latest</pre><p>Then run it inside a project:</p><pre>cd ~/dev/my-app &amp;&amp; ccss</pre><p>You land directly on that project’s sessions. If the folder has no sessions, it offers to show all your projects instead, along with how many gigabytes they are quietly occupying — a number that tends to be more educational than expected.</p><p>From there it is arrow keys. Up and down to move. enter opens the transcript so you can actually read the session and confirm it is the one, with [ and ] to jump between your own prompts and / to search inside it. c copies the resume command. / filters the list when you have forty sessions and a vague memory of the word &quot;spinner&quot;. s re-sorts by recency, size, or message count.</p><p>m cycles the permission mode the copied command carries — normal, plan, accept edits, auto, don&#39;t ask, or bypass permissions — so you resume the way you meant to, instead of trying to recall the exact spelling of --dangerously-skip-permissions at 11pm. Your mode and both sort orders persist between runs, because a tool that forgets your settings is just a different kind of memory test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KronFfYO9p7fw4_6ey4tPw.png" /><figcaption>Press m to cycle the permission mode the copied command carries. The app never runs anything itself.</figcaption></figure><p>d deletes: one session, or, on the projects list, every session in a project at once. It asks first, in full sentences, with the size attached, and only y goes through. There is no undo, and the confirmation says so. That felt like the honest way to ship a delete key.</p><h3>Why it exists</h3><p>I want to be clear about the scope here, because it is small on purpose. ccss does not run anything. It does not wrap Claude Code, proxy it, launch it, or hold opinions about your workflow. It reads files it did not write, shows them nicely, and hands you a string to paste. The only thing it ever modifies is a file you explicitly confirmed deleting.</p><p>That restraint is deliberate. Tools that sit between you and your actual tool have a way of becoming the thing you are debugging. I did not want to maintain a launcher. I wanted to stop losing sessions.</p><p>The disk usage part was an accident that turned out to matter. Once you can see totals per project, you discover that months of Claude Code have quietly accumulated a few gigabytes of transcripts you will never read again, and that one well-intentioned refactor conversation can weigh several hundred kilobytes. Sorting by size and pressing d at the top of the list is oddly satisfying — the digital equivalent of finally cleaning out the drawer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vm_zKnLGcOP0k2SmSC-m_w.png" /><figcaption>Both lists show where the disk is going, and d deletes only after you confirm in full sentences.</figcaption></figure><h3>The unglamorous conclusion</h3><p>This is not an AI product. There is no model in it, no cloud, no account. It is roughly the least exciting category of software: a list, with keyboard shortcuts, over files that were already on your machine. That is exactly why I use it every day.</p><p>If you have ever pasted a session UUID into a terminal and simply hoped, it is MIT-licensed and one command to install: <a href="https://github.com/p32929/claude-code-sessions-resume">github.com/p32929/claude-code-sessions-resume</a></p><p>Issues and PRs welcome. Complaints about the colour scheme will be read with great sympathy and no action.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=003e6729aff8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Was Losing an Argument With My Own Desktop, So I Wrote a Rust Editor]]></title>
            <link>https://medium.com/@p32929/i-was-losing-an-argument-with-my-own-desktop-so-i-wrote-a-rust-editor-2864552a7256?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2864552a7256</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 03:15:50 GMT</pubDate>
            <atom:updated>2026-08-21T03:15:50.209Z</atom:updated>
            <content:encoded><![CDATA[<h4>Oxru puts every terminal a project spawns into one place — tabs, a real editor, and none of the Alt-Tab archaeology.</h4><p>Here’s a small, humiliating ritual: you run a project’s run.sh, it fans out into a backend, a bundler, and a mobile emulator log, and suddenly you have five OS terminal windows scattered across your desktop like a toddler got hold of your dock. None of them are labeled anything useful. You Alt-Tab through them the way you&#39;d pat down your pockets looking for keys you&#39;re currently holding.</p><p>Then you open your actual editor in a sixth window, because apparently that’s a separate problem now.</p><p>I got tired of narrating my own life as “wait, which one was the server,” so I wrote <a href="https://github.com/p32929/oxru">Oxru</a> — a small, fast code editor for the terminal that also happens to swallow every terminal your project tries to spawn and turn it into a tab inside itself.</p><h3>What it actually does</h3><p>Oxru is not trying to replace VS Code. It’s not trying to replace Neovim either, and if Neovim is already your happy place, it says so directly in its own README, which is more self-awareness than most dev tools manage. What it does instead is four specific things:</p><ul><li><strong>One window per project, not one per script.</strong> Run something that opens new terminals — AppleScript do script, iTerm&#39;s write text, open -a Terminal, a double-clicked .command, whatever — and Oxru intercepts it and opens a tab instead. Your run.sh doesn&#39;t change. Your desktop just stops filling up.</li><li><strong>Terminal and window, same binary, same keys.</strong> It opens as a real window by default, or runs inside your existing terminal with --term — useful for the SSH sessions where a GUI was never coming. Every shortcut behaves identically in both modes, which is a smaller thing to say than it is to build.</li><li><strong>It tells you what it’s costing you.</strong> A status bar shows live memory and FPS, and there’s a settings dial to throttle terminal output redraw rate for unattended logs — so a build scrolling past doesn’t burn CPU for no one’s benefit, while your own typing still redraws instantly.</li><li><strong>Nothing to configure.</strong> One binary, tree-sitter syntax highlighting for the usual suspects (Rust, JS, TS, Python, Go, C, HTML, CSS, Shell, TOML), sane defaults, no plugin stack to babysit before it feels like home.</li></ul><p>It’s written in Rust, largely because the author wanted to see how far Rust could be pushed on something interactive and GUI-ish — and, per the README, “genuinely likes the language,” which is the kind of sentence you write once and regret by test number 140.</p><h3>A short walkthrough</h3><p>Install is one line:</p><pre>curl -fsSL <a href="https://raw.githubusercontent.com/p32929/oxru/master/install.sh">https://raw.githubusercontent.com/p32929/oxru/master/install.sh</a> | sh</pre><p>Open a folder and you land on a blank screen with a few hints — Ctrl+F for files, Alt+T for a terminal, Ctrl+, for settings. Pull up the file picker and it&#39;s fuzzy-search-first, with the tree still there if you&#39;d rather browse. Open a terminal, and if that terminal spawns three more (your bundler doing its thing), those three show up as tabs next to it — Alt+G flips between a tab view and a grid of everything running at once, each one labeled by folder and command so you can actually tell them apart. Settings gets you live font size and nine theme colors, applied instantly, no restart, no config file to hand-edit.</p><p>The whole thing is covered by 159 automated tests spanning editor state, file dialogs, terminal input, and mouse handling in both GUI and TUI mode from the same shared logic — which is a more thorough test suite than some editors ten times its size can claim, and worth mentioning mostly because “small tool, actually tested” is rarer than it should be.</p><h3>Try it before your next multi-terminal script humiliates you again</h3><p>If you’ve ever lost a terminal window behind your browser during a live demo — and you have, don’t lie — Oxru is worth the thirty seconds the install script takes. Grab it, read the rest of the shortcut list, or just go stare at the code: <a href="https://github.com/p32929/oxru">https://github.com/p32929/oxru</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2864552a7256" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Wrote a Database Because I Got Tired of Installing One]]></title>
            <link>https://medium.com/@p32929/i-wrote-a-database-because-i-got-tired-of-installing-one-c0a88d8c5213?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0a88d8c5213</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 06:00:03 GMT</pubDate>
            <atom:updated>2026-08-18T06:00:03.574Z</atom:updated>
            <content:encoded><![CDATA[<h4>fjsondb is 150 lines of TypeScript that treats a JSON file like a key-value store — and for a surprising number of projects, that is the entire requirement.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*1A5P5R3o9r06IRZP_FMiIw.png" /></figure><p>There is a moment in every small Node project where you need to remember something between restarts. A token. A list of processed IDs. Some counters. Twelve rows of user settings that will never become thirteen thousand.</p><p>The industry’s answer to this moment is remarkably consistent: stand up a database. Add a Docker service. Add a connection string. Add an env var for the connection string. Add a fallback for when the env var is missing. Add a retry loop for when the container is slower to boot than your app. Add a migration tool, because now you have a schema. You wanted to save four keys, and you have acquired infrastructure.</p><p>I did this enough times to get annoyed, and then I did the thing annoyed developers do — I wrote fjsondb.</p><h3>What it actually is</h3><p>fjsondb is a small TypeScript package that gives you a key-value API on top of a plain JSON file on disk. No server, no daemon, no port, no connection lifecycle. You point it at a path and you get set, get, has, delete, getJson and deleteAll.</p><pre>const jsonLocation = &#39;./data/test.json&#39;<br>const db = new Fjsondb(jsonLocation)<br>db.set(&quot;test1&quot;, 1)<br>db.set(&quot;test3&quot;, true)<br>db.set(&quot;test4&quot;, { newKey: &quot;value&quot; })<br>const savedValue = db.get(&quot;key&quot;)<br>const exists = db.has(&quot;key&quot;)<br>db.delete(&quot;key&quot;)</pre><p>That’s the whole learning curve. There isn’t a chapter two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*BbE4A3YduDiXebB5QfWn7A.png" /></figure><p>A few things it does quietly so you don’t have to think about them. If the file doesn’t exist, it creates it — and it creates the parent folders too, recursively, so you are not writing a mkdir dance before your first write. If the file already exists, its contents are read back into memory in the constructor, which is why a restart doesn’t feel like an event. Every write goes through a listener that serializes the current object back to disk with fs.writeFileSync, pretty-printed. Synchronous, on purpose: when the call returns, the bytes are on disk, and there is no in-flight state to reason about.</p><p>You can also run multiple instances against different files, which is the closest thing it has to a concept of tables:</p><pre>const db = new Fjsondb(&#39;./data/test.json&#39;)<br>const db2 = new Fjsondb(&#39;./data/test2.json&#39;)</pre><p>There are a couple of convenience methods that exist purely because I kept writing them by hand — incrementNumber and decrementNumber for counters, and getKeysByMatchedValue for the reverse lookup you always end up needing at 1am. Values can be anything JSON can hold: numbers, strings, booleans, nested objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HCYxq1wIv9QYwAG0cpqEOg.png" /></figure><h3>The part where I tell you not to use it</h3><p>Every write rewrites the entire file. That is a deliberate trade and also a hard ceiling. If your JSON grows into the tens of megabytes, or you have several processes writing the same file, or you need concurrent transactions, indexes, or queries more expressive than “give me this key” — fjsondb is the wrong answer and I would rather you find that out from me than from production. Reach for SQLite. It is excellent, it is embedded too, and it will not mind.</p><p>But the honest distribution of small Node projects is not “tens of megabytes and concurrent writers.” It’s a CLI tool, a Discord bot, a scraper’s dedupe list, a desktop app’s settings, a side project with fourteen users, a test fixture. For those, a JSON file on disk is not a compromise you settle for — it is the correct data store, and everything else is ceremony. The added benefit nobody mentions: when something looks wrong, you debug it by opening the file. In a text editor. With your eyes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*7eVTkyp1HopmcniD5rhxIg.png" /></figure><h3>Why I still reach for it</h3><p>The best thing about fjsondb isn’t the API, it’s what’s absent. There is no service to start before you can run your tests. Nothing to configure in CI. Nothing to forget to spin down. Deleting the app means deleting a folder. The whole implementation is about 150 lines of TypeScript in a single file, MIT licensed, and you can read all of it in less time than it takes to pull a Postgres image.</p><p>If that sounds like the right size for whatever you’re building this weekend:</p><pre>npm install fjsondb</pre><p>Source, full API and the license are here: <a href="https://github.com/p32929/fjsondb">https://github.com/p32929/fjsondb</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*rMNWdmleY2iOAPV49LuTqg.png" /></figure><p>Issues and PRs welcome — and if you open one telling me it doesn’t scale, I promise the README already agrees with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0a88d8c5213" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Got Tired of Wiring Electron, Vite, TypeScript and shadcn Together, So I Committed the Result]]></title>
            <link>https://medium.com/@p32929/i-got-tired-of-wiring-electron-vite-typescript-and-shadcn-together-so-i-committed-the-result-431963d8046f?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/431963d8046f</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 00:15:23 GMT</pubDate>
            <atom:updated>2026-07-31T00:15:23.260Z</atom:updated>
            <content:encoded><![CDATA[<h4>A small, unglamorous Electron boilerplate that already has the desktop plumbing, the TypeScript config and the whole shadcn/ui component set in place.</h4><p>There is a particular kind of afternoon every desktop-app developer eventually spends. You have an idea for something small — a local file tool, a dashboard, a note-taker — and you decide it should be a desktop app. Twenty minutes in, you are not building it. You are reading the electron-vite docs, arguing with two tsconfig files, finding out that @/components/ui/button resolves in the editor but not in the build, and discovering that shadcn’s CLI has opinions about where your project root is that do not match Electron’s opinion about where your renderer is.</p><p>By the time everything actually launches, the idea has cooled off and you have written zero lines of the app you wanted.</p><p>I did that afternoon more than once. The third time, I stopped deleting the scaffold afterwards and pushed it: <a href="https://github.com/p32929/electron-shadcn-typescript">https://github.com/p32929/electron-shadcn-typescript</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWNRiYhA1Tm_GLPSjEyaOA.png" /></figure><h3>What it actually is</h3><p>It’s a boilerplate. That is the whole pitch, and I’d rather be honest about the size of it than dress it up as a framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKHwLmvCkbwxGjs1QXObCQ.png" /></figure><p>It is an Electron app with React 18 and TypeScript, built with electron-vite — so you get Vite’s dev server and HMR in the renderer instead of the classic webpack-and-hope setup. Tailwind CSS is configured and working. shadcn/ui is wired in, with the path alias, components.json and global.css all pointed at the right places — the specific thing that broke for me repeatedly, and which one of the commits is bluntly named after: “fixed shadcn component adding issue.”</p><p>The Radix primitives that shadcn sits on are already in package.json: accordion, dialog, dropdown-menu, popover, select, tabs, toast, tooltip, context-menu, hover-card, scroll-area, slider, switch, navigation-menu, and the rest. So are the usual companions — react-hook-form with zod and @hookform/resolvers, next-themes for dark mode, sonner for toasts, cmdk for a command palette, embla-carousel-react, react-day-picker, vaul, input-otp, react-resizable-panels, class-variance-authority, clsx, tailwind-merge.</p><p>On the Electron side, @electron-toolkit/preload and @electron-toolkit/utils handle the main/preload boilerplate, electron-builder handles packaging, and electron-updater is there if you want auto-updates. ESLint and Prettier are configured. There’s a typecheck script that runs tsc separately over the Node side and the web side, because those are genuinely two different environments, and pretending otherwise is how you end up importing fs into your renderer at 2am.</p><p>The demo app itself is a counter in a shadcn Card with two buttons. It is deliberately boring. The point is not the demo; the point is that the demo renders, styled correctly, on the first yarn dev.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03SyPJV1f5-GdJrVHAFKZg.png" /></figure><h3>Getting started</h3><p>Clone it, then run yarn, then yarn dev. That’s it.</p><p>yarn dev runs electron-vite dev -w — watch mode, so the main process restarts and the renderer hot-reloads. You get the window in the screenshot above: a real Electron shell rendering real shadcn components.</p><p>Adding a component is the normal shadcn workflow — the CLI is already a dependency and components.json already points at src/components/ui, so new components land exactly where the alias expects them.</p><p>The src/ layout is the standard electron-vite split: main/ for the main process, preload/ for the bridge, renderer/ for the entry HTML, and then App.tsx, components/, lib/, assets/ and global.css for the actual UI. Nothing exotic, nothing invented.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WahWFgDYfMUC3q_a7Jdazw.png" /></figure><p>When you want a build, there is yarn build:win, yarn build:mac and yarn build:linux. Those run a typecheck (on Windows), then electron-vite build, then electron-builder for the target platform.</p><h3>Honest caveats</h3><p>A few, and I’d rather you hear them from me than find them yourself.</p><p>It is pinned to its moment. The last real push was early 2025 — Electron 28, Vite 5, React 18, Tailwind 3, shadcn-ui 0.8. If you want Tailwind 4 or React 19, you will be doing an upgrade pass yourself. The wiring is the value here, not the version numbers, and the wiring survives a bump.</p><p>It’s a starting point, not a product. There’s no router, no state management library, no IPC architecture beyond a commented-out ipcHandle example, no test setup. Those are choices I’d rather you make for your own app than inherit from mine.</p><p>Yarn is assumed. The scripts and the lockfile are Yarn 1. npm works fine, you’ll just be regenerating a lockfile.</p><p>The mac and linux build scripts skip the typecheck step that the Windows one gets — a small inconsistency I’d paper over by running yarn typecheck in CI anyway.</p><p>It’s not a large project. 80 stars, 18 forks, one contributor, eleven commits. It isn’t trying to be Electron Forge. It’s trying to save you the afternoon.</p><h3>The point</h3><p>Most of the value in a boilerplate isn’t code — it’s the accumulated knowledge of which four config files have to agree with each other, and in what way. This repo is that agreement, frozen and committed, so you don’t have to rediscover it.</p><p>If you’re about to start an Electron app with React, TypeScript, Tailwind and shadcn, clone it, run yarn dev, and spend your afternoon on the part you actually cared about: <a href="https://github.com/p32929/electron-shadcn-typescript">https://github.com/p32929/electron-shadcn-typescript</a></p><p>Issues and PRs welcome — especially the dependency-bump kind.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=431963d8046f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your GitHub Raw Links Are Not a CDN (But They Really Want To Be)]]></title>
            <link>https://medium.com/@p32929/your-github-raw-links-are-not-a-cdn-but-they-really-want-to-be-56c020bd59ef?source=rss-6b07c54fe05a------2</link>
            <guid isPermaLink="false">https://medium.com/p/56c020bd59ef</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Fayaz Bin Salam]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 04:15:11 GMT</pubDate>
            <atom:updated>2026-07-30T04:15:11.098Z</atom:updated>
            <content:encoded><![CDATA[<h4>I got tired of pasting raw.githubusercontent URLs into script tags and pretending it was fine, so I built a small thing that fixes it.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*itYVh7SIuZnVUF1nZFX7eQ.png" /></figure><p>Every developer eventually does this. You have one file — a config JSON, a small JS helper, a CSS snippet, a JSON dataset for a demo — and it already lives in a GitHub repo. You need it served over HTTP. You do not want to spin up S3, sign up for a bucket, configure a bucket policy, or think about CloudFront invalidation on a Tuesday. So you copy the GitHub link and drop it into a script tag.</p><p>Then you open the page and nothing happens.</p><p>Because the URL you copied was github.com/user/repo/blob/main/file.js, which is not a file. It is a web page about a file. It comes with syntax highlighting, a commit history sidebar, a Blame button, and roughly two hundred kilobytes of HTML wrapped around the eleven lines you actually wanted. Very convenient. Not remotely a CDN.</p><p>So you go find the Raw button, which gives you raw.githubusercontent.com, and that is closer to correct — it returns the bytes. But it also returns them with Content-Type: text/plain, which means the browser politely refuses to execute your JavaScript or apply your stylesheet, because from its point of view you handed it a text document and told it to run. You have not solved the problem. You have moved it into the console.</p><p>And even when the content type happens not to matter — a JSON file you fetch yourself, an image, a plain text list — you are still leaning on an endpoint that was never designed for delivery. Rate limits exist. Caching behaviour is not yours to control. And the URL itself is a small crime against readability: a domain nobody trusts on sight, a branch name baked into the path so it silently breaks the day you rename main, and a token appended on the end if the repo is private.</p><p>That is the itch. It is not a large problem. It is a small, constant, mildly humiliating one.</p><p>So I built ghcdn.</p><p>It does exactly one thing: you give it a GitHub URL, it gives you back a clean CDN URL that serves the actual content, properly, at a path you can read out loud. That is the whole product. There is no dashboard, no account, no plan tier, no onboarding flow asking about your team size.</p><p>The walk-through is short enough to fit in a paragraph. You open the app, paste something like github.com/p32929/ghcdn/blob/master/README.md into the single input field, and hit Generate CDN URL. You get back ghcdn.vercel.app/github/p32929/ghcdn/master/README.md. That URL serves the file directly — hit it in a browser, drop it in a script tag, hand it to fetch, whatever you were going to do before GitHub got in the way. There is a Test button next to each result so you can confirm it actually serves before you paste it into production, and a Copy button, because of course there is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*quGFGWkfAv_qqxu2TFBjfg.png" /></figure><p>Gists work the same way. Paste a gist URL, get back a ghcdn.vercel.app/gist/… URL. Gists are the natural home of exactly the kind of throwaway single file this problem applies to, so leaving them out would have been strange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aJiREy7LzblmuBcdMIBI2A.png" /></figure><p>There is a Recent Links list underneath, which sounds like a small thing and turns out to be the feature I use most. It caches what you converted so you are not re-pasting the same repo path four times a week.</p><p>Under the hood it is a small Next.js app with memory-efficient caching so repeat requests do not hammer GitHub, plus a cache purge path for when you push a change and want the new bytes served now rather than eventually. That combination — cached by default, purgeable on demand — is the bit that makes it usable rather than just a URL rewriter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*hWTlAvfwcnScltCdO3E1Ug.png" /></figure><p>Now the honest part, because I would rather you find out here than in a postmortem.</p><p>This is a convenience layer, not infrastructure. It is a free Vercel deployment sitting in front of GitHub, and it inherits everything that implies: GitHub’s availability is its availability, and the free tier’s limits are its limits. If you are serving a production asset to real traffic at scale, use a real CDN — that is what they are for, and I am not going to pretend otherwise to make this paragraph shorter.</p><p>What it is genuinely good for: demos, prototypes, CodePens, docs pages, side projects, internal tools, README badges and embeds, a config file your script pulls at startup, anything where the correct amount of infrastructure to provision is zero. It is MIT licensed and self-hostable, so if you want the same behaviour on your own domain with your own limits, deploy your own copy and stop depending on mine.</p><p>The live version is at <a href="https://ghcdn.vercel.app/">https://ghcdn.vercel.app</a> — paste a repo file or a gist URL in and see whether it saves you the ten minutes it saves me. If it breaks on some URL shape I did not think of, that is a genuinely useful thing to tell me, and I would rather hear it than not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56c020bd59ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>