<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: limack0</title>
    <description>The latest articles on DEV Community by limack0 (@limack0).</description>
    <link>https://dev.to/limack0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3959116%2F9b79cbe2-bc77-4885-9fe3-1a9378fba0f8.jpg</url>
      <title>DEV Community: limack0</title>
      <link>https://dev.to/limack0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/limack0"/>
    <language>en</language>
    <item>
      <title>I stopped trusting curl | sh — so I built a tool that reads the script first</title>
      <dc:creator>limack0</dc:creator>
      <pubDate>Wed, 17 Jun 2026 00:44:01 +0000</pubDate>
      <link>https://dev.to/limack0/i-stopped-trusting-curl-sh-so-i-built-a-tool-that-reads-the-script-first-4a9l</link>
      <guid>https://dev.to/limack0/i-stopped-trusting-curl-sh-so-i-built-a-tool-that-reads-the-script-first-4a9l</guid>
      <description>&lt;p&gt;Every developer has done it.&lt;br&gt;
You hit a README, you see the install command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://example.com/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And you run it. Maybe you skim the script first. Maybe you don't. But you run it.&lt;br&gt;
I've been doing this for years. And each time, a small voice in the back of my head says: &lt;em&gt;you have no idea what that script actually does. You just piped a stranger's code straight into your shell.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Eventually I got tired of ignoring that voice.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  What the pattern actually is
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;curl | sh&lt;/code&gt; is not a bad pattern — it's a fast, convenient pattern with a real trust gap. The script runs with your permissions, in your shell, right now. It can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install something with &lt;code&gt;sudo&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Delete files with &lt;code&gt;rm -rf&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Write to your disk with &lt;code&gt;dd&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Access your SSH keys or &lt;code&gt;.env&lt;/code&gt; files&lt;/li&gt;
&lt;li&gt;Set up a cron job or a systemd service that runs again next reboot&lt;/li&gt;
&lt;li&gt;Decode and run a payload with &lt;code&gt;base64 | eval&lt;/code&gt;
Most install scripts do none of these things maliciously. But many do several of them legitimately — and you wouldn't know which ones until something went wrong.
---
## What I built instead
I'm a solo founder based in Ouagadougou, Burkina Faso. I build with heavy AI pairing — I'm not a trained engineer, I work with Claude, review the output, and ship. This tool (&lt;code&gt;peek&lt;/code&gt;) was AI-paired and reviewed by me before release.
&lt;strong&gt;peek&lt;/strong&gt; is a ~130-line POSIX shell script that sits in front of the pattern:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Instead of:&lt;/span&gt;
curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://example.com/install.sh | sh
&lt;span class="c"&gt;# Do:&lt;/span&gt;
peek https://example.com/install.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before anything runs, peek:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fetches the script&lt;/li&gt;
&lt;li&gt;Scans it for risky patterns&lt;/li&gt;
&lt;li&gt;Prints a risk score and the exact dangerous lines&lt;/li&gt;
&lt;li&gt;Asks you to confirm — and refuses to auto-run a HIGH-RISK script unless you type &lt;code&gt;RUN&lt;/code&gt;
You can also pipe into it, or run it in analysis-only mode:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://example.com/install.sh | peek     &lt;span class="c"&gt;# analyze from a pipe&lt;/span&gt;
peek &lt;span class="nt"&gt;--print&lt;/span&gt; ./downloaded.sh                          &lt;span class="c"&gt;# never runs, analysis only&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  What it flags (and what it doesn't)
&lt;/h2&gt;

&lt;p&gt;The patterns peek checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Root escalation&lt;/strong&gt; — &lt;code&gt;sudo&lt;/code&gt;, running as root&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Destructive file ops&lt;/strong&gt; — &lt;code&gt;rm -rf&lt;/code&gt;, &lt;code&gt;find -delete&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Raw disk writes&lt;/strong&gt; — &lt;code&gt;dd of=/dev/sd&lt;/code&gt;, &lt;code&gt;mkfs&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Obfuscated payloads&lt;/strong&gt; — &lt;code&gt;eval&lt;/code&gt;, &lt;code&gt;base64 -d | sh&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credential access&lt;/strong&gt; — reads from &lt;code&gt;~/.ssh&lt;/code&gt;, &lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;.aws&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Persistence&lt;/strong&gt; — writes to cron, &lt;code&gt;systemctl enable&lt;/code&gt;, init scripts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network calls&lt;/strong&gt; — &lt;code&gt;wget&lt;/code&gt;/&lt;code&gt;curl&lt;/code&gt; inside the script (downloading more things)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generic secret assignments&lt;/strong&gt; — &lt;code&gt;secret=&lt;/code&gt;, &lt;code&gt;password=&lt;/code&gt;, &lt;code&gt;token=&lt;/code&gt;, &lt;code&gt;key=&lt;/code&gt;
Each finding has a severity (CRITICAL / HIGH / MEDIUM / INFO). The final score gates the auto-run.
---
## The honest part: it's a heuristic, not a sandbox
This is important and I want to say it plainly.
&lt;strong&gt;peek can be fooled.&lt;/strong&gt; If a script:&lt;/li&gt;
&lt;li&gt;uses obfuscation peek doesn't recognise yet&lt;/li&gt;
&lt;li&gt;downloads a second-stage payload after running&lt;/li&gt;
&lt;li&gt;does something destructive through a helper binary it installs first
...peek won't catch it. A clean score does not mean a script is safe. It means nothing obvious matched.
The real value isn't "this script is safe." The real value is: &lt;strong&gt;it makes you stop and look&lt;/strong&gt;, and it surfaces the lines you'd otherwise skim past.
For HIGH-RISK scripts, peek will refuse to auto-run and will page the full script so you can read it yourself. That's the intended workflow: peek narrows your attention to the suspicious parts, then you judge.
I considered putting a disclaimer like "always read the full script before running" in the output. Then I realized: peek IS that disclaimer, in executable form.
---
## Yes, I see the irony
The pack that contains peek has its own one-liner installer:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; get.limackcorp.online | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I see the irony. So: before you use peek to audit anyone else's scripts, read mine first.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;peek.sh&lt;/code&gt; is ~130 lines of plain POSIX shell, no dependencies, no hidden calls. The repo is at &lt;a href="https://github.com/limack0/limack-devtools" rel="noopener noreferrer"&gt;https://github.com/limack0/limack-devtools&lt;/a&gt; — read it, then use peek to audit it if you want the recursive experience.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  peek is part of a larger pack
&lt;/h2&gt;

&lt;p&gt;I built 11 other tools in the same session, all single-file shell scripts, all targeting the same constraint: &lt;strong&gt;things that work when the infrastructure doesn't&lt;/strong&gt;.&lt;br&gt;
The ones most related to this post:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;secrets-doctor&lt;/strong&gt; — scans your files for leaked API keys, tokens, private keys. Local-only, nothing uploaded, exits non-zero in CI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;tunnelforge&lt;/strong&gt; — exposes a local port via Cloudflare in one command. No ngrok account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;devbox&lt;/strong&gt; — sets up a dev machine including an offline mode: prep all installers on a connected machine, deploy on an air-gapped one.
Full pack: &lt;a href="https://github.com/limack0/limack-devtools" rel="noopener noreferrer"&gt;https://github.com/limack0/limack-devtools&lt;/a&gt;
---
## What I'd genuinely want feedback on
The pattern list in &lt;code&gt;peek.sh&lt;/code&gt; is where I'm least confident. Specifically:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;False negatives&lt;/strong&gt; — what risky patterns am I missing? (Particularly multi-stage obfuscation, environment hijacking, LD_PRELOAD tricks)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;False positives&lt;/strong&gt; — the generic &lt;code&gt;secret=...&lt;/code&gt; rule is the noisiest. What good scripts would peek flag unfairly?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The scoring weights&lt;/strong&gt; — is CRITICAL/HIGH/MEDIUM calibrated right, or should the thresholds shift?
PRs very welcome. The whole point of an open-source script is that you can see exactly what it's doing — and improve it.
---
&lt;em&gt;All tools in this pack were AI-paired with Claude, reviewed and pushed by me.&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>shell</category>
      <category>devtools</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I kept rewriting the same quiz + spaced-repetition code. So I packaged it into an API.</title>
      <dc:creator>limack0</dc:creator>
      <pubDate>Tue, 02 Jun 2026 16:49:24 +0000</pubDate>
      <link>https://dev.to/limack0/i-kept-rewriting-the-same-quiz-spaced-repetition-code-so-i-packaged-it-into-an-api-323f</link>
      <guid>https://dev.to/limack0/i-kept-rewriting-the-same-quiz-spaced-repetition-code-so-i-packaged-it-into-an-api-323f</guid>
      <description>&lt;p&gt;While building my own medical edtech product, I wrote the same "text → quizzes + flashcards + review schedule" plumbing at least three times. Every new feature, same chore: call an LLM, parse the output, schedule the next review, and avoid paying twice for the same input.&lt;br&gt;
So I cleaned it up into one small API — &lt;strong&gt;QuizForge&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;POST /generate&lt;/code&gt; — text, a URL, or a PDF → MCQs, short questions, flashcards (in the language you ask).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POST /grade&lt;/code&gt; — score a free-text answer 0–5 with feedback.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POST /review/next&lt;/code&gt; — SM-2 spaced repetition, the next due date for a card.
Two things I cared about:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't pay twice.&lt;/strong&gt; Identical input is served from a content-hash cache — no second LLM call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make it testable.&lt;/strong&gt; The LLM is injected, so the whole thing runs offline — 29 tests, no network.
It's live as a hosted API with a free tier to try it, and there's a self-host version (Docker, bring
your own LLM key) for people who'd rather run it themselves.
Full disclosure: I build with AI assistance (I pair with Claude), and I'm a solo founder — a
maxillofacial surgeon who got into shipping software, not a team. Support is email-only, but I answer
everything.
Happy to dig into the design — and I'd genuinely like to hear how you'd price the hosted version.
Hosted (free tier): &lt;a href="https://rapidapi.com/limack0/api/quizforge" rel="noopener noreferrer"&gt;https://rapidapi.com/limack0/api/quizforge&lt;/a&gt;
Self-host (source + Docker): &lt;a href="https://limack.gumroad.com/l/quizforge" rel="noopener noreferrer"&gt;https://limack.gumroad.com/l/quizforge&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>api</category>
      <category>learning</category>
      <category>llm</category>
      <category>showdev</category>
    </item>
    <item>
      <title>5 walls I hit shipping an AI reading app from West Africa (and what I'd tell past-me)</title>
      <dc:creator>limack0</dc:creator>
      <pubDate>Fri, 29 May 2026 21:32:58 +0000</pubDate>
      <link>https://dev.to/limack0/5-walls-i-hit-shipping-an-ai-reading-app-from-west-africa-and-what-id-tell-past-me-published-4ikh</link>
      <guid>https://dev.to/limack0/5-walls-i-hit-shipping-an-ai-reading-app-from-west-africa-and-what-id-tell-past-me-published-4ikh</guid>
      <description>&lt;p&gt;I'm a maxillofacial surgeon in Ouagadougou, Burkina Faso — and a self-taught builder who's been coding since medical school. Over evenings and weekends, I shipped Readium — a production AI reading app that lets you discuss books with Claude while you read them, in any language. Built AI-paired with Claude, reviewed and deployed by me.&lt;br&gt;
Most "I shipped an AI app" write-ups cover the happy path: clone a starter, glue an LLM, deploy to Vercel. The walls I hit weren't there. They were in the spaces between the libraries.&lt;br&gt;
Here are five of them — and what I'd tell myself a few weeks ago.&lt;/p&gt;

&lt;p&gt;Wall 1 — SSE streaming broke at the seam between the LLM and the browser&lt;/p&gt;

&lt;p&gt;I assumed streaming "just worked" once OpenRouter returned a stream. It does — until your server-side handler, your reverse proxy, or your browser code introduces a buffer somewhere along the path.&lt;br&gt;
The chain has at least three places where buffering can silently kill streaming:&lt;br&gt;
The LLM API (fine on its own)&lt;br&gt;
Your Node server-side handler (fine if you forward chunks instead of accumulating them)&lt;br&gt;
The reverse proxy / CDN (often buffers entire responses by default)&lt;br&gt;
The failure mode is always the same: the UI looks exactly like the LLM is slow. It isn't — somewhere between OpenRouter and the browser, bytes are being withheld until the connection closes, then dumped in one chunk.&lt;br&gt;
What I'd tell past-me: streaming isn't a feature of the LLM, it's a property of your entire request path. If you can't watch tokens land character-by-character in curl -N against your origin, you don't have streaming, you have a slow non-stream pretending. Set Cache-Control: no-transform and X-Accel-Buffering: no headers from your handler, disable response buffering on every layer in front of it, and verify with curl -N before you trust the UI.&lt;/p&gt;

&lt;p&gt;Wall 2 — fetch hangs forever on certain hosts (and the fix isn't where you think)&lt;/p&gt;

&lt;p&gt;I had a proxy route that fetched from an external API. Worked locally. Worked in staging. Deployed to production: the route would hang for ~60 seconds, then time out. No errors. No logs. Just silence.&lt;br&gt;
I spent two days blaming my code. Two days.&lt;br&gt;
The bug was in undici, Node's built-in fetch implementation. When the remote host's DNS returns both IPv6 and IPv4 records, undici picks IPv6, opens a TCP connection, and waits. If the route between your container and that IPv6 address is broken (which it commonly is on VPS networks), there's no timeout — undici just sits there.&lt;br&gt;
The fix is to bypass fetch and use the lower-level node:https with family: 4 to force IPv4:&lt;br&gt;
import https from "node:https";&lt;br&gt;
https.get(url, { family: 4, timeout: 10_000 }, (res) =&amp;gt; {&lt;br&gt;
  // ...&lt;br&gt;
});&lt;/p&gt;

&lt;p&gt;What I'd tell past-me: when a network call hangs silently in production and works locally, suspect IPv6 before suspecting your code. This has been a real, undocumented production issue across the JS ecosystem since undici became the default in Node 18.&lt;/p&gt;

&lt;p&gt;Wall 3 — The platform shows "Published" while functionally serving empty receipts&lt;/p&gt;

&lt;p&gt;I had two products live on Gumroad. The dashboard showed them as published. I almost moved on to writing the launch post.&lt;br&gt;
Ran one final API audit before announcing. The products were returning file_info: {}, covers: [], custom_receipt: "", and published: False under the hood. Zero files attached for any actual buyer. The dashboard UI had been showing "Published" while the underlying flag had silently flipped.&lt;br&gt;
It turned out that every PUT against /v2/products/{id} that touched the description was wiping the uploaded files, the custom receipt template, and the published flag. There was no notification, no email, no warning. If a paying customer had bought during that window, they'd have paid $29 and downloaded literally nothing.&lt;br&gt;
The fix took five minutes. The "how is this not in their docs" moment took a full weekend.&lt;br&gt;
What I'd tell past-me: a product can pass every UI signal of being shippable while being functionally broken. Run an end-to-end check (API audit or self-buy) the day before any launch — and after any "harmless" edit you didn't realize was destructive.&lt;/p&gt;

&lt;p&gt;Wall 4 — The cover said "80 pages" — but pandoc kept making it 83&lt;br&gt;
I'd designed my ebook cover in SVG with "80 pages" as a visible design element. By the time the final build came out it was 83 pages — pandoc adds frontmatter, LaTeX adds a titlepage, both of which sneak in.&lt;br&gt;
I tried to fudge the markdown to land back at 80 pages. I tried adjusting LaTeX margins. Three iterations later I was at 81, then 84, then 82. The cover had become a tax on every future rebuild.&lt;br&gt;
The fix was a one-line edit on the SVG: I replaced "80 pages" with "field manual". The cover became stable across page-count drift. I updated marketing copy from "80 pages" to "83 pages" and moved on.&lt;br&gt;
What I'd tell past-me: don't put fragile facts on your cover. The cover should compress your positioning, not commit you to a number that drifts every time you rebuild.&lt;/p&gt;

&lt;p&gt;Wall 5 — I built the product, then realized I didn't know how to be found&lt;/p&gt;

&lt;p&gt;The product was live for weeks before anyone outside my immediate network heard about it.&lt;br&gt;
I'd separated "engineering" (safe, virtuous, what I knew) from "marketing" (cringe, salesy, what I didn't). So I kept shipping features and writing nothing public. The distribution half of the loop simply wasn't there.&lt;br&gt;
This week, a non-technical founder on Indie Hackers gave me a reframe I haven't been able to forget. She wrote:&lt;br&gt;
They're the same thing if the engineering is honest enough.&lt;br&gt;
She meant the line I'd been drawing between "writing about my technical decisions" and "marketing my product" doesn't actually exist when the engineering is being written about truthfully. I'd been spending months treating them as separate tracks — calling one "documenting" (safe, virtuous) and the other "selling" (cringe). That false dichotomy was the thing keeping me silent.&lt;br&gt;
This article is me testing the reframe in public.&lt;br&gt;
What I'd tell past-me: you don't need to add a separate marketing track on top of engineering. You need to publish what you already know, honestly, where people who care end up reading.&lt;/p&gt;

&lt;p&gt;What I'd actually do differently&lt;/p&gt;

&lt;p&gt;If I could redo the past few weeks, I'd do exactly two things differently:&lt;br&gt;
Write the public technical posts from week one, not at the end.&lt;br&gt;
Self-buy my own product after every change to it — including the changes I think can't possibly break it.&lt;br&gt;
Everything else, including the painful parts, was load-bearing.&lt;br&gt;
I packaged what I learned into a field manual called "Building AI-Native Reading Apps" — 83 pages, 10 chapters covering OpenRouter streaming, the undici IPv4 fix, entity extraction, Gutenberg bulk ingestion, and the rest of the walls above in code-level detail. AI-paired with Claude, reviewed and verified by me. If you're shipping your own AI app and want this in one place: limack.gumroad.com/l/ai-reading-apps. Free Chapter 1 sample (the SSE streaming pipeline) is on the page before you&lt;/p&gt;

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