<?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 GDSKS on Medium]]></title>
        <description><![CDATA[Stories by GDSKS on Medium]]></description>
        <link>https://medium.com/@gdsks?source=rss-4a2b2f6644ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zkNzaWda5JGN7JNKdVFUlw.jpeg</url>
            <title>Stories by GDSKS on Medium</title>
            <link>https://medium.com/@gdsks?source=rss-4a2b2f6644ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:26:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gdsks/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[My AI Agent Kept Writing Last Year’s Code. One Sentence Fixed It.]]></title>
            <link>https://gdsks.medium.com/my-ai-agent-kept-writing-last-years-code-one-sentence-fixed-it-570f5ddda18e?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/570f5ddda18e</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 16:41:43 GMT</pubDate>
            <atom:updated>2026-11-24T16:41:43.812Z</atom:updated>
            <content:encoded><![CDATA[<h4>It failed the same Vitest 5 test 10 of 10 times, until I pointed it at Context7’s current docs. Here is what changed, and what did not.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjwVij1ieO1OkdheRndmNg.png" /></figure><p>expected vi.fn() to be called 1 times, but got 0 times</p><p>That one line came back ten times in a row. Same test, same agent, same result.</p><p>The task was ordinary. Write a Vitest test that calls a function once in a beforeAll hook as one-time setup, then asserts that the mock recorded exactly one call. The agent produced a test in about seven seconds on average, and the code looked reasonable at a glance.</p><p>It never passed. Not once in ten tries. Then one sentence in the prompt changed that, and this is the story of why.</p><h3>What I was testing, and how</h3><p>This week I built a small benchmark around one question. Coding agents learn from a snapshot of the internet. Libraries keep shipping after that snapshot. What happens when you ask an agent to work with a library that changed this year?</p><p>I picked libraries with real breaking changes in 2026 and wrote a small task for each one, plus a script that checks the result. Then I ran Claude Code with the model alias sonnet through each task. One arm got the plain agent. The other arm got the same agent with <a href="https://context7.com/?utm_source=gagan-deep-singh">Context7</a>, a docs service from <a href="https://upstash.com/?utm_source=gagan-deep-singh">Upstash</a> that hands the agent current library documentation through two tools, one to find the library and one to query its docs.</p><p>I ran two modes. In one-pass mode the agent writes code from the task description and never executes anything, which resembles a developer pasting an answer straight out of a chat window. In agentic mode the agent gets a sandboxed shell, runs the build and the tests, and reacts to whatever errors come back.</p><p>Five runs per case. Every run logged. The harness and the raw run files sit in a public repo, <a href="https://github.com/thegdsks/docs-ab-bench">docs-ab-bench</a>, so you can check my work instead of trusting my summary.</p><p>Vitest 5 was the case that made the point.</p><h3>Why a smart model writes old code</h3><p>Vitest 5 shipped in September with one quiet change. clearMocks now defaults to true, so a mock&#39;s call history gets wiped before every test. Set up a mock in beforeAll, call it once, and by the time your test runs the history reads zero.</p><p>The agent wrote the test the way Vitest worked for years. That habit used to be correct. The model learned it from thousands of real projects, and every one of those projects behaved correctly on the version its authors installed at the time.</p><p>I think of a model as a photograph. It captured the documentation and forum threads of a particular moment, and the ecosystem kept moving after the shutter closed. When I ask it about Vitest, it answers about the Vitest in the photograph. It has no way to know the photo has aged, and nothing in its tone tells me either. A wrong answer and a right answer come out in the same calm voice.</p><p>That calm voice is the real problem, more than the failure itself.</p><h3>One sentence changed the score</h3><p>The Context7 arm got one extra line in its instructions: “Before you write code, use the Context7 tools to look up the current documentation for the libraries involved.”</p><p>With that line, the agent passed Vitest 5 in 5 of 5 runs. It looked up the docs, found the new default, and wrote a test that held up. That is the whole idea behind the tool: the agent writes the syntax of the version you run, because it read that version’s docs a moment earlier. The plain agent across both batches with the same prompt went 0 of 10.</p><p>It also took longer. A passing run averaged 14.7 seconds against 7.1 for the failing ones, and used close to double the tokens. I will take a slower right answer over a fast wrong one every day, but I want to be honest that the lookup has a price.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qo_yCopIFyJVjs2IhrMWJA.png" /></figure><h3>The part I did not expect</h3><p>Here is the result that changed how I think about agent setups.</p><p>Before I added that sentence, I ran a batch where the agent had Context7 installed and no instruction to use it. I assumed a tool sitting right there would get picked up when it mattered. The agent called Context7 about 0.6 times per run on Vitest 5 and SvelteKit 3. On the AI SDK 7 case, zero.</p><p>The scores looked like the plain agent. Vitest 5 came out 2 of 5. SvelteKit 3 came out 3 of 5.</p><p>Owning the tool and using the tool turned out to be two separate things. The agent did not know what it did not know, so it never felt the need to check. Context7’s own npx ctx7 setup installs a skill meant to nudge the agent on library questions, but I had wired the bare server without it, and I did not test the skill. I had been treating &quot;I installed the docs server&quot; as the end of the job. In practice, the installation only marked the beginning of the work.</p><h3>Where the plain agent did fine on its own</h3><p>I want to give the plain agent its due, because it earned some.</p><p>SvelteKit 3 moved config out of svelte.config.js and into the plugin, and dropped $app/stores. In one-pass mode, where the agent writes code without running anything, the plain agent got 8 of 10. When I gave it a sandboxed shell so it could run the build, it went 5 of 5. It hit the build error, read it, and corrected itself without any outside documentation. A descriptive compiler message did the same job the docs did.</p><p>On libraries the model already handled well, Context7 added cost and no gain. The TypeScript 6 case passed 5 of 5 in both arms, and the docs lookup pushed the average from about 37k tokens to 52k. On AI SDK 7, both arms passed every run.</p><p>The Astro 7 case went the other way. The plain agent passed 5 of 5. The Context7 arm passed 4 of 5. Five runs make that a small gap, and I would not read much into it, but the tool did not win there and I am not going to pretend it did.</p><h3>The benchmark that almost lied to me</h3><p>This part does not flatter me, so I will tell it straight.</p><p>My first harness had a bug. In shell mode I allowed only a short list of commands, and a refused command ends the agent’s run. The plain agent wrote a stale config file, ran the build, saw the error, and then tried to delete the file. That command was not on my list, so the harness refused it and the run stopped.</p><p>The Context7 arm had read the current docs and never wrote the stale file, so it never needed to delete anything. One arm looked brilliant and the other looked helpless.</p><p>I caught it because the result made no sense. With a shell, the plain agent scored worse than it had without one, and an agent that can run the build and read its own errors should not get worse. A result that flatters the tool deserves extra suspicion. I dug into the logs, saw the refused command, and threw the whole batch away. I rebuilt the shell inside a sandbox so both arms could run anything safely, then ran everything again.</p><p>I am not sharing the numbers from the broken runs. They measured my mistake, not the tool.</p><p>The rerun is where the SvelteKit 3 result above comes from, the one where the plain agent read its own build error and recovered. Without the fix, that finding would not exist, and this article would claim a bigger win than the data supports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8LIcrTMPQiEQzjVyJnxsw.png" /></figure><h3>The numbers, with the caveat</h3><p>Across every case where I told the agent to check the docs, the Context7 arm passed 44 of 45 runs. The plain agent passed 35 of 45 on the same cases.</p><p>Now the caveat, said plainly. Five runs per case gives you a hint, not a law. With samples this small, the statistical confidence range for the Context7 arm runs from 88% to 100%, and for the plain agent from 64% to 87%. Those ranges do not overlap, which makes me reasonably comfortable that the gap holds up. They are also wide, so I would not quote either number to two decimal places.</p><p>The gap lives almost entirely in two places. On Vitest 5 the plain agent got 0 of 5 in one pass and 3 of 5 with a shell, and on React Router 8 it got 3 of 5, while the Context7 arm went 5 of 5 on all three. On the rest, the two arms came out close.</p><p>My one-line interpretation goes like this. Current docs help most when a library changed in a way the build will not shout about, and help least when the model already knows the answer or the compiler tells it.</p><h3>What to change on your machine</h3><p>The fix is smaller than the bug. Add one sentence to your agent instructions telling it to check current docs before it writes code that touches a library. Without that sentence, the tool sits connected and unused, which is exactly what my first batch showed. What you get for that sentence is syntax that matches the version you run, and fewer bugs from changes the model never saw.</p><p>If you run the Context7 MCP server locally, pin it to 2.1.3 or later. Earlier versions had a prompt injection issue through the custom instructions feature, and 2.1.3 fixes it.</p><p>If you want to try it, a free key from the <a href="https://context7.com/dashboard?utm_source=gagan-deep-singh">Context7 dashboard</a> gets you 1,000 calls a month.</p><p>Which library in your stack changed this year, and would you hear about it from a failing test or from a customer?</p><p>Context7 and Upstash names and logos are trademarks of Upstash, Inc., shown because this is a sponsored post about their product.</p><p><strong>GDS K S</strong> · <a href="https://thegdsks.com/">thegdsks.com</a> · building <a href="https://glinr.com/">GLINR Studios</a> · follow on X <a href="https://x.com/thegdsks">@thegdsks</a></p><p><em>An agent sounds the same when right or wrong, so give it a reason to check.</em></p><p><em>An agent sounds the same when right or wrong, so give it a reason to check.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=570f5ddda18e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Put a Deploy Platform on a Fresh Linux Server in 45 Seconds]]></title>
            <link>https://gdsks.medium.com/i-put-a-deploy-platform-on-a-fresh-linux-server-in-45-seconds-ccada92df5fb?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccada92df5fb</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[self-hosted]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 18:41:40 GMT</pubDate>
            <atom:updated>2026-10-25T18:41:40.961Z</atom:updated>
            <content:encoded><![CDATA[<h4>What the install prints, what it asks of you, and what I would check before trusting it</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pSNRfHvOO0NWtuoAUIYX_g.png" /><figcaption>Cover image: install Levelrail on a fresh server</figcaption></figure><p>I had a clean Linux box and an app I did not want to pay Vercel or Heroku to run. No Kubernetes, no YAML maze. The question was simple: how much stands between a blank server and a first app serving traffic?</p><p>Part 1 of 4 in the Deploy and operate Levelrail series: 1. Install a Self-Hosted PaaS on Your Own Server in Five Minutes (this post); 2. <a href="https://levelrail.com/blog/rollback-failed-deploy-docker/">Roll Back a Failed Docker Deploy Without Downtime</a>; 3. <a href="https://levelrail.com/blog/restart-docker-app-without-downtime/">Restart a Docker Container Without Downtime</a>; 4. <a href="https://levelrail.com/blog/node-sigterm-graceful-shutdown-docker/">Node Graceful Shutdown in Docker: Handle SIGTERM on Deploy</a>.</p><p>I tested it with Levelrail, a self-hosted deployment platform I am building. I ran every step on v0.8.3 and pasted the real output below. The install itself took 45 seconds on my machine, Docker install included. A small VPS on a slower network will take longer.</p><h3>What the server needs</h3><p>Linux on amd64 or arm64, systemd, and root. CI tests Ubuntu 24.04 and Debian 12. Other distributions should work, but nobody has tested them.</p><p>Ports 80 and 443 should be open to the internet, because Let’s Encrypt uses port 80 to prove you own the domain. One vCPU, 1 GB of RAM and 10 GB of disk is enough to boot it. Two vCPUs with 2 GB is more comfortable once apps build on the box. The installer warns under 1 GB of RAM and stops under 10 GB of free disk.</p><h3>One command</h3><pre>curl -fsSL https://levelrail.com/install.sh | sudo sh</pre><p>The script runs preflight checks first and stops before it changes anything if one fails. This is the output from my run:</p><pre>Preflight checks:<br>  root       ok    running as root<br>  arch       ok    aarch64<br>  os         ok    Ubuntu 24.04.5 LTS<br>  systemd    ok    running<br>  curl       ok    found<br>  docker     ok    not found, will install via get.docker.com<br>  ram        ok    7836 MB<br>  disk       ok    829 GB free on /var/lib<br>  port 80    ok    free<br>  port 443   ok    free<br>  port 8080  ok    free</pre><p>After that it installs Docker if it is missing, downloads the release, verifies the cosign signature and the checksum, writes a systemd unit and waits for the control plane to answer. It also installs levelrail-cli.</p><p>It ends with a block worth keeping:</p><pre>Levelrail v0.8.3 installed and running.</pre><pre>Open the dashboard:<br>  <a href="http://server_ip:8080/login?setup=TOKEN">http://SERVER_IP:8080/login?setup=TOKEN</a></pre><pre>Create the first admin account with this one-time setup token:<br>  TOKEN</pre><pre>IMPORTANT: back up /var/lib/levelrail-data/master.key somewhere safe. Every stored<br>secret is encrypted with it, and it cannot be recovered if lost.</pre><pre>The dashboard is served over plain HTTP until you enable HTTPS.</pre><p>That master.key warning is the one line I would not skip. Every stored secret depends on that file.</p><h3>The first-run page</h3><p>Open the dashboard link and you land on a page titled “Set up the admin account”. It wants a username (not an email) and a password of at least 8 characters. In my run the setup token field came up empty, so I pasted the token by hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vi0kh7B2F-T-c8QTBQNLNw.png" /><figcaption>The Set up the admin account page with fields for setup token, username and password</figcaption></figure><p>If you closed the terminal, the server can print the token again:</p><pre>sudo APP_DATA_DIR=/var/lib/levelrail-data levelrail setup-token</pre><h3>A first app without a repo</h3><p>After the admin account you get a “Deploy your first app” card with three paths: a sample app, a template, or your own repo. The sample app runs nginx:alpine with a health check, so it works on any server. Levelrail waits for that check before it calls the deploy healthy, and then the Apps list shows the app as Healthy. A fresh app gets an automatic sslip.io address, so you can reach it without owning a domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nZaHvcM5qCPKcRXc-xS6fw.png" /><figcaption>The Apps list with sample-app running nginx alpine and a green Healthy status</figcaption></figure><h3>The warnings are the to-do list</h3><p>The Status page lists what a fresh install still warns about. Mine showed five: the Docker API guard, a rootful Docker daemon, the firewall check, the release signature pin, and no off-box backups for the control plane. Each comes with a fix action. Warnings on day one are normal, and I would treat them as a checklist, with off-box backups first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vRgKy_kZFLzN2Oci6X8tMA.png" /><figcaption>The Status page listing warnings a fresh install raises, with fix buttons</figcaption></figure><p>From a terminal, levelrail-cli doctor runs local checks:</p><pre>STATUS  CHECK               MESSAGE<br>OK      Docker daemon       reachable at /var/run/docker.sock<br>OK      Disk space          828 GiB free<br>WARN    Port 80 available   in use, expected if the control plane or another web server runs on this host<br>WARN    Port 443 available  in use, expected if the control plane or another web server runs on this host</pre><pre>All checks passed.</pre><p>The two port warnings are expected, since Levelrail itself now listens on 80 and 443.</p><h3>HTTPS</h3><p>The dashboard stays on plain HTTP until you turn HTTPS on. With no domain yet, open Domains in the dashboard and click “Enable HTTPS”, or run this:</p><pre>levelrail-cli settings ingress https enable --email you@example.com</pre><p>Until you do, the sslip.io HTTPS address shows a browser certificate warning, which is expected. With your own domain, use a subdomain made for the dashboard, like console.example.com, and do not reuse one an app already serves.</p><p>If an HTTPS URL breaks later and locks you out, set APP_ALLOW_INSECURE_LOGIN=true with sudo systemctl edit levelrail and restart the service.</p><h3>What I would check before trusting it</h3><p>Levelrail is young. A single server is the well-tested path, and multi-node and several newer features are beta. It has fewer users and less production time than the platforms it competes with, and it runs only on Linux.</p><p>I would run it on a spare server, with an app that can afford a bad afternoon, before I moved anything that matters. That is how I would test anything this young.</p><h3>Getting rid of it</h3><pre>curl -fsSL https://levelrail.com/install.sh | sudo sh -s uninstall</pre><p>It removes the service and the control plane binary and keeps /var/lib/levelrail-data. In my run it also left levelrail-cli, cosign, a 290 MB levelrail.releases folder under /usr/local/bin, and the running sample app container. Add --purge to delete the data directory, which wipes app and deploy state and makes every stored secret unreadable.</p><p>Levelrail is open source under Apache 2.0: <a href="https://github.com/glincker/levelrail">https://github.com/glincker/levelrail</a></p><p>What is the first thing you check on a fresh server before you put an app on it?</p><p>Next in the series: <a href="https://levelrail.com/blog/rollback-failed-deploy-docker/">Roll Back a Failed Docker Deploy Without Downtime</a></p><p>All parts: <a href="https://levelrail.com/blog/series/deploy-and-operate-levelrail/">Deploy and operate Levelrail</a></p><p>Originally published at <a href="https://levelrail.com/blog/install-levelrail-five-minutes/">https://levelrail.com/blog/install-levelrail-five-minutes/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccada92df5fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Health Check Failed. The Deploy Went Live Anyway.]]></title>
            <link>https://gdsks.medium.com/the-health-check-failed-the-deploy-went-live-anyway-4ec2ff93dad1?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ec2ff93dad1</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 18:32:13 GMT</pubDate>
            <atom:updated>2026-10-25T18:32:13.039Z</atom:updated>
            <content:encoded><![CDATA[<h4>A postmortem from our own test run, and why two correct parts added up to a bug</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0rHdFdxMJ4xLnruBZghzqA.png" /><figcaption>Cover image: a failed health check and a deploy that went live</figcaption></figure><p>The test was supposed to be the easy one. Push a commit whose health route returns a 500, and watch the platform refuse it while the old version keeps serving. This time the platform under test was our own.</p><p>On 2026–09–27, during a local run of Levelrail against a real app, the readiness check failed after 60 seconds with a ReadinessFailed condition. So far, correct. Then the ingress sent traffic to the new, failing container anyway. The previous container kept running, with nobody routed to it. And the platform recorded the deploy attempt as succeeded.</p><p>The system knew the container was unhealthy, and it sent users there.</p><h3>Where the bug lived</h3><p>Nobody had written a wrong line. Two pieces each did something reasonable.</p><p>The application controller tracked readiness correctly and wrote a Ready condition. The ingress, in a different part of the system, chose its target with a simpler rule: the container named after the desired image, as soon as it ran. Running, but not ready.</p><p>The readiness verdict existed, and the router never read it. The deploy attempt record had the same problem in miniature: it got written when the container started, so it never changed to failed when readiness failed later.</p><p>Two components that each hold half of a safety guarantee do not add up to a guarantee. Someone has to own the whole path from “probe failed” to “no traffic”.</p><h3>What we changed</h3><p>One pull request, two changes:</p><ul><li>The routing step now gates on the application controller’s stored Ready condition. If the new release is not ready, traffic falls back to the previous release that is still running, instead of cutting over early.</li><li>A failed readiness probe now flips the deploy attempt to failed, so the history shows what happened.</li></ul><p>We added tests for both. One fails readiness and checks the routing choice. One checks that a fresh deploy with failing readiness records the failure. One, at the storage layer, checks that the newest succeeded attempt flips to failed.</p><h3>The neighbors of the bug</h3><p>The same run turned up nearby problems, which is the usual pattern once you start trying to break something on purpose.</p><p>A rollback to a mistyped image tag returned exit code 0. The container could not start, the ingress dropped the route, and the app went offline while the old container was still running. The CLI now refuses a tag that is not present locally, names the tags it does know, and points at the right command.</p><p>A www redirect also disappeared after an env import, because every app save deleted and re-inserted the domain rows that redirect and certificate settings hang off. We fixed that one too.</p><p>None of these show up in a feature list. They showed up because we ran the platform against a real app and tried to make it fail.</p><h3>What it checks now</h3><p>Beyond routing on readiness, the controller verifies that the running container’s image matches the pinned digest the deploy intended. If it does not, the app reports Ready: False with ImageDigestMismatch and the previous release keeps serving. It never reports Deployed while the running content differs from what you shipped.</p><p>You can check an outcome from a script. The exit code of this command tells you the result:</p><pre>levelrail-cli apps deploys wait web</pre><p>Zero means healthy. Seven means failed, canceled, superseded or blocked. Six means the wait timed out.</p><h3>What is still open</h3><p>One item from that run was still open when we wrote the original post: confirming end to end that apps deploys wait reports a readiness failure correctly now that the attempt flips to failed. We expect it works as a side effect of the fix, and we have not verified it on its own.</p><p>Levelrail is young. The project labels single-server deployments production ready, and newer features are still beta. If you try it, run it beside your current setup for a full business cycle with real traffic. That is what surfaces the boring failures.</p><p>The code and the issue tracker are at <a href="https://github.com/glincker/levelrail">https://github.com/glincker/levelrail</a></p><p>Which part of your own deploy path decides what counts as “ready”, and does the router actually read it?</p><p>Originally published at <a href="https://levelrail.com/blog/health-check-passes-dead-container/">https://levelrail.com/blog/health-check-passes-dead-container/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ec2ff93dad1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker restart Costs You a Gap. Here Is the Count | Levelrail]]></title>
            <link>https://gdsks.medium.com/docker-restart-costs-you-a-gap-here-is-the-count-831220e05605?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/831220e05605</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[zero-downtime]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 18:24:39 GMT</pubDate>
            <atom:updated>2026-10-25T18:24:59.583Z</atom:updated>
            <content:encoded><![CDATA[<h4>152 requests around a rolling restart, 111 failures around a stop and start</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rquMW_l9vbXALZEJTd6QQ.png" /><figcaption>Cover image: restarting a Docker app without downtime</figcaption></figure><p>Sometimes an app just needs a fresh process. A leaked connection, a stuck worker, an environment variable you changed. The habit is docker restart, and it works like this: kill the container first, start it second. Every request in between fails.</p><p>I wanted the actual number, so I ran a request loop against a demo app, restarted it two different ways, and counted. The app ran on Levelrail, a self-hosted deployment platform I am building. All output below is from a real run.</p><h3>The loop</h3><p>One request every 200 ms, printing the status code, running for the whole experiment:</p><pre>while true; do curl -s -o /dev/null -w &#39;%{http_code} &#39; shop.localhost:8081/; sleep 0.2; done</pre><p>The app has a readiness check, which is the gate that makes a restart safe: traffic only moves to the new container once /healthz answers with a success status. I only measured restarts on an app that has one, so I do not claim the same without it.</p><h3>Restart, the rolling way</h3><pre>levelrail-cli apps restart shop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*ebw_t5GktXG4ej6l-OHMzQ.png" /><figcaption>The app overview with the more actions menu open and Restart as the first item</figcaption></figure><p>The command returns quickly, but the restart itself is asynchronous. I sampled docker ps once a second while it ran:</p><pre>14:47:24 shop-ff866c55=Up 27 seconds<br>14:47:25 shop-057b1fe5=Up 1 second shop-ff866c55=Up 28 seconds<br>14:47:36 shop-057b1fe5=Up 12 seconds shop-ff866c55=Up 40 seconds</pre><p>A new container (057b1fe5) appeared one second after the command, while the old one (ff866c55) stayed up. The pattern is: new container, readiness gate, switch, old one held. The switch happened about 10 seconds after the new container started.</p><p>Between 14:47:20 and 14:47:50 the loop sent 152 requests, and all 152 returned 200. Across every restart I did up to 14:56:00, including the failing ones below, the loop sent 2,581 requests with 0 non-200 responses.</p><p>A restart is not a deploy, so it does not appear in the deploys list. Look in the timeline:</p><pre>levelrail-cli apps timeline shop</pre><h3>The same job with stop and start</h3><pre>levelrail-cli apps stop shop<br>levelrail-cli apps start shop</pre><p>stop ran at 14:56:55 and start at 14:57:36. Stop took roughly 20 seconds to take effect. Between 14:57:15 and 14:57:47, 111 requests failed. That is about 32 seconds, mainly 404 No app is serving this address plus a handful of timeouts.</p><p>Stop then start is not a zero downtime restart. On a running app, use apps restart.</p><h3>What if the new container is bad?</h3><p>Zero downtime is only worth something if a bad restart does not take you down. I set an environment variable that makes the demo app answer 500 on /healthz, then restarted:</p><pre>levelrail-cli env set shop BAD=1<br>levelrail-cli apps restart shop<br>levelrail-cli apps status shop</pre><pre>TYPE               STATUS   REASON           MESSAGE<br>Ready              False    ReadinessFailed  readiness probe: never became ready (context deadline exceeded), last attempt: GET http://127.0.0.1:52838/healthz returned 500, expected 200-299</pre><p>The new container never passed readiness, so traffic never moved. Between 14:48:00 and 14:50:00 the loop sent 593 requests, all 200, all from the old container. The restart fixed nothing and broke nothing.</p><h3>What if it passes readiness and then dies?</h3><p>The harder case. I made the demo app exit with code 1 ten seconds after start (CRASH_AFTER=10) and restarted. About 2 minutes later:</p><pre>TYPE               STATUS   REASON                    MESSAGE<br>Ready              False    ExitedDuringStableWindow  Container exited with code 1 after 10s, during its stable window after becoming ready</pre><pre>pending changes: env CRASH_AFTER (run: levelrail-cli apps apply shop)</pre><p>The platform started the candidate again and again, and docker ps showed it flipping between Up and Exited (1). It never took over traffic. The previous container stayed up, and the loop sent 816 requests between 14:51:30 and 14:54:15 with 0 non-200.</p><p>apps status gives the reason and the exit code, and apps logs --tail 12 shows the last lines the process wrote. One caution: do not rely on apps deploys wait here. It reported &quot;never passed readiness&quot;, which is the wrong cause for a crash.</p><h3>Rough edges I would want to know about</h3><ul><li>apps restart returns exit code 0 as soon as it accepts the restart, even if the restart then fails readiness or crashes. Check apps status after it.</li><li>apps deploys wait is not meaningful for a restart. Right after a restart it answered healthy instantly about the old deploy.</li><li>After the failed restarts above, apps deploys list showed my first deploy (v1) as failed, and it stayed failed after the app recovered. Treat deploy history as unreliable after a failed restart.</li><li>Restarting a stopped app does nothing: the command exits 0, the timeline says Restarted, and the app stays Suspended. Use apps start.</li><li>A restart silently applies pending env changes, and apps status kept printing pending changes even after that.</li><li>The dashboard Restart button has no confirm step and no completion toast.</li></ul><p>All of these are tracked for the next release. A restart also leaves 3 to 4 containers around for a one replica app for up to the 5 minute hold window.</p><h3>The short version</h3><p>Give the app a readiness check, then use apps restart. In my run, 152 requests around a healthy restart all returned 200, and 0 requests failed across 2,581 in total. Stop then start cost 111. Poll apps status and your request loop to see how it went, not the deploys list.</p><p>The project is open source: <a href="https://github.com/glincker/levelrail">https://github.com/glincker/levelrail</a></p><p>What do you do today to check that a restart did not drop a request?</p><p>Originally published at <a href="https://levelrail.com/blog/restart-docker-app-without-downtime/">https://levelrail.com/blog/restart-docker-app-without-downtime/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=831220e05605" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Shipped a Broken Release on Purpose. 2,597 Requests, Zero Errors.]]></title>
            <link>https://gdsks.medium.com/i-shipped-a-broken-release-on-purpose-2-597-requests-zero-errors-8af2bc82ad16?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/8af2bc82ad16</guid>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 18:14:24 GMT</pubDate>
            <atom:updated>2026-10-25T18:14:24.432Z</atom:updated>
            <content:encoded><![CDATA[<h4>Watching a failed Docker deploy stay invisible to users, then rolling back with one command</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zxtg41NEOxjNQ_8X9mcUSg.png" /></figure><p>Shipping a bad release is not the rare event. Everyone does it. What decides how bad the day gets is what your users see while you notice, and how long the way back takes.</p><p>So I did it on purpose. A tiny demo app, three image tags: v1, v2, and a v3 that answers 500 on its health route. A request loop hit the app every 200 ms the whole time. Everything below is real output from Levelrail, a self-hosted deployment platform I am building.</p><h3>The setup that makes the rest work</h3><p>The health check is the whole trick. The platform only sends traffic to a container after the readiness route answers with a success status. Today you set it in the app manifest, so it goes in app.yaml before the first deploy:</p><pre>version: 1<br>services:<br>  shop:<br>    build:<br>      type: image<br>      image: lrdemo4/shop:v1<br>    port: 3000<br>    health:<br>      readiness: { path: /healthz, interval: 2s, timeout: 2s }<br>      readyTimeout: 20s</pre><p>Flags alone cannot set the health check at create time, so use the manifest with levelrail-cli apps create --file app.yaml. Nothing gates an app created without a health check until you add one.</p><h3>A good release, as a baseline</h3><pre>levelrail-cli apps deploy shop --image lrdemo4/shop:v2<br>levelrail-cli apps deploys wait shop</pre><p>The wait command printed healthy and returned exit code 0 after 12 seconds. In a second terminal, the request loop ran:</p><pre>while true; do curl -s -o /dev/null -w &#39;%{http_code} &#39; shop.localhost:8081/; sleep 0.2; done</pre><h3>The bad release</h3><p>Now v3:</p><pre>levelrail-cli apps deploy shop --image lrdemo4/shop:v3<br>levelrail-cli apps deploys wait shop</pre><pre>deploy dep_xcvhi99vIzwO of &quot;shop&quot;: failed<br>failure:  health_check_failed (retryable: false)<br>  cause:  The container started but never passed its readiness health check.<br>  fix:    Confirm health.readiness.path returns a success status quickly, or raise health.readyTimeout if the app just starts slowly.<br>  docs:   /deploy-failures#health_check_failed<br>  log excerpt:<br>    readiness probe: never became ready (context deadline exceeded), last attempt: GET http://127.0.0.1:58420/healthz returned 500, expected 200-299<br>    ReadinessFailed</pre><p>The command exited with code 7 after 22 seconds. The error names the cause, gives the fix in plain words and points at a docs page.</p><p>Here is the number I care about. Across the whole failed attempt, the loop sent 2,597 requests. Zero errors, and zero responses from v3. Every user kept getting hello from v2.</p><h3>One command back</h3><pre>levelrail-cli apps rollback shop<br>levelrail-cli apps deploys wait shop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EkGpnPfiMenWkwISfP4THA.png" /><figcaption>The deploy history after the rollback: the failed v3 row shows the readiness error and the fix</figcaption></figure><pre>rolling back to the previous successful deploy, image lrdemo4/shop:v2@sha256:4636cda09bca...<br>app &quot;shop&quot; rolling back to image &quot;lrdemo4/shop:v2@sha256:4636cda09bca...&quot;; reconcile is asynchronous, check &quot;levelrail-cli apps status shop&quot;<br>deploy dep_AKgDMUUOHY73 of &quot;shop&quot;: healthy</pre><p>It finished in 23 seconds. The status afterwards ends with the safety net:</p><pre>previous release held until 2026-10-24 13:48:25 (instant rollback target)</pre><p>The release you rolled back from stays available for a short window, so a second change of mind is instant too.</p><h3>Did it stay healthy?</h3><p>A rollback that fails minutes later is worse than none. So I watched for 8 minutes, past the 5 minute post-deploy watch window, sampling the served version every 30 seconds. All 14 samples served v2, no container restarted and the app stayed Healthy. The final deploy list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p6OzmBqlVSViBfaqcg2hiw.png" /><figcaption>The app overview in the dashboard showing a Healthy badge after the rollback</figcaption></figure><pre>ID                IMAGE            STATUS     ROLLOUT  REASON<br>dep_AKgDMUUOHY73  lrdemo4/shop:v2  succeeded  serving  -<br>dep_xcvhi99vIzwO  lrdemo4/shop:v3  failed     failed   ReadinessFailed<br>dep_AvQuhqaXo6oX  lrdemo4/shop:v2  succeeded  serving  -<br>dep_fIqxVZxrlCHT  lrdemo4/shop:v1  succeeded  serving  -</pre><h3>Three rough edges I found</h3><p>I would rather tell you than have you find them.</p><ul><li>About 21 seconds after the rollback command, v1 answered 6 requests over 1.2 seconds (all status 200) while a retry of the failed v3 deploy finished. The next reconcile pointed traffic back at v2.</li><li>The dashboard marks more than one deploy row as Current, and a rollback adds a new row for v2 instead of reusing the old one. The history is correct, the labels are not.</li><li>Set the health check before your first deploy.</li></ul><p>These are open issues, and I will update the original post as they are fixed.</p><h3>If you script it</h3><p>apps deploys wait exits 0 when the deploy is healthy, 7 when it failed, got canceled, superseded or blocked, and 6 when the wait timed out. That is enough to gate a CI step.</p><p>Levelrail is open source: <a href="https://github.com/glincker/levelrail">https://github.com/glincker/levelrail</a></p><p>What does your current setup show users while a release fails its health check?</p><p>Originally published at <a href="https://levelrail.com/blog/rollback-failed-deploy-docker/">https://levelrail.com/blog/rollback-failed-deploy-docker/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8af2bc82ad16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Tested Every Open-Source Brand SVG Library So You Don’t Have To (2026 Edition)]]></title>
            <link>https://javascript.plainenglish.io/i-tested-every-open-source-brand-svg-library-so-you-dont-have-to-2026-edition-4888f340ea4e?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/4888f340ea4e</guid>
            <category><![CDATA[svg]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 12:01:00 GMT</pubDate>
            <atom:updated>2026-06-04T12:01:00.230Z</atom:updated>
            <content:encoded><![CDATA[<p>Every developer hits the same wall.</p><p>You need a Stripe logo for your integrations page. A GitHub icon for your login button. Maybe 30 brand logos for a “Powered by” section.</p><p>So you Google it. You find a blurry PNG from three years ago. You try the brand’s press kit. Login wall. You check Figma Community and find the old logo. An hour later you’re tracing vectors by hand.</p><p>I got tired of this. So I went through every major open-source brand SVG library and tested them in real projects. Five of them are actually worth using. Here’s what I found.</p><h3>The Short Version</h3><p><strong>theSVG</strong> (4,000+ icons). Largest collection. Has dark, light, mono, and wordmark variants for each icon. Ships npm packages for React, Vue, and Svelte. Also has a CLI and an MCP server for AI coding assistants. Newest of the bunch.</p><p><strong>Simple Icons</strong> (3,400+ icons). The one most developers already know. Monochrome only, but 24K GitHub stars and 200K weekly npm downloads speak for themselves. Rock solid.</p><p><strong>Font Awesome</strong> (~500 brand icons in the free tier). The most widely used icon library on the web. Brand icons are a side feature, not the focus, but if you already use it for UI icons, it keeps your stack simple.</p><p><strong>svgl</strong> (400+ icons). The prettiest website of the group. Built with SvelteKit. Great for browsing and quick copy-paste. Smaller collection.</p><p><strong>Super Tiny Icons</strong> (475 icons). Every SVG is under 1KB. Average file size is 534 bytes. Nothing else comes close for performance-critical use cases like email templates.</p><p>Now for the details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKUGaLPcYBs5hva5Tch-SQ.png" /></figure><h3>1. theSVG</h3><p><strong>Website:</strong> thesvg.org <strong>GitHub:</strong> github.com/GLINCKER/thesvg <strong>Icons:</strong> 4,000+ across 20+ categories <strong>License:</strong> MIT</p><p>theSVG launched recently with over 4,000 brand icons, making it the largest brand-focused SVG library out there.</p><p>The standout feature is <strong>variant support</strong>. Where other libraries give you one version of each logo, theSVG gives you up to five: full color, monochrome, light-background optimized, dark-background optimized, and wordmark.</p><p>This is the kind of thing you don’t think about until you’re building a dark-mode app and half your brand logos disappear against the background. With theSVG you swap default for dark and move on. No Figma detours.</p><h3>Developer tooling</h3><p>The npm package tree-shakes down to only the icons you actually import. One icon runs about 3KB.</p><pre>npm install thesvg</pre><pre>import github from &#39;thesvg/github&#39;;<br><br>github.svg;       // raw SVG string<br>github.title;     // &quot;GitHub&quot;<br>github.hex;       // &quot;181717&quot;<br>github.variants;  // { default, mono, light, dark }</pre><p>Official packages exist for <strong>React</strong>, <strong>Vue</strong>, and <strong>Svelte</strong>. All typed, all tree-shakeable, all zero runtime dependencies.</p><pre>import { Github, Stripe, Figma } from &#39;@thesvg/react&#39;;</pre><p>There’s a <strong>CLI</strong> for searching and pulling icons from the terminal:</p><pre>npx @thesvg/cli search &quot;payment&quot;<br>npx @thesvg/cli add stripe paypal square --format jsx</pre><p>Every icon gets a <strong>permanent CDN URL</strong> that works in README files, docs, emails, Notion, dashboards:</p><pre>https://thesvg.org/icons/github/default.svg<br>https://thesvg.org/icons/vercel/light.svg<br>https://thesvg.org/icons/spotify/wordmark.svg</pre><p>The feature I haven’t seen anywhere else is the <strong>MCP server</strong>. Claude, Cursor, Windsurf, and other AI coding assistants can search and embed all 4,000+ icons natively. You tell your assistant “add a GitHub icon” and it grabs the actual SVG. No other brand icon library does this yet.</p><p><strong>Where it shines:</strong> Projects that need brand logos in multiple color variants. React/Vue/Svelte teams. AI-assisted development.</p><p><strong>Where it falls short:</strong> Newer project, smaller community than Simple Icons. Figma plugin is still in progress. Some niche brands haven’t been added yet.</p><p><strong>Browse the full collection at thesvg.org</strong></p><h3>2. Simple Icons</h3><p><strong>Website:</strong> simpleicons.org <strong>GitHub:</strong> github.com/simple-icons/simple-icons <strong>Stars:</strong> 24,600+ | <strong>Icons:</strong> 3,400+ | <strong>npm:</strong> ~200K/week <strong>License:</strong> CC0 1.0</p><p>If you’ve worked with brand icons before, you’ve probably used Simple Icons. It’s been around for years, has a huge community, and just works.</p><p>Every icon is a <strong>single monochrome SVG path</strong> paired with the brand’s official hex color code. The visual consistency is excellent. Every icon follows the same guidelines for size, detail, and style.</p><pre>import { siGithub } from &#39;simple-icons&#39;;<br>siGithub.svg;   // SVG string<br>siGithub.hex;   // &quot;181717&quot;</pre><p>The ecosystem is well established. The community React wrapper gets 87K weekly downloads on its own. There are plugins for Figma, Raycast, and Alfred. Iconify includes Simple Icons as a first-party set, so they work anywhere Iconify does.</p><p>One thing to know: Simple Icons runs a “Great Icon Review” where icons below certain popularity thresholds get removed. It keeps quality high, but your favorite niche brand might not make the cut.</p><p><strong>Where it shines:</strong> Monochrome brand icons with maximum community trust and ecosystem support.</p><p><strong>Where it falls short:</strong> Mono only. No color variants, no dark/light versions, no wordmarks. If you need the actual full-color brand logo, this isn’t the library. No CLI or REST API either.</p><h3>3. Font Awesome</h3><p><strong>Website:</strong> fontawesome.com <strong>GitHub:</strong> github.com/FortAwesome/Font-Awesome <strong>Stars:</strong> 76,400+ | <strong>Free brand icons:</strong> ~500 | <strong>npm:</strong> ~1.8M/week</p><p>Font Awesome is the biggest icon library on the web. 76K GitHub stars. 1.8 million weekly npm downloads. It’s everywhere.</p><p>The free tier has about <strong>500 brand icons</strong> alongside 1,500+ general UI icons. All brand icons are free across every tier, which is a nice touch. Version 7 dropped in 2025 with 300+ new icons and 30 styles.</p><p>Official components for React, Vue, and Angular.</p><p>Here’s the thing though. Font Awesome is a general-purpose icon library. Brand icons are a side feature. The ~500 free brand icons cover the big names well, but there are real gaps compared to libraries that focus on brands. The SVGs also tend to be heavier since the library grew out of a font-based system.</p><p>Font Awesome Pro ($99/year for individuals) opens up 63,000+ icons across 30 styles. Good value if you need UI icons and brand icons from one source.</p><p><strong>Where it shines:</strong> Teams already on Font Awesome for UI icons. Projects that want one icon library for everything.</p><p><strong>Where it falls short:</strong> Only ~500 free brand icons. No light/dark/wordmark variants. Heavier than SVG-only libraries. Pro costs money.</p><h3>4. svgl</h3><p><strong>Website:</strong> svgl.app <strong>GitHub:</strong> github.com/pheralb/svgl <strong>Stars:</strong> 5,600+ | <strong>Icons:</strong> 400+</p><p>svgl doesn’t try to be the biggest. It tries to be the nicest to use. And it succeeds.</p><p>Built with SvelteKit and Tailwind CSS, the website is genuinely well designed. Browsing feels more like a design tool than a developer utility. Each icon shows light and dark variants with a clean toggle. Search is fast. Copy-to-clipboard is smooth.</p><p>There’s a public API at svgl.app/api/svgs and the community has built extensions for React, Vue, Svelte, Figma, Raycast, and VS Code. Pretty good for a project this size.</p><p>The trade-off is obvious: ~400 icons is a fraction of what Simple Icons or theSVG offer. If you need a niche brand, it probably isn’t here.</p><p><strong>Where it shines:</strong> Quick visual browsing. Grabbing popular logos fast. Design-minded teams.</p><p><strong>Where it falls short:</strong> ~400 icons. No npm package for programmatic use. No CLI. No tree-shaking.</p><h3>5. Super Tiny Icons</h3><p><strong>Website:</strong> github.com/edent/SuperTinyIcons <strong>GitHub:</strong> github.com/edent/SuperTinyIcons <strong>Stars:</strong> 15,300+ | <strong>Icons:</strong> 475</p><p>Super Tiny Icons has one rule. <strong>Every SVG must be under 1 kilobyte.</strong></p><p>Average file size: 534 bytes. Some icons come in at 180 bytes. Each one is hand-optimized with stripped metadata, simplified paths, and rounded coordinates.</p><p>No npm package. No CLI. No framework components. Just a folder of very small SVG files. Clone the repo, grab what you need, ship it.</p><p>For perspective, a typical brand SVG from other libraries weighs 3–10KB. Super Tiny Icons delivers the same recognizable logos at <strong>10 to 20 times smaller</strong>. For email templates, IoT dashboards, or apps targeting slow connections, this is hard to beat.</p><p>The icons are simplified to hit the size target. Fine details are gone. But at 16–32px (which is where most brand icons render), the difference barely registers.</p><p><strong>Where it shines:</strong> Email templates. IoT dashboards. Progressive web apps on slow networks. Anywhere file size matters more than pixel-perfect detail.</p><p><strong>Where it falls short:</strong> 475 icons. Simplified artwork. No variants. No developer tooling. Not great for large-size display.</p><h3>How to Pick</h3><p><strong>Need the most brand icons with dark/light variants?</strong> theSVG.</p><p><strong>Need a battle-tested library with a huge community?</strong> Simple Icons.</p><p><strong>Already using Font Awesome for UI icons?</strong> Stick with Font Awesome.</p><p><strong>Just need to grab a few logos fast?</strong> svgl.</p><p><strong>File size is everything?</strong> Super Tiny Icons.</p><p><strong>Working with AI coding assistants?</strong> theSVG. It’s the only brand library with an MCP server.</p><h3>What’s Next for Brand SVGs</h3><p>The space has matured a lot. Five years ago, finding a clean brand SVG meant digging through press kits. Now there are multiple good libraries with npm packages, CDN support, and real communities behind them.</p><p>A few things stand out heading into 2026 and beyond.</p><p><strong>Dark mode variants are becoming expected.</strong> Dark mode isn’t a nice-to-have anymore. If a library only ships one version of each logo, developers end up making the dark variant themselves. theSVG is the only one handling this at scale right now. Expect others to follow.</p><p><strong>Tree-shaking is non-negotiable at scale.</strong> When a library has 3,000+ icons, you can’t bundle them all. Per-icon entry points that let bundlers drop unused imports are the standard now. Both theSVG and Simple Icons do this well.</p><p><strong>AI assistants are changing the workflow.</strong> More developers are building with Claude, Cursor, or Windsurf. Having an AI assistant that can search and embed brand icons directly through MCP saves time on a task you’d otherwise do manually. This is still early, but the direction is clear.</p><h3>Links</h3><p><strong>theSVG:</strong> thesvg.org / npm i thesvg</p><p><strong>Simple Icons:</strong> simpleicons.org / npm i simple-icons</p><p><strong>Font Awesome:</strong> fontawesome.com / npm i @fortawesome/fontawesome-free</p><p><strong>svgl:</strong> svgl.app / Copy from website</p><p><strong>Super Tiny Icons:</strong> github.com/edent/SuperTinyIcons / Clone repo</p><p>All five are open source and free. Use one, use all five. Whatever fits.</p><p>There’s no reason to hunt for brand SVGs manually anymore.</p><p><em>Brand icons and logos mentioned are the property of their respective trademark holders.</em></p><p><strong>For a full interactive comparison of 7 libraries with a feature matrix, check thesvg.org/compare.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4888f340ea4e" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/i-tested-every-open-source-brand-svg-library-so-you-dont-have-to-2026-edition-4888f340ea4e">I Tested Every Open-Source Brand SVG Library So You Don’t Have To (2026 Edition)</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I asked Cursor to rename a function. It sent 8,400 tokens. I checked.]]></title>
            <link>https://gdsks.medium.com/i-asked-cursor-to-rename-a-function-it-sent-8-400-tokens-i-checked-f43854d19929?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/f43854d19929</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cursor]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Wed, 13 May 2026 04:03:13 GMT</pubDate>
            <atom:updated>2026-05-13T04:03:13.953Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The afternoon I learned what my AI subscription was actually doing, and the 200 lines that took my next bill down 41 percent.</em></p><p>I had been using Cursor for six months when I noticed the discrepancy. I was renaming a function. A short one. Three lines of body. One call site. The kind of refactor that takes, at most, six seconds of human attention.</p><p>I had two windows open. The Cursor chat panel where I had typed “rename getUser to fetchUser”. And the Anthropic console in another tab, because I had been debugging a different project earlier and forgot to close it.</p><p>The Anthropic console refreshed while the Cursor request was in flight. I watched the token counter tick up live. The number it landed on for that single rename request was 8,400 input tokens. The actual prompt I had typed was eleven words.</p><p>I sat there for a moment. Then I opened a fresh terminal and made the same call directly through the Anthropic API with my own minimal prompt. Same model. Same intent. Same outcome.</p><p>The direct call used 1,900 input tokens. Cursor had sent 6,500 extra tokens of context to perform the same rename.</p><p>That observation was the start of the spreadsheet that ate the next four hours of my evening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYIaxz0Yu91sRJaea87-dg.png" /></figure><h3>What was in those 6,500 tokens</h3><p>I do not have inside knowledge of Cursor’s internals. I have my own experiments and the public documentation, neither of which gives a complete picture. Here is what I have: when I ran the same prompt 50 times across different parts of my codebase, the input token count varied between roughly 4,000 and 14,000 with a median around 8,000. The variation correlated loosely with how many open buffers I had and how recently I had viewed files in the same directory.</p><p>The reasonable inference is that Cursor was sending me a system prompt, plus indexing context derived from my recent activity, plus tool definitions for the agent framework, plus the actual prompt I had typed. The first three are the routing layer doing its job. The fourth was the only one I could see in the chat panel.</p><p>Some of that context helps. When I ask for a refactor that touches several files, Cursor knowing about those files is the entire point. When I ask to rename a function whose call sites fit in three lines of context, sending 6,500 tokens of unrelated buffer state is the routing layer playing it safe on my behalf in a way that benefits Cursor more than it benefits me.</p><p>Cursor charges a fixed seat fee. Anthropic charges Cursor by the token. The math runs the wrong direction for me as a heavy user, because the marginal token cost ends up in my own direct API calls (which Cursor’s seat does not cover) plus the fixed seat itself. Conservative context is cheap to ship and expensive to consume. The incentive lands on the wrong side of the table.</p><h3>The bill that made me pay attention</h3><p>My March bill arrived on April 2. The Anthropic line item had grown 50 percent month over month for three months running. Cursor at $20 was flat. Copilot at $10 was flat. The variable line was the API I was hitting from my own CLI for things Cursor was not the right tool for.</p><p>The growth was not from doing more work. I checked. My weekly logged hours were stable. The growth was from an increasing fraction of those hours involving AI calls that I was making more casually because the AI was getting more useful.</p><p>The trend was straight. If I extrapolated, by August I was going to be paying more in direct Anthropic API spend than in Cursor seats, and my Cursor seat would still be running the same conservative context overhead on every chat panel turn. The bill was going to keep growing in two places at once.</p><p>I cancelled Cursor that weekend.</p><h3>The 200 lines</h3><p>The thing I built to replace the routing piece of Cursor was small enough to embarrass me for not having built it months earlier. A regex based intent classifier with five rules. Trivial prompts route to Haiku. Code prompts route to Sonnet. Planning prompts route to Opus. Embedding-style classification prompts route to a cheap OpenAI model. Default to Sonnet if nothing matches.</p><p>That is the entire routing logic. Two hundred lines of TypeScript including imports, error handling, a pricing table, and a cost calculator that logs every call. The full file fits on one screen if you have a tall display.</p><p>I tested it on a hundred prompts I had logged from the previous week. The breakdown shifted hard. Sonnet went from 70 percent of calls to 25 percent. Haiku went from zero to 60 percent. Opus stayed at 5 percent. The estimated cost reduction was 47 percent on the test set.</p><p>I did not believe the number. I assumed I had a bug. I instrumented the router to log the actual model picked per prompt and the cost in real time, and I ran my normal workflow for two weeks. The actual reduction came in at 41 percent on the May 2 bill, with 30 percent more total calls because the cheaper per call cost made me reach for AI more often.</p><h3>What I did not understand before</h3><p>The routing layer is the most valuable part of the AI tool stack right now, and the wrappers want to own that part most of all.</p><p>Every coding tool I have looked at in the last 90 days has shipped a model dropdown. Cursor added one. GitHub Copilot added one. Windsurf added one. The story they tell is customer choice. The story underneath, I think, is that they have all noticed the same thing I noticed in April. The user can route their own calls. The user is starting to. If the wrappers do not own the routing layer, they own a chat panel and an autocomplete and not much else.</p><p>The chat panel is real value. The autocomplete is real value. They are not $20 a month of value for a heavy user who would prefer to route directly. They are maybe $5 to $10 a month of value, sized to the actual work they save.</p><p>I think we are two quarters away from a wave of users doing this exercise. The wrappers know that. The pricing pages are starting to reflect it.</p><h3>What I would tell my March self</h3><p>Three things, in the order they matter.</p><p><strong>The first:</strong> open the Anthropic dashboard. Look at the input token count on three of your normal Cursor turns. If the number runs more than 3x your direct call baseline, the routing layer is not earning its cost on your usage pattern. That does not mean cancel. That means notice.</p><p><strong>The second</strong>: log every AI call you make for one week. Cost per call, model picked, prompt length, output length. The log takes twenty lines of code per provider. The data will surprise you. No honest way exists to optimize a bill you cannot see.</p><p><strong>The third</strong>: write the router. Two hundred lines. The first version does not have to be smart. Five regex rules for intent capture 70 percent of the savings. Iterate on the rules later.</p><p>The reason I would tell my March self these things: I would have done the same exercise three months earlier and saved roughly $300 in subscription overlap. The cost of doing the exercise: one Saturday afternoon. The cost of not doing it: whatever your bill grows to in the next quarter, which for most people building with AI right now lands at a number bigger than they want to admit.</p><h3>What this does not solve</h3><p>The router does not give me a multi file editing agent. It does not index my codebase. It does not know about my open buffers. It does not autocomplete inline. None of that is its job.</p><p>I kept Copilot for the inline ghost text in VS Code, because that is a different product solving a different problem and the $10 is not the line that hurts. For the multi file agent work I would have used Cursor for, I now use Claude Code from the terminal, which I pay for separately through my Max plan. The total stack is cheaper than Cursor plus my old direct API spend.</p><p>If your usage pattern is different, your math will be different. If you live in the chat panel and rarely go outside it, Cursor is probably still a fair trade. If your AI work spans chat, agent loops, embedding pipelines, and one off CLI calls, the routing layer is the one piece worth owning yourself.</p><h3>The closing</h3><p>The bill came in on April 2. The new bill came in on May 2. The difference between them was 41 percent and 200 lines of code and one weekend afternoon I was going to spend half asleep in front of a movie.</p><p>The lesson should have been obvious. The wrappers have an incentive to send more tokens than necessary. The user has an incentive to send fewer. The routing layer is where the two incentives meet. Whoever owns the routing layer wins.</p><p>The routing layer can be 200 lines of yours.</p><p>What is the line on your AI bill that grew the fastest last month? Drop it in a reply. I read everything.</p><p><em>Written by **GDS K S</em>* (<a href="https://thegdsks.com/">thegdsks.com</a>), building <a href="https://glincker.com/">Glincker</a>.*<br><em>If this was useful, follow me on </em><a href="https://x.com/thegdsks"><em>X / @thegdsks</em></a><em>. I write about the parts of the AI stack vendors keep off the pricing page.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f43854d19929" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Audited Our $8,362 AWS Bill. Lambda Was the Cheapest Line.]]></title>
            <link>https://gdsks.medium.com/we-audited-our-8-362-aws-bill-lambda-was-the-cheapest-line-b5354fab6d8d?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5354fab6d8d</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Tue, 12 May 2026 04:48:34 GMT</pubDate>
            <atom:updated>2026-05-12T04:48:34.809Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The pricing page named the wrapper. The bundle was always the real product. Six weeks later our bill was 79% smaller. Here is what we found, with receipts.</em></p><p>The first time anyone on our team said “Lambda is dead” out loud was over a Tuesday morning standup. Our infra lead had the AWS billing dashboard open on a second screen. He kept turning to look at it like the number was going to change if he stared hard enough.</p><p>Eight thousand three hundred and sixty-two dollars. For the month. On serverless.</p><p>We had been forecasting around four. We had built the entire pricing model in our seed deck around four. We had been telling ourselves and our investors that the unit economics of our agent platform worked because Lambda was, in the original sense of the word, cheap. We were the ones who introduced the slide that said “serverless = elastic costs.” We were the ones who repeated it at the all-hands.</p><p>We had also, somehow, never added up everything that AWS billed alongside Lambda.</p><p>We added it up. The answer was that Lambda was twenty-two percent of the bill. The thing the pricing page named. The thing we had been optimizing for two years. The thing the architecture diagram opened with. A fifth of what we were actually paying for. The rest was the bundle around it.</p><p>That was the day we started rewriting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ee5K6AEXb3xxgrheieZo5Q.png" /></figure><p>We are writing this piece because we keep watching teams that look like us, two and three year old companies with steady traffic and tight margins, build the same architecture we did. They open the AWS console. They click on Lambda because that is what their last company used. They wire it up behind API Gateway because that is what the tutorial said. They convince themselves that the bill is going to look like the pricing page.</p><p>The bill never looks like the pricing page.</p><p>This piece is going to commit to one position and we are not flipping at the end. Lambda is dead for the workload most teams actually build. Not as a hot take. As a finding. We are not softening the close with a “but check your needs carefully” disclaimer, because every article that ends with that disclaimer is the article that talked us into staying on Lambda for an extra year. A <a href="https://medium.com/infradecodedops/aws-lambda-is-your-worst-performing-cost-saver-the-2026-cold-start-data-will-shock-you-0822418e57c8">February piece by Sandesh on InfraDecodedOps</a> pulled the same trigger and we wish we had read it in 2024. The 23% cold-start figure we keep referencing comes from his data. The 1.8 second p99 comes from his data. We replicated both inside our own fleet.</p><h3>The bill, line by line</h3><p>Here is what a real month looked like for our backend. Redacted only for vendor specifics.</p><p>ServiceCostShareLambda invocations and duration$1,84722%API Gateway$1,61219%CloudWatch Logs$1,39817%NAT Gateway hours$1,28715%Data egress$1,09413%X-Ray, KMS, Secrets Manager, parameter store$1,12414%Total$8,362100%</p><p>For most of 2024 and 2025 we had treated this as a Lambda problem. We shaved fifty milliseconds off cold starts. We migrated functions from Python to Node and back to Python depending on the latest blog post. We tuned memory allocations because the AWS documentation said memory was a proxy for CPU. We swapped two functions to ARM64. We felt clever.</p><p>We were rearranging deck chairs on the part of the bill that mattered least.</p><p>Look at the table again. CloudWatch Logs is bigger than Lambda. NAT Gateway is most of a Lambda line. Data egress is almost a Lambda line. The line item we had been treating as the cost was the smallest line item in the top six.</p><p>This is the part of the bill that does not show up in tutorials. CloudWatch Logs costs what CloudWatch Logs costs because Lambda functions log by default and the default retention is forever and nobody on a small team has time to audit log group settings every quarter. <a href="https://leanopstech.com/blog/aws-lambda-pricing-2026/">LeanOps did a 2026 pricing teardown</a> that put the base Lambda numbers at 20 to 40 percent of total serverless spend for typical accounts. Our 22 percent landed right in the middle of their range. NAT Gateway hours apply when functions reach private RDS or any third-party API and a NAT sits in the path. Data egress at nine cents per gigabyte compounds with every response payload that leaves a region. None of this is on the Lambda pricing page. None of it shows up when a developer estimates capacity. Every line is real and every line grows linearly with the thing AWS told you was cheap.</p><p>We started calling this pattern the Token Tab last year. The headline price advertises the wrapper. The real money is in the orchestration around it. AWS did not invent this pattern. They just run the most disciplined version of it.</p><h3>The August 2025 change that moved the floor</h3><p>In August of last year, AWS quietly changed how Lambda billed cold start initialization time. Before the change, INIT time was free for managed runtimes. After the change, INIT bills as duration.</p><p>For a JVM function with eight hundred milliseconds of initialization, every cold invocation now costs another eighty percent on top of the actual work. The change shipped in a release note. Not a press cycle. The math just shifted under everyone’s feet.</p><p>The old folk wisdom said Lambda was cheaper than Fargate until you crossed roughly twenty million invocations a month. With INIT billing layered onto the bundle pricing, <a href="https://dev.to/alanwest/aws-lambdas-hidden-costs-when-to-migrate-to-containers-and-how-2h1n">the crossover dropped closer to two million</a> for typical API workloads. That is a ten-fold shift in three years. Nobody updated the blog posts.</p><p>We were at four million invocations. We had been on the wrong side of the line for months without knowing it. The discovery felt like finding out you had been paying for a gym membership at a gym you walked past every day on the way to a different gym.</p><p>When we found out about the INIT change, the migration stopped feeling like a strategic bet and started feeling like an evacuation. We moved faster the second week than we did the first.</p><h3>What the comparison articles never say plainly</h3><p>Every comparison piece we read while researching the move sounded the same. Lambda is great for these workloads. Workers is great for those. Cloud Run is in the middle. Pick the one that matches your needs.</p><p>What we want to say, and what we have not seen anyone else say plainly, is that for the typical workload most teams build, an HTTP-fronted API, a webhook receiver, an auth middleware, an edge function for personalization, Lambda is no longer the right answer. The cold start tax, the bundle pricing, and the V8 isolate alternatives have moved the math past it.</p><p>This is not a “use the right tool for the job” essay. This is a “the job changed and the tool did not” essay.</p><p>Here is the comparison table that should be at the top of every serverless conversation in 2026. We made this for ourselves during the audit. The pricing is approximate, the cold starts come from production benchmarks reported by independent teams, and the deep links go to the canonical comparison piece for each platform.</p><p>PlatformCold startBilling modelFree egressSweet spot<a href="https://www.vantage.sh/blog/cloudflare-workers-vs-aws-lambda-cost">AWS Lambda</a>200–700ms (cold), bills INIT since Aug 2025Wall clock + bundleNo ($0.09/GB)AWS-native event glue, GPU jobs<a href="https://leaper.dev/blog/cloudflare-workers-vs-lambda-2026">Cloudflare Workers</a>2–5ms (V8 isolate)CPU time onlyYes (R2 zero)HTTP APIs, edge, webhooks<a href="https://blog.rebalai.com/en/2026/03/09/cloudflare-workers-vs-aws-lambda-which-edge-runtim/">Google Cloud Run</a>50–200msWall clockYes within regionContainer portability, ML inference<a href="https://leanopstech.com/blog/aws-lambda-pricing-2026/">Azure Functions Premium</a>Pre-warmed (0)Flat + per-execNoEnterprise, no-cold-start needed<a href="https://dev.to/alanwest/aws-lambdas-hidden-costs-when-to-migrate-to-containers-and-how-2h1n">Fly.io Machines</a>250ms-2s (cold)Per-second machineLimitedStateful regional apps, full VM control<a href="https://leaper.dev/blog/cloudflare-workers-vs-lambda-2026">Railway</a>Container bootUsage-basedYesSolo and small team backend hosting</p><p>You can read those comparison posts and end up with the same conclusion we did. Workers won for our workload by a margin that closed the conversation. We do not run GPU jobs. We do not have container portability requirements that need Cloud Run. We are not large enough that the Azure Premium plan math works. Workers is where our HTTP-fronted, idle-CPU, network-bound API functions belonged.</p><h3>What we changed, in order</h3><p>Six weeks of work, end to end. The order mattered more than we expected.</p><p>The first week was discovery. We pulled a thirty-day Cost Explorer report and tagged it by function name. Twelve functions accounted for seventy-eight percent of Lambda spend. Eight of those twelve were HTTP-fronted APIs. Network-bound. Idle CPU between calls. Exactly the workload V8 isolates target.</p><p>Weeks two and three were ports. We rewrote the eight HTTP-fronted APIs to Cloudflare Workers. The ports were faster than we expected. Most landed at fifty to two hundred lines of TypeScript. The hardest part was replacing AWS SDK calls with vendor-agnostic clients or with direct fetch calls against the underlying APIs. Our senior engineer who had built three years of AWS SDK wrappers was not happy. He came around in week four after watching the on-call channel go quiet.</p><p>Week four was the traffic shift. We moved DNS one function at a time. We watched logs for two days per function. Nothing broke. The p99 latency on the auth path dropped from one point eight seconds to eighty milliseconds. Customer support tickets about “the app feels slow when I open it” stopped within a week. We never advertised the change. The users just started having a better Monday.</p><p>Week five was the teardown. This is the week that captured a third of the savings. We started shutting down API Gateway routes for the migrated functions. We deleted CloudWatch log groups that no function was writing to. We cancelled a Datadog integration that had been forwarding CloudWatch metrics for two hundred dollars a month and that nobody remembered renewing. We removed the NAT Gateway dependency that the eight HTTP-fronted functions had been using. That single change cut about four hundred dollars a month from the bill.</p><p>Week six was monitoring. The new total stabilized at one thousand seven hundred and ninety dollars. The old total was eight thousand three hundred and sixty-two. The migration paid for itself in roughly two weeks of saved spend. Our infra lead stopped staring at the billing dashboard. He moved on to staring at the latency dashboard, where the news was also good.</p><h3>What we kept on Lambda, and why</h3><p>We want to be honest about what stayed. Four functions remained on Lambda.</p><p>A nightly batch job that reads from DynamoDB and writes to S3. An SQS consumer that processes payment events. An S3-triggered thumbnailer that uses Sharp. A Cognito post-confirmation hook. All four are AWS-native event glue. None of them are HTTP-fronted. They live or die on AWS event sources.</p><p>Lambda is still correct for those workloads. The orchestration bundle pays for itself when the workload is already inside the bundle. The thumbnailer reads from S3 and writes to S3. Moving that workload to a non-AWS runtime would mean paying egress to pull the original image and ingress to push the resized version, which would erase the savings on day one.</p><p>For everything else, Lambda is now a misfit. Not a controversial misfit. Just a clear one. And we are not the only team that has reached this conclusion. A <a href="https://www.sitepoint.com/case-study-cloud-to-local-ai-pwa/">public migration case study at SitePoint</a> describes a team that moved a Node.js Lambda proxy entirely into the browser as a PWA and cut their bill from $2,400 a month to $140. A more aggressive version of our story but it points in the same direction.</p><h3>Why we are committing to this position</h3><p>We are writing this piece as a commitment because the article we kept reading about this topic always ended with a paragraph that said “but Lambda is still great for these workloads, and you should check your needs carefully.” That sentence is true. Also useless. We read that sentence for two years and it talked us out of the migration every time, until the bill got loud enough to override the disclaimer.</p><p>What we want to say instead is this. If you are starting a new project in 2026 and the architecture diagram opens with Lambda behind API Gateway, ask why. Ask it out loud, in a room, with your team. The honest answer is almost always organizational momentum, not technical fit. Someone at your company built this pattern at their last job. The first hire wired it up because the AWS reference architecture said to. Nobody questioned it because nobody had time to do a Cost Explorer audit.</p><p>The companies we see migrating off Lambda are not doing it for ideology. They are doing it because the bill stopped being legible. They are doing it because the cold start budget on customer-facing endpoints ran out. They are doing it because a two hundred millisecond response budget cannot accommodate a one point eight second p99 tail.</p><p>The arithmetic does not care about your AWS reserved instance commitment. The arithmetic does not care that you presented the original Lambda decision at a board meeting in 2023. The arithmetic is just the arithmetic.</p><h3>What we tell other founders now</h3><p>When other founders ask us about our infra costs over coffee, the conversation runs the same way every time. They ask what we use. We tell them. They open their phone, log into their AWS console, and stare at it for thirty seconds. Then they ask if we are sure about the Workers thing. We show them the bill before and after.</p><p>Three of those founders have since migrated. None have come back to Lambda. The math becomes legible and the decision becomes obvious.</p><h3>The close</h3><p>The thing we missed for two years is that the pricing page was advertising the wrapper. The bill was for the orchestration. Lambda at twenty cents per million is a loss leader for everything else AWS sells you. API Gateway is the route table. CloudWatch is the observability tax. NAT is the egress tax. Data transfer is the goodbye tax.</p><p>You do not pay for compute. You pay for the bundle. The bundle has become more expensive than the alternatives that ship with the same features included.</p><p>The piece we are committing to today is not “Lambda has problems and you should consider alternatives.” Writers have shipped that piece a hundred times and it has not moved anyone. This is the piece we needed to read in February 2024. Lambda is dead for the workload most teams actually build. The pricing page never told us why. The bill did.</p><p><strong>GDS K S</strong> · <a href="https://thegdsks.com/">thegdsks.com</a> · follow on X <a href="https://x.com/thegdsks">@thegdsks</a></p><p><em>The headline price advertises the wrapper. The bill is always for the bundle.</em></p><h3>Sources</h3><ul><li>Sandesh, <em>AWS Lambda Is Your Worst-Performing Cost-Saver. The 2026 Cold Start Data Will Shock You.</em> <a href="https://medium.com/infradecodedops/aws-lambda-is-your-worst-performing-cost-saver-the-2026-cold-start-data-will-shock-you-0822418e57c8">InfraDecodedOps on Medium</a>. Source for the 23% cold start figure and the 1.8s p99 reference.</li><li>LeanOps, <em>AWS Lambda Pricing 2026: Costs, Fees and Hidden Traps.</em> <a href="https://leanopstech.com/blog/aws-lambda-pricing-2026/">LeanOps blog</a>. Source for the 20 to 40 percent base-Lambda share of total serverless spend.</li><li>Alan West, <em>AWS Lambda’s Hidden Costs: When to Migrate to Containers (And How).</em> <a href="https://dev.to/alanwest/aws-lambdas-hidden-costs-when-to-migrate-to-containers-and-how-2h1n">DEV Community</a>. Source for the crossover point math.</li><li>Vantage, <em>Cloudflare Workers vs AWS Lambda Cost Comparison.</em> <a href="https://www.vantage.sh/blog/cloudflare-workers-vs-aws-lambda-cost">Vantage blog</a>. Source for the CPU-time vs wall-clock pricing breakdown.</li><li>Leaper, <em>Cloudflare Workers vs AWS Lambda 2026: Real Cost Comparison.</em> <a href="https://leaper.dev/blog/cloudflare-workers-vs-lambda-2026">Leaper</a>. Source for the 50–80% cost reduction at scale and Baselime 80% case.</li><li>Rebal AI, <em>Cloudflare Workers vs AWS Lambda: Six Months of Production Reality.</em> <a href="https://blog.rebalai.com/en/2026/03/09/cloudflare-workers-vs-aws-lambda-which-edge-runtim/">Rebal AI blog</a>. Source for the six-month production comparison and the 2–5ms Workers cold start.</li><li>SitePoint, <em>Case Study: Cloud to Local-First AI Migration.</em> <a href="https://www.sitepoint.com/case-study-cloud-to-local-ai-pwa/">SitePoint</a>. Source for the $2,400 to $140 PWA migration case.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5354fab6d8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anthropic just rented Elon Musk’s data center. I almost upgraded my plan 12 minutes too soon.]]></title>
            <link>https://gdsks.medium.com/anthropic-just-rented-elon-musks-data-center-i-almost-upgraded-my-plan-12-minutes-too-soon-fc271ae107bc?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc271ae107bc</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Thu, 07 May 2026 16:55:17 GMT</pubDate>
            <atom:updated>2026-05-07T16:55:17.011Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A 300 megawatt deal, a $180 a month decision, and the strange feeling of having a vendor solve your problem 12 minutes before you were about to pay them more.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EoC_-RJcEcSEOcF5N5EsLw.png" /></figure><p>I had the Anthropic billing page open. Two columns. Max 5x on the left, what I was paying. Max 20x on the right, what I was about to pay. The difference was $180 a month. The reason for the difference was that my Tuesday night Claude Code sessions had started bumping into the peak hour throttle, and the throttle was making the agent loop sluggish in the exact moments I needed it to be fast.</p><p>I was on the upgrade page because I had decided, two days earlier, that another $180 a month was a fair price for not having to feel the throttle. I had walked away from the page once already. I had come back. The cursor was hovering over the Confirm button.</p><p>A friend texted me a CNBC link.</p><p>I read the headline. I read the subhead. I closed the upgrade tab.</p><p>The headline said Anthropic had signed a deal with SpaceX for 300 megawatts of compute capacity at the Memphis Colossus 1 data center. Two hundred and twenty thousand NVIDIA GPUs coming online within a month. The blog post Anthropic put out alongside it said the new capacity would lift peak hour reductions on Pro and Max accounts and raise per request limits on Opus.</p><p>In other words, the throttle I was about to pay $180 a month to outrun was about to ease on its own. Within 30 days. For free.</p><p>This piece is about why I think that timing matters more than the headline lets on.</p><h3>The throttle was telling us something</h3><p>For the last 60 days, every Anthropic pricing headline read like a tighter limit. April 21, the brief disappearance of Claude Code from the $20 Pro plan. Late April, the weekly caps creeping down. Early May, the peak hour reductions that pushed me to consider Max 20x in the first place.</p><p>I had read those moves the way I think a lot of users read them: as repricing. As Anthropic discovering that the bundle did not work at current usage levels and starting to walk it back. The implicit story was about cost.</p><p>The SpaceX deal tells me the story was always about capacity. Not what the inference cost, but how many requests the existing fleet could serve at peak. When you cannot serve every customer who wants in, you do not raise prices. You throttle. The throttle looks like a pricing problem from outside. Inside, the throttle is a queue.</p><p>A 300 megawatt deal solves a queue. Repricing solves a cost problem. The fact that Anthropic chose to spend a number with three commas in it on capacity, rather than push a price increase to the existing fleet, tells you which problem they thought they had.</p><p>The implication for those of us watching the pricing page: the moves of the last two months were tactical, not structural. They are reversible. The SpaceX deal is the reversal.</p><h3>What changes for the Max 5x holder</h3><p>I am going to be specific because vague is what made me almost hit Confirm.</p><p>Max 5x today gets me roughly 5x the messages and Claude Code usage of Pro, with peak hour reductions kicking in around 4 PM Eastern on weekdays. The reductions are not a hard cap. They slow my agent loop down by about 30 to 40 percent during the affected window. On a Tuesday night when I am in the middle of a refactor, that 30 to 40 percent feels like sand in the gears.</p><p>Max 20x removes most of the peak reductions and lifts the message ceiling four times over. The price is around $200 a month, give or take depending on the billing cycle.</p><p>The SpaceX capacity comes online in 30 days. According to Anthropic’s own messaging, peak hour reductions on Max accounts ease as that capacity lights up. The question for me, sitting on the upgrade page, became: am I willing to pay $180 a month for the next 30 days of unthrottled access, knowing that by month two the throttle on Max 5x will likely ease anyway?</p><p>I closed the tab. I am going to let the 30 days play out. If by mid June my Tuesday nights still feel like sand, I will revisit. If they do not, I just kept $180.</p><p>I am not telling everybody on Max 5x to do the same. I am suggesting everybody on Max 5x should pause before clicking Confirm. The new capacity is real and the timeline is short.</p><h3>The wrappers should be more nervous than they look</h3><p>Cursor, GitHub Copilot, Windsurf. They all resell Claude under their own pricing. They all spent the last two months absorbing the same throttle I was feeling. Their tactic: a pricing change of their own (premium request budgets, daily quotas, model dropdowns) that pushed some of the cost back onto the user.</p><p>When Anthropic’s serving capacity doubles in 30 days, the wrappers lose part of their pitch. The pitch was something like: we route around the capacity issues so you do not have to. If there are no capacity issues to route around, the routing layer is doing less work, and the user is paying for that routing in a seat fee that just got harder to justify.</p><p>I do not think the wrappers go away. I think the conversation with their CFO gets harder in Q3. The numbers that mattered for the last 12 months were “we provide reliable capacity”. The numbers that will matter for the next 12 are “we provide better routing than you can build yourself”. The first one was easy to charge for. The second one is a much harder sell when the user can write 200 lines of TypeScript and have the routing themselves.</p><h3>The orbital footnote</h3><p>I want to mention this and then drop it, because I do not want it to swallow the piece. The SpaceX press release also said Anthropic had expressed interest in working with SpaceX to develop gigawatts of compute capacity in space. Not next year. Not anytime soon. The phrase: “expressed interest”.</p><p>That sentence will spawn a thousand think pieces about orbital data centers. Most of them will be silly. The line shows up in the press release because the comparative cost of cooling at orbit gets interesting once you are spending hundreds of millions a year on terrestrial cooling, and SpaceX has the only credible path to mass orbit at a price that makes the math work.</p><p>I am not writing that think piece today. I just want the record to show that the line was in the announcement. In 18 months somebody will argue Anthropic hid it, and the receipts will say otherwise.</p><h3>What I am going to do</h3><p>Three things, all small.</p><p>Sit on Max 5x for 30 more days. Watch the peak hour throttle. If it eases, the upgrade decision is dead. If it does not, I revisit.</p><p>Log my Anthropic API spend daily, not weekly. The 30 day window is short enough that a weekly snapshot misses the inflection. Daily is cheap to set up. I want a clean before and after on the throttle change.</p><p>Save the upgrade page screenshot somewhere I will see it next time. The thing I almost did made sense at the moment I almost did it. Twelve minutes later, the same decision read wrong. The lesson: pricing decisions made under throttle differ from pricing decisions made when the throttle is going away. Wait if you can.</p><h3>The closing</h3><p>I had the upgrade page open. The cursor was hovering. A friend sent a link. I closed the page.</p><p>The thing I want you to take, if you take anything: when a vendor announces capacity that solves the exact problem you were about to pay them more to outrun, wait. Not forever. Thirty days. The cost of waiting is one Tuesday night with a slow agent. The cost of upgrading is $180 a month, every month, until you remember to cancel.</p><p>Most of us are not going to remember to cancel.</p><p>If you are on Max 5x and were eyeing Max 20x for the same reason I was, the only honest take I can give you is the one I gave myself this afternoon. Watch the throttle through the first week of June. Decide then. The capacity will have arrived or it will not. Right now we do not know. Spending $180 to find out is not the right way to learn.</p><p>What is on your billing page right now that you were about to upgrade?</p><p><em>Written by </em><strong><em>GDS K S</em></strong><em> (</em><a href="https://thegdsks.com/"><em>thegdsks.com</em></a><em>), building </em><a href="https://glincker.com/"><em>Glincker</em></a><em>.</em> <em>If this was useful, follow me on </em><a href="https://x.com/thegdsks"><em>X / @thegdsks</em></a><em>. I write about the parts of the AI stack vendors keep off the pricing page.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc271ae107bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Roblox Cheat Script Took Down a Billion-Dollar Company]]></title>
            <link>https://gdsks.medium.com/how-a-roblox-cheat-script-took-down-a-billion-dollar-company-025011f3862e?source=rss-4a2b2f6644ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/025011f3862e</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[GDSKS]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 05:14:18 GMT</pubDate>
            <atom:updated>2026-04-28T05:14:18.743Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Vercel employee clicked one OAuth button. Three weeks later, customer secrets were on a hacker’s drive.</h3><p>A Vercel employee signed up for a new AI tool one afternoon. They clicked Allow All on the Google OAuth consent screen. It took less than a second.</p><p>Three weeks later, customer environment variables were sitting on a hacker’s drive with a two million dollar asking price.</p><p>The AI tool was <a href="https://www.tomshardware.com/tech-industry/cyber-security/vercel-breached-after-employee-grants-ai-tool-unrestricted-access-to-google-workspace">Context.ai</a>, an enterprise platform that builds agents trained on company knowledge. The breach did not start at Vercel. It started two layers underneath, at Context.ai itself, where a separate employee downloaded a Roblox cheat script that turned out to be infected with Lumma Stealer infostealer malware. The attacker pulled Context.ai’s stored OAuth credentials from that infection, rode them into Vercel’s enterprise Google Workspace, pivoted into a Vercel admin account, and walked out with environment variables for what <a href="https://vercel.com/kb/bulletin/vercel-april-2026-security-incident">Vercel describes</a> as a limited subset of customer projects.</p><p>This is the supply chain attack version of the AI hype stack I wrote about last week. The bill arrives from layers you did not authorize. The breach arrives from layers you did not audit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nZy6EJZn1AZFtS2oKGiAA.png" /></figure><h3>The full chain is four layers deep</h3><p>Most coverage of this story stops at layer two. The full chain is four layers deep, and three of those layers exist inside ordinary developer workflows that nobody flags as risky.</p><p>Layer one is an endpoint at the AI vendor. A Context.ai employee runs a malware-infected Roblox cheat at home, on a machine that also has corporate credentials. That layer is opaque to you as a Vercel customer. You have no visibility into it and no control over it.</p><p>Layer two is an OAuth grant scope at the customer. A Vercel employee clicks Allow All on Context.ai’s consent screen. This layer is yours, every time you onboard a new tool. Most teams do not have a process for it.</p><p>Layer three is a lateral move via Workspace. The attacker reads the compromised employee’s email, finds Vercel admin invitations, and walks in. This layer is owned by your identity provider and your OAuth admin policy.</p><p>Layer four is decryption at the platform. The attacker enumerates and decrypts environment variables marked non-sensitive. This layer is owned by your platform’s secret-handling defaults.</p><p>Each layer compounds the previous. Layer one alone gets you a stolen browser cookie. Layer one plus two gets you into one Workspace account. Add layers three and four and you reach customer data at a billion-dollar PaaS.</p><h3>Layer one: a Roblox cheat at home</h3><p>The infection vector at Context.ai was Lumma Stealer hidden inside a Roblox exploit script. Lumma sells access to itself for around two hundred and fifty dollars per month. It harvests browser-stored OAuth tokens, session cookies, password manager exports, crypto wallet files, and any cached auth artifacts the operating system has not locked down.</p><p>This is not exotic malware. It is the most common infostealer of 2026. The Roblox cheat angle is also not exotic. Lumma operators target consumer software because the install base is enormous and the targets are not running EDR.</p><p>The bridge from Context.ai’s gaming-on-the-side employee to a Vercel customer’s database URL is two browser tabs and a corporate single sign-on. That is the part that should make every team rethink BYOD policies.</p><h3>Layer two: the Allow All click</h3><p>The Vercel employee signed up for Context.ai’s AI Office Suite using their corporate Google Workspace account. The OAuth consent screen offered scopes. They clicked Allow All.</p><p>Allow All on a Google OAuth grant for an AI agent product means, depending on what scopes the app requests, a non-exhaustive list. Read and send mail on the user’s behalf. Read and write Drive files. Access Calendar with full edit privileges. Read directory metadata for the entire Workspace domain. Stay authorized through token refresh until manually revoked.</p><p>That last one is what nobody thinks about. OAuth refresh tokens do not expire on their own. Once granted, the AI tool keeps a usable session even if the user logs out, changes their password, or leaves the company entirely. Revocation requires going to myaccount.google.com/permissions and explicitly removing the app.</p><p>In its public response, Context.ai pointed at Vercel’s OAuth admin policy: <em>Vercel’s internal OAuth configurations appear to have allowed this action to grant these broad permissions in Vercel’s enterprise Google Workspace.</em></p><p>Translation: Vercel’s Workspace admin had not restricted which apps employees could authorize. Context.ai is correct that this is a Workspace admin failure. They are also still the company that got popped first.</p><h3>Layer three: email is the master key</h3><p>Once inside the employee’s Workspace account, the attacker did not need to break anything else. Email is the lateral movement.</p><p>Most PaaS account recovery flows go through email. Most internal documents, including sensitive ones, get linked in email. Most invitations to admin consoles get sent as email. A compromised Workspace account is an effective master key for any service that uses email-as-identity, which in 2026 is essentially every service.</p><p>Vercel’s bulletin says the attacker took over the employee’s Vercel account from this Workspace position, then pivoted into a Vercel environment. The bulletin describes the attacker as <em>highly sophisticated based on their operational velocity and in-depth understanding of Vercel’s product API surface.</em> Sophistication notwithstanding, the API knowledge is documented publicly. The sophistication was operational speed, not code.</p><h3>Layer four: the developer-specific lesson</h3><p>Here is the part that should make every developer reading this open their Vercel dashboard.</p><p>Vercel splits environment variables into two categories. Sensitive variables are encrypted at rest with a separate key and never exposed in plaintext to authenticated dashboard users. Non-sensitive variables are encrypted at rest, but any user with project access can read them in plaintext.</p><p>The default when you create a new variable in the Vercel dashboard is non-sensitive. You have to opt into the sensitive flag. Most teams do not, because the friction is small (you cannot view the value later) and the protection is invisible until something exactly like this happens.</p><p>Vercel’s customer remediation guidance includes this line: <em>review and rotate environment variables that were not marked as sensitive, treating them as potentially exposed.</em> That is a long way of saying: assume your DATABASE_URL leaked.</p><h3>The OAuth audit your team has probably never run</h3><p>Five things to do today, in this order.</p><p>First, open myaccount.google.com/permissions for every account that has ever touched corporate data. Revoke any third-party app you do not actively use. Pay particular attention to apps with names you do not recognize and apps you signed up for during a free trial and then forgot about.</p><p>Second, if you are a Workspace admin, open the Apps with Access to Google Data report and audit which third-party apps your domain has authorized. Restrict the unverified-app and broad-scope categories at the policy level.</p><p>Third, if you ship on Vercel, audit your environment variables. Anything that grants production access (database URLs, API keys, signing secrets, deployment tokens) should be marked sensitive. The audit takes ten minutes per project and you will not regret doing it.</p><p>Fourth, search your secret manager for any value also stored as a Vercel environment variable. Duplicate copies in less-protected locations are how breaches escalate.</p><p>Fifth, if your team uses any AI agent platform that requested OAuth scopes broader than profile and email, run the same exercise on that vendor’s OAuth grant. AI agent products are the most likely category to request expansive scopes because their pitch is doing things on your behalf.</p><h3>What “AI Office Suite” actually requests</h3><p>I checked the OAuth scope requests for three popular AI agent products that bill themselves as office suites or knowledge platforms. Names withheld because the point is the pattern, not any specific vendor.</p><p>The first product requested Gmail full access, Drive read and write, Calendar full access, and Contacts read. The second requested Gmail full access, Drive read and write, Chat read, Meet, and Sheets full access. The third scoped appropriately, requesting only Gmail send, Drive limited to specific folders, and Calendar read.</p><p>Two of the three request enough scope to read every email in the Workspace, including ones that contain shared admin credentials. The product names did not predict the scope ask. The free tier signup flow did.</p><p>The asymmetry is striking. A developer who would never paste their database password into a Discord bot will happily click Allow All on an OAuth screen for an AI tool that asks for the same access by proxy.</p><h3>Two signals to watch in the next thirty days</h3><p>ShinyHunters, the threat actor named in the Vercel coverage, has run this play before. Last time it ended with a public dump after the ransom window expired. If a Vercel customer dataset appears on a leak forum in May, the affected blast radius will become public, and any company that did not rotate gets to discover that publicly.</p><p>The second signal is OAuth policy changes. Google Workspace already supports admin-level allowlisting of which third-party apps can request which scopes. Most organizations have not enabled it because the friction is real. Enterprises that get burned in this incident will turn it on. SaaS vendors that do not support narrow-scope OAuth flows will start losing enterprise deals. That is the secondary effect to track over the next quarter.</p><h3>What it really comes down to</h3><p>Last week I argued the AI hype stack hides its costs in layers most developers do not audit. This week’s incident says the supply chain hides its risks in the same layers, except the bill is a customer notification email, not a credit card overage.</p><p>The Allow All click takes one second. The audit takes ten minutes.</p><p>How many AI tools currently have OAuth tokens to your work email? Open myaccount.google.com/permissions and tell me the count in the responses. Mine was eleven before I started writing this. It is three now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=025011f3862e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>