<?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: Amir Reza Dalir</title>
    <description>The latest articles on DEV Community by Amir Reza Dalir (@dalirnet).</description>
    <link>https://dev.to/dalirnet</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%2F903715%2Ff0c2decf-15ee-491f-b293-43d9f134f9a9.jpeg</url>
      <title>DEV Community: Amir Reza Dalir</title>
      <link>https://dev.to/dalirnet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dalirnet"/>
    <language>en</language>
    <item>
      <title>Every Repo Has Its Own release.sh — Replace Them With One Command</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:05:17 +0000</pubDate>
      <link>https://dev.to/diphyx/every-repo-has-its-own-releasesh-replace-them-with-one-command-fkm</link>
      <guid>https://dev.to/diphyx/every-repo-has-its-own-releasesh-replace-them-with-one-command-fkm</guid>
      <description>&lt;p&gt;The work is done. The tests pass. Now you only need to release it.&lt;/p&gt;

&lt;p&gt;So you open &lt;code&gt;package.json&lt;/code&gt; and change &lt;code&gt;1.4.0&lt;/code&gt; to &lt;code&gt;1.5.0&lt;/code&gt;. You run &lt;code&gt;npm install&lt;/code&gt; so the lock file follows. Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit -am &lt;span class="s2"&gt;"chore: release v1.5.0"&lt;/span&gt;
git tag v1.5.0
npm run build
git push origin main --tags
gh release create v1.5.0 dist/*.tgz --generate-notes
npm publish
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It works. But look at what can go wrong.&lt;/p&gt;

&lt;p&gt;The build fails after the tag. Now you have a release commit and a tag for a version that does not exist, and you undo them by hand. Or &lt;code&gt;git push&lt;/code&gt; is rejected, because a teammate pushed first. Or you forget the lock file, and the next person sees a dirty tree.&lt;/p&gt;

&lt;p&gt;So you write a &lt;code&gt;release.sh&lt;/code&gt;. Then the next repo is Python, so it gets its own &lt;code&gt;release.sh&lt;/code&gt;. The Go one tags and does nothing else. The Rust one is half copied from the npm one. 😅&lt;/p&gt;

&lt;p&gt;After a few years, every repo has its own way to ship, and you have to read the script each time to remember it.&lt;/p&gt;




&lt;h2&gt;
  
  
  One flow for every repo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/shipo" rel="noopener noreferrer"&gt;shipo&lt;/a&gt; (&lt;em&gt;Ship out of the box&lt;/em&gt;) is that script, written once, for every stack. You run one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ shipo
javascript (1.4.0)

  patch    → 1.4.1
❯ minor    → 1.5.0
  major    → 2.0.0
  current  → 1.4.0

✓ bump       minor · 1.4.0 → 1.5.0
✓ checks     tools, tree, remote, build
✓ version    package.json → 1.5.0
✓ commit     chore: release v1.5.0
✓ tag        v1.5.0
✓ build      [1/1] npm run build
✓ push       origin/main + v1.5.0

command    npm publish
Run? [y/N] y
✓ command    [1/1] npm publish
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And each repo says what is different about it in a small file, &lt;code&gt;.shipo&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .shipo
&lt;/span&gt;&lt;span class="k"&gt;[version]&lt;/span&gt;
&lt;span class="na"&gt;preset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"javascript"&lt;/span&gt;

&lt;span class="k"&gt;[build]&lt;/span&gt;
&lt;span class="na"&gt;command&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"npm ci"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"npm run build"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;[publish]&lt;/span&gt;
&lt;span class="na"&gt;push&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"origin/main"&lt;/span&gt;
&lt;span class="na"&gt;release&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"dist/*.tgz"&lt;/span&gt;
&lt;span class="na"&gt;command&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"npm publish"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You don't start from zero. &lt;code&gt;shipo init&lt;/code&gt; finds your stack and writes a first &lt;code&gt;.shipo&lt;/code&gt; for it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;By hand&lt;/th&gt;
&lt;th&gt;With shipo&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;edit the version, refresh the lock&lt;/td&gt;
&lt;td&gt;the preset finds it; the lock is refreshed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;commit and tag, with the right message&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;chore: release v1.5.0&lt;/code&gt;, tag &lt;code&gt;v1.5.0&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a failed build leaves a broken tag&lt;/td&gt;
&lt;td&gt;the commit and tag are undone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a rejected push, found at the end&lt;/td&gt;
&lt;td&gt;checked first, before anything changes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a different &lt;code&gt;release.sh&lt;/code&gt; in each repo&lt;/td&gt;
&lt;td&gt;the same flow, a few lines of config&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;One flow for every repo. The differences live in &lt;code&gt;.shipo&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Local is undone, remote is never
&lt;/h2&gt;

&lt;p&gt;This is the one idea the whole tool is built on. A release has two halves:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffn4hthks25nuqeeadyzh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffn4hthks25nuqeeadyzh.png" alt="checks, version, bump and build run locally and are undone on failure; publish sends the release out and is never undone" width="800" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🛡️ &lt;strong&gt;Everything before publish is local.&lt;/strong&gt; The checks run first and change nothing: the tools are there, the tree is clean, the tag is free, and the push will fast-forward. Then the version is written, committed, and tagged, and the build runs. If any of that fails, the commit and the tag are undone. Even after Ctrl-C.&lt;/p&gt;

&lt;p&gt;📤 &lt;strong&gt;Publish leaves your machine.&lt;/strong&gt; A pushed tag, a GitHub Release, a package on npm: those can't be taken back safely. So shipo doesn't try. It runs them one by one, and asks before each one that goes beyond &lt;code&gt;git push&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2nnymzqtpyfrkku5k6d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2nnymzqtpyfrkku5k6d.png" alt="publish runs push, then release, workflow and command, one by one; push has no prompt, the other three ask first" width="800" height="177"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ push       origin/main + v1.5.0

release    v1.5.0 + dist/*.tgz
Create? [y/N] y
✓ release    v1.5.0 + 3 file(s)

command    npm publish
Run? [y/N] n
- command    skipped
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a publish step fails, nothing is undone. You fix the problem and run only that step again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;shipo check      &lt;span class="c"&gt;# where does this release stand?&lt;/span&gt;
shipo &lt;span class="nb"&gt;command&lt;/span&gt;    &lt;span class="c"&gt;# run the missing step&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;shipo check&lt;/code&gt; shows the plan before a release, and where a release stopped after one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ shipo check
checks
  ✓ tools     gh, git, npm
  ✓ remote    origin/main, fast-forward ok

release v1.5.0
  ✓ tag       local, remote
  ✗ release   not created

plan
  push      origin/main + v1.5.0
  release   v1.5.0 + dist/*.tgz
  command   npm publish
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Undo what you can. Ask before what you can't.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  On top of your tools
&lt;/h2&gt;

&lt;p&gt;shipo does not build, pack, or upload anything itself. It runs the tools you already use, in the right order:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Who does the work&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;version&lt;/td&gt;
&lt;td&gt;shipo: it reads and writes the version text only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bump&lt;/td&gt;
&lt;td&gt;shipo, with &lt;code&gt;git&lt;/code&gt;: commit and tag&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;build&lt;/td&gt;
&lt;td&gt;your commands: &lt;code&gt;npm run build&lt;/code&gt;, &lt;code&gt;go test&lt;/code&gt;, &lt;code&gt;docker&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;push&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;git&lt;/code&gt;: commit and tag in one atomic push&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;release&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;gh&lt;/code&gt;: a GitHub Release, notes, and files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;workflow&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;gh&lt;/code&gt;: start an Actions workflow and wait for it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;command&lt;/td&gt;
&lt;td&gt;your commands: &lt;code&gt;npm publish&lt;/code&gt;, &lt;code&gt;cargo publish&lt;/code&gt;, a deploy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Presets know where the version lives in each stack: &lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;pyproject.toml&lt;/code&gt;, &lt;code&gt;Cargo.toml&lt;/code&gt;, &lt;code&gt;composer.json&lt;/code&gt;, &lt;code&gt;pubspec.yaml&lt;/code&gt;, &lt;code&gt;pom.xml&lt;/code&gt;, &lt;code&gt;*.csproj&lt;/code&gt;, or git tags for Go and Swift. Only the version text is rewritten, so your formatting and comments stay.&lt;/p&gt;

&lt;p&gt;For anything else, you give a file and a pattern:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[version]&lt;/span&gt;
&lt;span class="na"&gt;source&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"internal/version.go"&lt;/span&gt;
&lt;span class="na"&gt;pattern&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'/const Version = "{version}"/'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One more thing: commands run &lt;strong&gt;without a shell&lt;/strong&gt;, the same way on macOS, Linux, and Windows. No &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt;, no pipes, no &lt;code&gt;$VAR&lt;/code&gt;. If you need those, put them in a script and run the script. It is a small limit, and it means a &lt;code&gt;.shipo&lt;/code&gt; works the same on every machine.&lt;/p&gt;




&lt;h2&gt;
  
  
  A few configs
&lt;/h2&gt;

&lt;p&gt;A Go CLI. The tag push starts your release workflow, so this is all:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[version]&lt;/span&gt;
&lt;span class="na"&gt;preset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"go"&lt;/span&gt;

&lt;span class="k"&gt;[build]&lt;/span&gt;
&lt;span class="na"&gt;command&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"go vet ./..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"go test ./..."&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A Python package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[version]&lt;/span&gt;
&lt;span class="na"&gt;preset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"python"&lt;/span&gt;

&lt;span class="k"&gt;[build]&lt;/span&gt;
&lt;span class="na"&gt;command&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"uv build"&lt;/span&gt;

&lt;span class="k"&gt;[publish]&lt;/span&gt;
&lt;span class="na"&gt;release&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"dist/*"&lt;/span&gt;
&lt;span class="na"&gt;command&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"uv publish"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A Docker app. The workflow builds the image, shipo waits for it, then deploys:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[version]&lt;/span&gt;
&lt;span class="na"&gt;source&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"VERSION"&lt;/span&gt;
&lt;span class="na"&gt;pattern&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"{version}"&lt;/span&gt;

&lt;span class="k"&gt;[publish]&lt;/span&gt;
&lt;span class="na"&gt;workflow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"image.yml version={version}"&lt;/span&gt;
&lt;span class="na"&gt;command&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ssh deploy@203.0.113.10 'cd /app &amp;amp;&amp;amp; export TAG={version} &amp;amp;&amp;amp; docker compose pull &amp;amp;&amp;amp; docker compose up -d --wait'"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In a monorepo, each folder has its own &lt;code&gt;.shipo&lt;/code&gt; and its own tags, like &lt;code&gt;api/v1.2.3&lt;/code&gt; and &lt;code&gt;web/v1.2.3&lt;/code&gt;. shipo finds them all and asks which one to release.&lt;/p&gt;




&lt;h2&gt;
  
  
  Two release lines
&lt;/h2&gt;

&lt;p&gt;Some projects ship a stable &lt;code&gt;main&lt;/code&gt; and a &lt;code&gt;next&lt;/code&gt; beside it. shipo adds the branch name to the version:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[bump]&lt;/span&gt;
&lt;span class="na"&gt;suffix&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"next"&lt;/span&gt;

&lt;span class="k"&gt;[publish]&lt;/span&gt;
&lt;span class="na"&gt;push&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"{remote}/{branch}"&lt;/span&gt;
&lt;span class="na"&gt;release&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Branch&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;1.2.0&lt;/code&gt; + &lt;code&gt;minor&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;Tag&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;main&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.3.0&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;v1.3.0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;next&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.3.0-next&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;v1.3.0-next&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When &lt;code&gt;next&lt;/code&gt; is ready, &lt;code&gt;shipo final&lt;/code&gt; on &lt;code&gt;next&lt;/code&gt; does the round trip: it switches to &lt;code&gt;main&lt;/code&gt;, brings in the commit you tested, releases &lt;code&gt;1.3.0&lt;/code&gt;, brings the release back into &lt;code&gt;next&lt;/code&gt;, and switches back.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqbw0mxn33xptilfpqzw4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqbw0mxn33xptilfpqzw4.png" alt="shipo final on next switches to main, brings in the tested tag by merge or replace, releases there, brings the release into next and switches back" width="800" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It releases what was &lt;strong&gt;tested&lt;/strong&gt;: the commit of the last &lt;code&gt;-next&lt;/code&gt; tag, not whatever &lt;code&gt;next&lt;/code&gt; holds now. Newer commits stay on &lt;code&gt;next&lt;/code&gt;, out of the release.&lt;/p&gt;




&lt;h2&gt;
  
  
  For agents too
&lt;/h2&gt;

&lt;p&gt;The flow with the menu is for a person. But every part also runs on its own, with no prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;shipo bump patch
shipo build
shipo push
shipo release
shipo &lt;span class="nb"&gt;command&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So an AI agent can release too, one step at a time. &lt;code&gt;shipo skill claude user&lt;/code&gt; installs a skill for Claude Code (also Codex, Cursor, and Copilot). The skill tells the agent to read the project, write &lt;code&gt;.shipo&lt;/code&gt;, run &lt;code&gt;shipo check&lt;/code&gt; until it passes, show you the plan, and &lt;strong&gt;ask you before each publish step&lt;/strong&gt;. It never runs the interactive flow, because that flow needs a person.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The agent writes the config and does the steps. You still say yes before anything leaves your machine.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What shipo is not
&lt;/h2&gt;

&lt;p&gt;To be honest about it, here is where it stops:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Good fit&lt;/th&gt;
&lt;th&gt;Not a fit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;versions like &lt;code&gt;MAJOR.MINOR.PATCH&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;dates or build numbers as versions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a person choosing the bump&lt;/td&gt;
&lt;td&gt;the bump chosen from commit messages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;releasing from your machine, you or an agent&lt;/td&gt;
&lt;td&gt;releasing only from CI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;each folder of a monorepo on its own&lt;/td&gt;
&lt;td&gt;many packages released together in one step&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is not CI.&lt;/strong&gt; What runs on GitHub stays in GitHub Actions. shipo can start a workflow and wait for it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not pick the bump.&lt;/strong&gt; If you want that from commit messages, semantic-release and release-please do it well, in CI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not write a changelog.&lt;/strong&gt; A GitHub Release gets the notes GitHub generates from the commits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And one honest note: shipo is young. The first commit is from November 2026, and most of it was written in a week. It releases itself with its own &lt;code&gt;.shipo&lt;/code&gt;. If your release has a case it does not cover, open an issue.&lt;/p&gt;




&lt;h2&gt;
  
  
  Give it a try
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew install diphyx/tap/shipo
&lt;span class="c"&gt;# or&lt;/span&gt;
go install github.com/diphyx/shipo@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, in the folder you release:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;shipo init      &lt;span class="c"&gt;# write .shipo for your stack&lt;/span&gt;
shipo check     &lt;span class="c"&gt;# see what a release would do; changes nothing&lt;/span&gt;
shipo           &lt;span class="c"&gt;# choose the bump, then release&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It needs &lt;code&gt;git&lt;/code&gt;. &lt;code&gt;gh&lt;/code&gt;, logged in, is needed only for GitHub Releases and workflows.&lt;/p&gt;

&lt;p&gt;If you have a &lt;code&gt;release.sh&lt;/code&gt; in every repo, and each one is a little different, that is exactly what shipo is for.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/shipo" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://diphyx.github.io/shipo/" rel="noopener noreferrer"&gt;Docs&lt;/a&gt; · Built by &lt;a href="https://github.com/diphyx" rel="noopener noreferrer"&gt;DiPhyx&lt;/a&gt;&lt;/p&gt;

</description>
      <category>go</category>
      <category>opensource</category>
      <category>devops</category>
      <category>git</category>
    </item>
    <item>
      <title>SSH Gives Too Much, Slurm Asks Too Much — and Both Leave Your Files to You</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Wed, 11 Nov 2026 13:15:53 +0000</pubDate>
      <link>https://dev.to/diphyx/ssh-gives-too-much-slurm-asks-too-much-and-both-leave-your-files-to-you-10c9</link>
      <guid>https://dev.to/diphyx/ssh-gives-too-much-slurm-asks-too-much-and-both-leave-your-files-to-you-10c9</guid>
      <description>&lt;p&gt;You have a machine with a good GPU. It sits under a desk, or in a rack, or in a cloud account. Your laptop has the code. All you want is to send the work there, let it run, and get the results back.&lt;/p&gt;

&lt;p&gt;So you do what everyone does.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp -r ./src gpu-box:~/work
ssh gpu-box &lt;span class="s2"&gt;"cd ~/work &amp;amp;&amp;amp; make -j8 linux"&lt;/span&gt;
scp -r gpu-box:~/work/out ./result
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It works. But look at what you just did.&lt;/p&gt;

&lt;p&gt;You moved the files in by hand, and you moved the results out by hand. You had to remember which folder to bring back, and &lt;code&gt;~/work&lt;/code&gt; is still sitting on the box. Every job, every time.&lt;/p&gt;

&lt;p&gt;And to run one &lt;code&gt;make&lt;/code&gt;, you needed a full shell. When a teammate needs the same build, you add their public key to &lt;code&gt;authorized_keys&lt;/code&gt;. They only wanted to run &lt;code&gt;make&lt;/code&gt;, but now they have a shell on your GPU box, and they can run anything there.&lt;/p&gt;

&lt;p&gt;That was the easy version. 😅&lt;/p&gt;




&lt;h2&gt;
  
  
  Two ends, and nothing in the middle
&lt;/h2&gt;

&lt;p&gt;When you look for a better way, you find two kinds of tools.&lt;/p&gt;

&lt;p&gt;🔑 &lt;strong&gt;SSH and Ansible are too open.&lt;/strong&gt; Whoever can send work can run &lt;em&gt;anything&lt;/em&gt;. And the files are your problem: you copy them in, you copy them out, you clean up.&lt;/p&gt;

&lt;p&gt;🏗️ &lt;strong&gt;Slurm is too heavy.&lt;/strong&gt; It is powerful, but it needs a cluster, shared storage, and someone to keep it all alive. For "run this build on that machine", it is a lot.&lt;/p&gt;

&lt;p&gt;Much of the real work sits between them: builds, tests, renders, conversions, model runs. Work that starts, runs, and ends.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;SSH, Ansible&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;GRID&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;Slurm&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;What runs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;any command&lt;/td&gt;
&lt;td&gt;only the node's fixed cmds&lt;/td&gt;
&lt;td&gt;any batch script&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Files&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;you copy them&lt;/td&gt;
&lt;td&gt;in and out with the job&lt;/td&gt;
&lt;td&gt;a shared filesystem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;To set up&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SSH access&lt;/td&gt;
&lt;td&gt;one binary per side&lt;/td&gt;
&lt;td&gt;a cluster&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/grid" rel="noopener noreferrer"&gt;GRID&lt;/a&gt; (&lt;strong&gt;G&lt;/strong&gt;eneric &lt;strong&gt;R&lt;/strong&gt;untime &lt;strong&gt;I&lt;/strong&gt;ntent-&lt;strong&gt;D&lt;/strong&gt;riven) is that middle column. It has two sides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a &lt;strong&gt;hub&lt;/strong&gt; takes your jobs, picks where each one runs, and keeps the results. It can be your laptop or a small server;&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;node&lt;/strong&gt; is a machine, container, or VM that offers some commands and runs jobs with them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn1yitqhhqcvzyy9i92sp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn1yitqhhqcvzyy9i92sp.png" alt="A job file goes into the hub. The hub picks a node and sends it the job and files. The node runs it and sends output and results back." width="800" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Narrower than a shell. Lighter than a cluster. And the files are part of the job.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Narrower than a shell
&lt;/h2&gt;

&lt;p&gt;Remember the teammate in &lt;code&gt;authorized_keys&lt;/code&gt;. With SSH, the person who sends the work decides what runs. With GRID, the machine decides.&lt;/p&gt;

&lt;p&gt;A node names its commands, its &lt;strong&gt;cmds&lt;/strong&gt;, in its own config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# /etc/grid/node.toml
&lt;/span&gt;&lt;span class="k"&gt;[cmds.build]&lt;/span&gt;
&lt;span class="na"&gt;exec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"make"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-j8"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A job can only ask for a cmd by name. It can add &lt;code&gt;args&lt;/code&gt; and &lt;code&gt;env&lt;/code&gt;, nothing more:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[[steps]]&lt;/span&gt;
&lt;span class="na"&gt;cmd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"build"&lt;/span&gt;
&lt;span class="na"&gt;args&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"linux"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;     &lt;span class="c1"&gt;# the node runs: make -j8 linux&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A step that names a cmd the node does not offer is refused. There is no other way in.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqh4xngtud05c92d3tvd6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqh4xngtud05c92d3tvd6.png" alt="node.toml offers build as make -j8; a job asks for build with args linux; what runs is make -j8 linux." width="799" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;SSH&lt;/th&gt;
&lt;th&gt;GRID&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who decides what runs&lt;/td&gt;
&lt;td&gt;whoever logs in&lt;/td&gt;
&lt;td&gt;whoever runs the node&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What a job can send&lt;/td&gt;
&lt;td&gt;any command&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;args&lt;/code&gt; and &lt;code&gt;env&lt;/code&gt; for a known cmd&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What a teammate gets&lt;/td&gt;
&lt;td&gt;a shell&lt;/td&gt;
&lt;td&gt;a way to ask&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;🛡️ So a teammate, a script, or another service can send work to your machines without getting the machines.&lt;/p&gt;

&lt;p&gt;One honest note: a node is only as narrow as its cmds. If you offer &lt;code&gt;exec = ["sh", "-c"]&lt;/code&gt;, the args become a script, and you have given the shell back. Keep cmds specific. If you don't trust the work, run the node in a container or a VM.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A job is an &lt;strong&gt;intent&lt;/strong&gt;, not a script. That is where the name comes from.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Lighter than a cluster
&lt;/h2&gt;

&lt;p&gt;One binary, &lt;code&gt;grid&lt;/code&gt;, runs either side, on macOS, Linux, and Windows. You don't need a scheduler, a shared filesystem, or certificates. Hub and node talk over one TCP port, &lt;code&gt;9420&lt;/code&gt;, encrypted end to end. Each side trusts only the other's public key, from a known IP.&lt;/p&gt;

&lt;p&gt;Adding machines needs no script. Give each node &lt;strong&gt;tags&lt;/strong&gt;, the kinds of work it does, and a job names the tag it needs. The hub sends it to a node with that tag and a free slot. If none is free, the job waits in the queue.&lt;/p&gt;

&lt;p&gt;The cmd runs on the node, not inside your connection. Nodes report, and the hub decides:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;th&gt;Then&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;a connection drops&lt;/td&gt;
&lt;td&gt;only that call is sent again; the cmd keeps running on the node&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the node goes away&lt;/td&gt;
&lt;td&gt;the job starts over on another node, up to &lt;code&gt;retries&lt;/code&gt; more times&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the hub restarts&lt;/td&gt;
&lt;td&gt;its jobs are picked up again, from where they were&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a step fails&lt;/td&gt;
&lt;td&gt;the rest are skipped and the job is &lt;code&gt;failed&lt;/code&gt;; it is not retried&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhatgxj0tgcdsvopcjo4q.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhatgxj0tgcdsvopcjo4q.gif" alt="Node ALPHA is lost mid-run: its job goes back to queued, waits for Node BETA, and finishes there." width="760" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Light does not mean fragile.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Files in, files out — fully covered
&lt;/h2&gt;

&lt;p&gt;This is the part SSH leaves to you, and a cluster hides behind shared storage. In GRID, the files are part of the job.&lt;/p&gt;

&lt;p&gt;Every job runs in its own clean folder on the node, its &lt;strong&gt;space&lt;/strong&gt;. The job file reads in the order it runs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# build.toml
&lt;/span&gt;&lt;span class="na"&gt;tag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"build"&lt;/span&gt;            &lt;span class="c1"&gt;# any node with the "build" tag&lt;/span&gt;
&lt;span class="na"&gt;retries&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;

&lt;span class="k"&gt;[[push]]&lt;/span&gt;                 &lt;span class="c1"&gt;# files in, before the steps&lt;/span&gt;
&lt;span class="na"&gt;from&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"./src"&lt;/span&gt;           &lt;span class="c1"&gt;# next to this file, on the hub's side&lt;/span&gt;
&lt;span class="na"&gt;to&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"src"&lt;/span&gt;               &lt;span class="c1"&gt;# in the space&lt;/span&gt;

&lt;span class="k"&gt;[[steps]]&lt;/span&gt;                &lt;span class="c1"&gt;# the node's cmds, in order&lt;/span&gt;
&lt;span class="na"&gt;cmd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"build"&lt;/span&gt;
&lt;span class="na"&gt;args&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"linux"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;env&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;CC&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"clang"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;[[pull]]&lt;/span&gt;                 &lt;span class="c1"&gt;# files out, after the steps&lt;/span&gt;
&lt;span class="na"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"out"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Direction&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;push&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;hub → node&lt;/td&gt;
&lt;td&gt;your files are copied into the space&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;steps&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;on node&lt;/td&gt;
&lt;td&gt;the node runs its cmds there, on those files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;pull&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;node → hub&lt;/td&gt;
&lt;td&gt;the files you named come back to the hub&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each part can repeat: several pushes, several steps, several pulls.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F24pwfgpzsgs1mkq83x0j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F24pwfgpzsgs1mkq83x0j.png" alt="The job's three parts: push ./src brings the files into the space, the build step runs make -j8 linux on them, pull out brings out/ back." width="800" height="379"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now back to the first story:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;By hand&lt;/th&gt;
&lt;th&gt;With GRID&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;you copy the files in&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;push&lt;/code&gt; copies them in, before the steps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;you copy the results out&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pull&lt;/code&gt; copies them out, after the steps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;you remember which folder to bring back&lt;/td&gt;
&lt;td&gt;the job file names it, once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;you clean up &lt;code&gt;~/work&lt;/code&gt; later&lt;/td&gt;
&lt;td&gt;when the job ends, its space is deleted&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;And a few things &lt;code&gt;scp&lt;/code&gt; never did:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A broken push or pull resumes where it stopped, and a sha256 checks the whole.&lt;/li&gt;
&lt;li&gt;The hub packs an input once, and knows it again by its files' names, sizes, and times. An unchanged input is not packed again.&lt;/li&gt;
&lt;li&gt;The input is packed when you submit, so you can edit &lt;code&gt;./src&lt;/code&gt; right away. The job has its own copy.&lt;/li&gt;
&lt;li&gt;When a step fails, the files are still pulled, so you can see what went wrong.&lt;/li&gt;
&lt;li&gt;A path that would leave the space (&lt;code&gt;../&lt;/code&gt;, absolute, a symlink out) is rejected.&lt;/li&gt;
&lt;li&gt;Pulled files stay on the hub until &lt;code&gt;grid hub drop&lt;/code&gt;, or for 30 days by default.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📦 &lt;strong&gt;Big inputs travel once.&lt;/strong&gt; A model or a dataset that many jobs use can be a &lt;strong&gt;share&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[[push]]&lt;/span&gt;
&lt;span class="na"&gt;from&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"./model"&lt;/span&gt;
&lt;span class="na"&gt;to&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"model"&lt;/span&gt;
&lt;span class="na"&gt;share&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The node keeps it, read only, and links it into every job that pushes the same content. The first job sends it. The next jobs on that node send nothing for it. &lt;code&gt;grid hub tail&lt;/code&gt; shows how each push went: &lt;code&gt;hit&lt;/code&gt; (the node had it), &lt;code&gt;installed&lt;/code&gt; (sent, and kept), or &lt;code&gt;normal&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fswzeui9b1njkg9w5xwdr.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fswzeui9b1njkg9w5xwdr.gif" alt="Job 1 sends its shared file once and Node ALPHA keeps it. Job 3 has the same shared file, so only its other files are sent." width="760" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The share is off by default. A node turns it on with a size, like &lt;code&gt;[share] limit = "10GB"&lt;/code&gt;. A node without it takes the push as a normal one, and the job runs either way.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Push brings the inputs, the cmds work on them in place, and pull takes the outputs.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What GRID is not
&lt;/h2&gt;

&lt;p&gt;To be honest about it: GRID does not try to be Slurm. Slurm shares a whole cluster among many users, with partitions, accounts, and fair-share scheduling. If you need that, use it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Good fit&lt;/th&gt;
&lt;th&gt;Not a fit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;builds, tests, renders, model runs: work that ends&lt;/td&gt;
&lt;td&gt;long-running services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sending work to machines you own, on any network&lt;/td&gt;
&lt;td&gt;an interactive shell, or arbitrary commands&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a few to many workers, each offering what it is good at&lt;/td&gt;
&lt;td&gt;scheduling on its own: call &lt;code&gt;submit&lt;/code&gt; from your cron&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;each job in its own clean folder&lt;/td&gt;
&lt;td&gt;splitting one job across many nodes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  From nothing to the first result
&lt;/h2&gt;

&lt;p&gt;Install it on both sides:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew install diphyx/tap/grid
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is also a &lt;a href="https://github.com/diphyx/grid/releases" rel="noopener noreferrer"&gt;release archive&lt;/a&gt;, and Docker images: &lt;code&gt;ghcr.io/diphyx/grid-hub&lt;/code&gt; and &lt;code&gt;ghcr.io/diphyx/grid-node&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Each side makes its own key pair. Then copy &lt;code&gt;hub.pub&lt;/code&gt; to the node and &lt;code&gt;node.pub&lt;/code&gt; to the hub. A &lt;code&gt;.key&lt;/code&gt; never leaves its machine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grid key new /etc/grid/hub    &lt;span class="c"&gt;# on the hub&lt;/span&gt;
grid key new /etc/grid/node   &lt;span class="c"&gt;# on the node&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The node says what it can do, and which hub it trusts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# /etc/grid/node.toml
&lt;/span&gt;&lt;span class="na"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="na"&gt;identity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"/etc/grid/node.key"&lt;/span&gt;
&lt;span class="na"&gt;tags&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;[[hubs]]&lt;/span&gt;
&lt;span class="na"&gt;ip&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"10.0.0.1"&lt;/span&gt;
&lt;span class="na"&gt;trust&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"/etc/grid/hub.pub"&lt;/span&gt;

&lt;span class="k"&gt;[cmds.build]&lt;/span&gt;
&lt;span class="na"&gt;exec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"make"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-j8"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The hub knows its nodes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# /etc/grid/hub.toml
&lt;/span&gt;&lt;span class="na"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="na"&gt;identity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"/etc/grid/hub.key"&lt;/span&gt;

&lt;span class="k"&gt;[[nodes]]&lt;/span&gt;
&lt;span class="na"&gt;tags&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;ip&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"10.0.0.2"&lt;/span&gt;
&lt;span class="na"&gt;trust&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"/etc/grid/node.pub"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open TCP &lt;code&gt;9420&lt;/code&gt; on the node to the hub's IP. Start both, then send the job from the hub:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grid node run                       &lt;span class="c"&gt;# on the node&lt;/span&gt;
grid hub run                        &lt;span class="c"&gt;# on the hub&lt;/span&gt;

grid hub submit build.toml --wait   &lt;span class="c"&gt;# follow it; exits 0 only if it succeeds&lt;/span&gt;
grid hub pull &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ./result         &lt;span class="c"&gt;# copy the results out&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;grid hub tail &amp;lt;id&amp;gt;&lt;/code&gt; shows everything the job did, as it happens:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;19:34:29.631     1 job  queued
19:34:29.633     3 hub  attempt 1 on 10.0.0.2:9420
19:34:29.640     6 cmd  running build
19:34:29.651     9 out  built linux
19:34:29.660    11 cmd  done build
19:34:29.663    13 job  done
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔌 Want your own hub or node, in any language? The protocol is written down byte for byte in &lt;a href="https://github.com/diphyx/grid/blob/main/spec/SPEC.md" rel="noopener noreferrer"&gt;&lt;code&gt;spec/SPEC.md&lt;/code&gt;&lt;/a&gt;, with a test kit. If yours passes the kit, it works with every other GRID hub and node.&lt;/p&gt;




&lt;h2&gt;
  
  
  Give it a try
&lt;/h2&gt;

&lt;p&gt;If you have ever typed &lt;code&gt;scp&lt;/code&gt;, &lt;code&gt;ssh&lt;/code&gt;, &lt;code&gt;scp&lt;/code&gt; one more time and thought "there must be a better way", that is exactly what GRID is for.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://diphyx.github.io/grid/#/start" rel="noopener noreferrer"&gt;Get Started&lt;/a&gt; page goes from nothing to a first job's results in six steps. If it saves you time, share it with your team, your lab, or that colleague who still has an old &lt;code&gt;~/work&lt;/code&gt; folder on every box.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/grid" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://diphyx.github.io/grid/" rel="noopener noreferrer"&gt;Docs&lt;/a&gt; · Built by &lt;a href="https://github.com/diphyx" rel="noopener noreferrer"&gt;DiPhyx&lt;/a&gt;&lt;/p&gt;

</description>
      <category>go</category>
      <category>opensource</category>
      <category>devops</category>
      <category>networking</category>
    </item>
    <item>
      <title>AI Animation From Idea to Film: Eight Small Jobs Instead of One Impossible Prompt</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Sun, 11 Oct 2026 11:47:50 +0000</pubDate>
      <link>https://dev.to/dalirnet/ai-animation-from-idea-to-film-eight-small-jobs-instead-of-one-impossible-prompt-4p1b</link>
      <guid>https://dev.to/dalirnet/ai-animation-from-idea-to-film-eight-small-jobs-instead-of-one-impossible-prompt-4p1b</guid>
      <description>&lt;p&gt;You type one prompt. "A man wakes up, walks to the window, and looks at the city. Anime style." You press enter.&lt;/p&gt;

&lt;p&gt;And you get a video. A real one. For a moment it feels like magic.&lt;/p&gt;

&lt;p&gt;Then you watch it again. The man in the bed has black hair. The man at the window has brown hair. The clock was round, and now it is gone. The floor was wood in the first second and carpet in the third.&lt;/p&gt;

&lt;p&gt;It is an animation. It is also garbage. 🗑️&lt;/p&gt;

&lt;p&gt;Not because the model is bad. Because the model does not know your world — your man, your clock, your room. Every second it draws them again from nothing, and every time a little different. You asked for one thing and got a hundred small guesses, glued together.&lt;/p&gt;

&lt;p&gt;Your next idea is a stronger prompt. Describe the man, the clock, the room, every scene, every camera. Try it. The prompt grows to a page, then three, and the hair still changes. A prompt that really pins down one man, one room, three props and six scenes is not three pages. It is a book. No model reads a book and keeps all of it in mind for every frame.&lt;/p&gt;

&lt;p&gt;So you stop asking for one thing. You cut the impossible job into eight small jobs, and at every step you hand the model something to &lt;strong&gt;copy&lt;/strong&gt; instead of something to imagine.&lt;/p&gt;

&lt;h2&gt;
  
  
  📁 The whole method is one folder
&lt;/h2&gt;

&lt;p&gt;An AI animation is many small calls, and after a week you cannot remember which prompt made which image. So every step is &lt;strong&gt;one markdown file of prompts next to one folder of results&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;story/
├── story.md      # 1 🎬 the six lines, the worlds, characters, props
├── assets.md     # 2 🎨 one prompt per world, character, prop
│                 # 3 🎞️ … and per raw scene
├── scenes.md     # 4 🔁 one prompt per first/end frame
│                 # 5 👁️ … and per half-screen between scenes
├── video.md      # 7 🎥 one prompt per 4-second clip (6 🎙️ the sound is in it)
├── film.txt      # 8 ✂️ the edit: clip order and joins
├── cut.sh        # 8 ✂️ builds the film from film.txt
├── assets/
├── scenes/
├── video/
└── final.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every prompt has the same three-line header, then the prompt:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Header&lt;/th&gt;
&lt;th&gt;Says&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;the file this prompt makes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Attach&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;which earlier files go with it, and why&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Use&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;where the result is needed later&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The markdown is the project; the images and clips are its output. Read a &lt;code&gt;.md&lt;/code&gt; top to bottom and you see the film before it exists. Change one prompt, make one file again, and nothing else moves. Put the folder in git and you see what you changed last Tuesday.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Prompts in files, not in chat history. The chat is gone next week. The file is not.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🎬 Step 1: A very short story
&lt;/h2&gt;

&lt;p&gt;Before any tool, you need a story. And it must be small — not because small is beautiful, but because AI is bad at keeping things the same.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Limit&lt;/th&gt;
&lt;th&gt;Max&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🌍 &lt;strong&gt;Worlds&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;every place has its own light and colour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🧍 &lt;strong&gt;Characters&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;each one must look the same in every scene&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🧩 &lt;strong&gt;Props&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;they repeat, so they must match&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🎞️ &lt;strong&gt;Scenes&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;every scene is a new chance to fail&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;world&lt;/strong&gt; is a place. A bedroom, a city street. One inside, one outside.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;character&lt;/strong&gt; has a story behind it. A man, a dog, a robot. The viewer follows it.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;prop&lt;/strong&gt; appears in more than one scene, so it must look the same each time. A clock, a window. Nobody asks what the clock wants — but if it is round in scene 2 and square in scene 5, the video is broken.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;scene&lt;/strong&gt; is one shot. One place, one action. If you need "and then", it is two scenes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything else — the wall, the sheet, the sky — appears once and can change. Do not spend time on it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Count what repeats. That is what the AI has to get right twice.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The story in this article: a man wakes up, walks to the window, and sees the city. Two worlds, one character, three props, six scenes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Scene&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;A man is asleep in his bed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;The alarm clock on the bedside table rings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;The man wakes up&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;He gets out of bed and walks to the window&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;He stands at the window and looks out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;The city, as he sees it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Write your six lines. List and count your worlds, characters and props. No prompts yet. No tools yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎨 Step 2: Assets, not scenes
&lt;/h2&gt;

&lt;p&gt;The next thing most people do is open an image model and type scene 1. Then scene 2, and the man is a different man.&lt;/p&gt;

&lt;p&gt;Make &lt;strong&gt;assets&lt;/strong&gt; first: one reference image of each world, character and prop, alone, on a plain background. Six assets, six prompts in &lt;code&gt;assets.md&lt;/code&gt;. I use GPT Image 2.5 Sunburst, because it can look at attached images — the whole method depends on that.&lt;/p&gt;

&lt;p&gt;Four rules for every asset:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;🌍 &lt;strong&gt;The world comes first, and it is empty.&lt;/strong&gt; No characters, no props, not even the bed. If you draw the bed into the room now, you have two beds — the one in the room and the one in &lt;code&gt;bed.png&lt;/code&gt; — and they will not match.&lt;/li&gt;
&lt;li&gt;🎨 &lt;strong&gt;Everything after attaches the world&lt;/strong&gt; — not to draw the room again, but so the colours and the light match. A man drawn alone comes out in whatever light the model likes. A man drawn with the room attached belongs in that room.&lt;/li&gt;
&lt;li&gt;🚫 &lt;strong&gt;No text.&lt;/strong&gt; No labels, no speech balloons, no watermark. Think of a comic strip with the balloons removed. Words go over the clean image later, where you control them.&lt;/li&gt;
&lt;li&gt;📐 &lt;strong&gt;16:9, all the same size.&lt;/strong&gt; Even the clock. The video model wants the exact size of the video for its first frame. One odd-sized asset and you find out three steps later.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first prompt sets the style, and every later prompt copies this paragraph word for word. I will write &lt;code&gt;[STYLE]&lt;/code&gt; for it from here on:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Flat cel colour fills, one hard shadow tone and a soft highlight,
crisp dark ink outlines, simplified shapes, limited palette,
hand-drawn anime TV series look. Not photorealistic, not a 3D render.
No text, no labels, no watermark.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🌍 &lt;strong&gt;The world.&lt;/strong&gt; Empty, with a fixed camera. You choose the camera once, and every scene in this room uses it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## The room
- Output: assets/room.png
- Attach: nothing
- Use: background, scenes 1 to 5

Anime background illustration, 16:9, no characters, no furniture,
no objects. [STYLE]

A small empty bedroom in the early morning. Plain cream walls, a
wooden floor, a white ceiling. Pale morning light from the far wall
falls across the floor. No bed, no table, no window, no door.

Camera, fixed for this room: standing eye height, from the door,
looking toward the far wall. Left wall and far wall both visible,
the floor filling the bottom third of the frame.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🧍 &lt;strong&gt;The character.&lt;/strong&gt; A sheet, not a picture: at least three views, &lt;strong&gt;full body from head to feet&lt;/strong&gt;, nothing in the hands. In scene 4 the man walks across the room, and the model has to know his feet. If the sheet stops at the chest, the model guesses, and it guesses differently every time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## The man
- Output: assets/man.png
- Attach: assets/room.png (colours and light only, do not draw the room)
- Use: character reference, every scene

Character reference sheet, 16:9, plain light-grey background.
The exact art style of the attached image. [STYLE]

Character only: no props, nothing in the hands, no background.
Three views side by side, same scale, each the full body from head
to feet, nothing cropped: front, side, three-quarter. Same face,
clothes and colours in all three.

A man around thirty, slim, light skin. Short messy black hair, tired
brown eyes, a day of stubble. Plain white T-shirt, grey pyjama
trousers, bare feet. Front: arms at his sides, eyes half open.
Side: standing straight. Three-quarter: one hand rubbing the back
of his neck, a small yawn.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🧩 &lt;strong&gt;The props.&lt;/strong&gt; The opposite: one view, in full detail. The viewer knows the man by his face. The viewer knows the clock by its bells, its red body, its black numbers. So name every part.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## The clock
- Output: assets/clock.png
- Attach: assets/room.png (colours and light only)
- Use: prop reference, scenes 1 to 3

Prop reference sheet, 16:9, plain light-grey background, no
characters, no hands. The exact art style of the attached image.
[STYLE]

One view only, large in the frame: three-quarter from slightly
above, so the face and the top are both visible.

A round red alarm clock, old style. Red metal body with a soft shine.
Two silver bells on top, a small silver hammer between them, a silver
ring handle behind. White face, black numbers 1 to 12, black hour and
minute hands, a thin red second hand. Two short black legs. No glow,
no digital display.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do the same for the bed and the window. Then the city, with nothing attached and its own fixed camera: from the window, looking out.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;One prompt, one thing, alone. Scenes come later, and they only copy.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is the cheapest place to be wrong: a bad asset costs one image. Fix the man's hair here and it is right in all six scenes. Open all the assets side by side — same film, same size — and do not move on until they match.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎞️ Step 3: The scenes
&lt;/h2&gt;

&lt;p&gt;Each of the six lines becomes one image. They go in &lt;code&gt;assets/&lt;/code&gt; too, numbered — raw material for the frames in Step 4.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;assets/
├── room.png … window.png
├── 01-asleep.png
├── 02-alarm.png
├── 03-awake.png
├── 04-walk.png
├── 05-window.png
└── 06-city.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Spend a minute on the names, because the same name travels through every step: &lt;code&gt;02-alarm.png&lt;/code&gt; → &lt;code&gt;02-alarm-first.png&lt;/code&gt; → &lt;code&gt;02-alarm.mp4&lt;/code&gt;. Two digits first, so files sort in story order. One word after, the thing the viewer sees. Lowercase, no spaces. When you are twenty files deep and a clip looks wrong, &lt;code&gt;04-walk&lt;/code&gt; tells you which prompt to open. &lt;code&gt;IMG_0417&lt;/code&gt; tells you nothing.&lt;/p&gt;

&lt;p&gt;The prompts live in &lt;code&gt;scenes.md&lt;/code&gt;. A scene attaches everything that appears in it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## 02 · The alarm
- Output: assets/02-alarm.png
- Attach: assets/room.png · assets/man.png · assets/bed.png · assets/clock.png

Single illustration, 16:9, in the exact 2D anime style of the
attached images. [STYLE]

The attached images are the only source of truth. room.png is the
room: same walls, floor, light and camera. man.png is the man: same
face, hair and clothes. bed.png is the bed and clock.png is the clock,
exactly as drawn. Draw nothing that is not in the attached images or
described below. Only the poses and the action change.

Camera: the fixed camera of the room, from the door.

The bed against the left wall, the man asleep in it, on his side,
eyes closed. The bedside table next to it, the clock on it, ringing:
bells blurred with motion, three small motion lines on each side.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at how little of this is about the scene. Style, copied. The camera, copied. A list of what each image is. The action is four lines.&lt;/p&gt;

&lt;p&gt;Something I took a while to accept: image models read pictures better than words. Write "a round red alarm clock with two silver bells" and you get a different clock every time. Attach &lt;code&gt;clock.png&lt;/code&gt; and say "this clock", and you get that clock. When a scene is hard, do not reach for a longer prompt. Reach for another picture.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;✅ &lt;strong&gt;Attach only what appears&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;the city is not in scene 2, so &lt;code&gt;city.png&lt;/code&gt; stays out — extra images confuse it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔢 &lt;strong&gt;Attach in order&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;world, then characters, then props — the first image is the base&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🏷️ &lt;strong&gt;Name every attachment&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;"room.png is the room" — the model does not know which picture is which&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;📷 &lt;strong&gt;Same camera as the world&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;five scenes from one camera look like a film; from five cameras, a mess&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;A scene prompt describes the action. The pictures describe everything else.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;📖 &lt;strong&gt;The comic-strip test.&lt;/strong&gt; When all six are done, put them in a row and read them like a comic strip with no words. If the pictures tell the story by themselves, your story and your scenes are right. If you reach one and think "wait, what happened here?", a scene is missing or shows the wrong moment. Do not fix it in the next step. Go back to the six lines, change them, and make that scene again. A hole here becomes a hole in the film.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔁 Step 4: Two frames per scene
&lt;/h2&gt;

&lt;p&gt;Here is the tricky part. Look at scene 2. The clock is ringing. Now imagine the clip. Is this image the &lt;strong&gt;first&lt;/strong&gt; frame or the &lt;strong&gt;last&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;It is the last. The clip starts with a quiet clock, then it rings.&lt;/p&gt;

&lt;p&gt;A video model that works from images wants two: where the clip starts and where it ends. So every scene needs two frames, and you already have one. Decide which, then copy it into a new &lt;code&gt;scenes/&lt;/code&gt; folder with the answer as a suffix. The raw scene stays in &lt;code&gt;assets/&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scene&lt;/th&gt;
&lt;th&gt;What you have&lt;/th&gt;
&lt;th&gt;It is&lt;/th&gt;
&lt;th&gt;Still needed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;01 · asleep&lt;/td&gt;
&lt;td&gt;the man asleep, the room still&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;first&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;end: he turns over in his sleep&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02 · alarm&lt;/td&gt;
&lt;td&gt;the clock ringing&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;end&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;first: the clock still&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;03 · awake&lt;/td&gt;
&lt;td&gt;the man sitting up, eyes open&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;end&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;first: eyes closed, head on the pillow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;04 · walk&lt;/td&gt;
&lt;td&gt;the man standing by the bed&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;first&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;end: the man at the window, his back to us&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;05 · window&lt;/td&gt;
&lt;td&gt;the man at the window&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;first&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;end: the same, the curtain moved by the wind&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;06 · city&lt;/td&gt;
&lt;td&gt;the city, wide&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;first&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;end: the same city, the camera a little closer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;scenes/
├── 01-asleep-first.png
├── 02-alarm-end.png
├── 03-awake-end.png
├── 04-walk-first.png
├── 05-window-first.png
└── 06-city-first.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Half the files are missing. To make each one, attach the frame you already have — the finished scene itself — plus only the assets involved in the change. The prompt is tiny, because you describe one difference:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## 04 · The walk, end frame
- Output: scenes/04-walk-end.png
- Attach: scenes/04-walk-first.png · assets/man.png · assets/window.png

Single illustration, 16:9, the same style as the attached scene.
04-walk-first.png is the frame this picture follows: same room,
camera, bed and light. man.png is the man, for his face, hair and
clothes. window.png is the window, exactly as drawn.

One change only: the man has crossed the room. He stands at the
window on the far wall, his back to the camera, one hand on the
curtain. The bed is empty, the blanket pushed back. Everything else
stays exactly where it is.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The man moved, so his sheet is attached again, so his back is right. He touches the window now, so it is attached. The room and the bed come from the scene itself.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You do not describe a scene twice. You describe it once, then describe what changed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  👁️ Step 5: Half-screens (optional, recommended)
&lt;/h2&gt;

&lt;p&gt;Put the clips in a row and watch. Scene 1 ends with the man turning in his sleep. Scene 2 starts with him still. Same room, but the arm moved, the blanket moved, and your eye catches the jump. Six scenes, five jumps.&lt;/p&gt;

&lt;p&gt;My first fix was a clip for the gap itself: from the end of scene 1 to the first frame of scene 2, so nothing would ever cut. I spent a lot of time on this. It does not work. The model has to invent motion between two frames that were never meant to connect, and what it invents is a slow, strange morph. It looks worse than the jump.&lt;/p&gt;

&lt;p&gt;Two honest choices:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✂️ &lt;strong&gt;Leave the cut.&lt;/strong&gt; Every film is full of cuts. No fade, no effect. Nobody minds.&lt;/li&gt;
&lt;li&gt;👁️ &lt;strong&gt;Put a half-screen between them.&lt;/strong&gt; Think of anime: between two scenes, a short still shot — a character's eyes, a hand, a clock. Almost nothing moves. It holds for a second, then the next scene begins. I call it a half-screen. It makes the cut look like a choice.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A half-screen is one frame, no first and no end. Attach the world for the light, the character or prop it shows, and write a small prompt. Name it after the scene it follows, with &lt;code&gt;-half&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## 02 · half-screen, the eyes
- Output: scenes/02-alarm-half.png
- Attach: assets/room.png (light only) · assets/man.png

Single illustration, 16:9, the exact style of the attached images.
[STYLE] man.png is the man: same face, hair and stubble.

Extreme close-up of the man's face, filling the frame, on his side on
the pillow, eyes closed. Morning light across his face from the
right. One eyebrow slightly raised, as if the ringing has just
reached him. No bed edge, no clock, no room.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;After scene&lt;/th&gt;
&lt;th&gt;Half-screen&lt;/th&gt;
&lt;th&gt;Small motion in the clip&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;01 · asleep&lt;/td&gt;
&lt;td&gt;the clock face, close&lt;/td&gt;
&lt;td&gt;the second hand ticks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02 · alarm&lt;/td&gt;
&lt;td&gt;the man's closed eyes&lt;/td&gt;
&lt;td&gt;the eyebrow lifts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;03 · awake&lt;/td&gt;
&lt;td&gt;bare feet touching the wooden floor&lt;/td&gt;
&lt;td&gt;the toes curl&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;04 · walk&lt;/td&gt;
&lt;td&gt;his hand on the white curtain&lt;/td&gt;
&lt;td&gt;the curtain sways&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;05 · window&lt;/td&gt;
&lt;td&gt;his eyes, open, with light in them&lt;/td&gt;
&lt;td&gt;a slow blink&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You do not need all five. Use one where the jump is ugly, a plain cut where it is not.&lt;/p&gt;

&lt;p&gt;In the edit, a half-screen &lt;strong&gt;dissolves&lt;/strong&gt; in and out, half a second to a second on each side, over the scene before and the scene after. So a 4-second half-screen shows alone for two to three seconds. The eye is on the close-up while the room changes underneath it — that is what makes the jump disappear.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A half-screen is a cut that looks like it was planned.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🎙️ Step 6: Do not make the voice
&lt;/h2&gt;

&lt;p&gt;You may want to make the sound now — a voice from a voice model, the alarm, the city — and give it to the video model with the frames. You cannot. Not with the two frames.&lt;/p&gt;

&lt;p&gt;Seedance 2.5 runs on many platforms. I use it inside ElevenLabs — the same place I would make the voice — and even there, a voice file and a first-and-end frame pair cannot go into the same request. On fal.ai there is no audio input at all. On ByteDance's own API you can attach an audio reference, but the moment you do, the first and end frames stop being first and end — they become loose references, and the clip no longer runs from one to the other. I tried this more than once. Each time I got a good audio file and no place for it.&lt;/p&gt;

&lt;p&gt;So the voice goes in the prompt. Write the line in quotes, describe the voice, say who speaks and when. The model renders the voice over the clip, with the mouth on the words, and makes the room sound too — the ring, the sheets, the far city. I have tested this many times. It is not perfect, but it is good, and it sits exactly where the picture needs it, because the same model made both.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;He stands at the window and says, in a low, tired voice, a man in
his thirties just awake: "Morning." His mouth moves with the word.
Only he speaks.
Sound: his voice, the curtain, the city far below. No music.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Honest about quality: ElevenLabs' own voice model is better. But I cannot attach it next to my two frames, so it does not matter how good it is. Maybe a future version will take both. Until then, the best voice is the one you can actually put in the clip.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The voice you cannot attach is not a voice. It is a file.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One rule from here: 🎵 &lt;strong&gt;no music in the clips.&lt;/strong&gt; Music goes over the whole film at the end, in one piece.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎥 Step 7: The clips
&lt;/h2&gt;

&lt;p&gt;One clip per scene and per half-screen, into &lt;code&gt;video/&lt;/code&gt;, prompts in &lt;code&gt;video.md&lt;/code&gt;. For a scene, attach the first and the end frame. For a half-screen, the single frame.&lt;/p&gt;

&lt;p&gt;Three rules, and they all say &lt;strong&gt;keep it short&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Keep short&lt;/th&gt;
&lt;th&gt;How&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;⏱️ &lt;strong&gt;The clip&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;4 seconds&lt;/td&gt;
&lt;td&gt;the model is at its best in short clips; long ones drift&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🏃 &lt;strong&gt;The motion&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;one thing moves&lt;/td&gt;
&lt;td&gt;the man walks, or the clock rings — not both&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;✍️ &lt;strong&gt;The prompt&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;a few lines&lt;/td&gt;
&lt;td&gt;a long prompt makes worse motion, not better&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Why 4 seconds and not less? Because Seedance will not go lower. Many moments are shorter than that — a clock starts ringing in one second — but the clip is 4 seconds whether you need them or not. So put the motion in the &lt;strong&gt;middle&lt;/strong&gt; of the clip and leave the first and last second quiet: still at the start, hold at the end. Those quiet seconds are what the edit fades over in Step 8. If the action starts on frame one, the fade eats it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## 04 · The walk&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Output: video/04-walk.mp4
&lt;span class="p"&gt;-&lt;/span&gt; Attach: scenes/04-walk-first.png (first) · scenes/04-walk-end.png (end) · 4 s

Image-to-video, 4 seconds, from the first frame to the end frame.
Keep the room, camera, man and bed exactly as drawn.
0-1 s: he stands by the bed, still. 1-3 s: he walks slowly to the
window, bare feet on wood. 3-4 s: he stops, back to us, his hand
reaches for the curtain. Hold the end frame.
Sound: soft footsteps on wood. No music.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## 04 · half-screen, the curtain
- Output: video/04-walk-half.mp4
- Attach: scenes/04-walk-half.png (first frame only) · 4 s

Image-to-video, 4 seconds, from this single frame; the picture holds
to the end. Small motion only: the curtain sways once, the fingers
tighten on the cloth. No camera move.
Sound: the curtain, the city far away. No music.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The temptation is to add the light, the mood, what the man feels. Every line you add, the model obeys by making the motion worse. Say what moves, say when, say what it sounds like, and stop.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Short clip, one motion, few words. The frames do the talking.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You will remake some clips. When one is wrong, check the frames first — if the two frames do not agree, no prompt saves the clip. If the frames are right, cut the prompt, do not grow it.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✂️ Step 8: Cut them together
&lt;/h2&gt;

&lt;p&gt;I use &lt;code&gt;ffmpeg&lt;/code&gt;. It is free, it runs anywhere, and the edit becomes a text file you can read next month.&lt;/p&gt;

&lt;p&gt;📋 &lt;strong&gt;The order.&lt;/strong&gt; One clip per line, and after each name, how that clip comes in: &lt;code&gt;cut&lt;/code&gt; or &lt;code&gt;fade&lt;/code&gt;. A scene after a scene is a cut. Anything touching a half-screen is a fade. This file &lt;em&gt;is&lt;/em&gt; the edit. Save it as &lt;code&gt;film.txt&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;01-asleep        cut
01-asleep-half   fade
02-alarm         fade
02-alarm-half    fade
03-awake         fade
03-awake-half    fade
04-walk          fade
04-walk-half     fade
05-window        fade
05-window-half   fade
06-city          fade
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔗 &lt;strong&gt;The join.&lt;/strong&gt; A &lt;code&gt;fade&lt;/code&gt; overlaps two clips by &lt;code&gt;FADE&lt;/code&gt; seconds, picture and sound together — one second is soft, half a second keeps more of the half-screen on screen. A &lt;code&gt;cut&lt;/code&gt; is a one-frame crossfade: invisible, but it removes the click a hard cut leaves in the sound. This script reads the list and builds the chain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/sh&lt;/span&gt;
&lt;span class="c"&gt;# cut.sh — joins the clips in film.txt into film.mp4&lt;/span&gt;
&lt;span class="c"&gt;# Every clip is LEN seconds. A fade overlaps two clips by FADE seconds.&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt;
&lt;span class="nv"&gt;LEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;4&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;FADE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1
&lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="nt"&gt;--&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;n &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'{print $1}'&lt;/span&gt; film.txt&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do &lt;/span&gt;&lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="nt"&gt;--&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$@&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="s2"&gt;"video/&lt;/span&gt;&lt;span class="nv"&gt;$n&lt;/span&gt;&lt;span class="s2"&gt;.mp4"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done
&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;wc&lt;/span&gt; &lt;span class="nt"&gt;-l&lt;/span&gt; &amp;lt; film.txt | &lt;span class="nb"&gt;tr&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;FILTER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="nv"&gt;len&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$LEN&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="nv"&gt;fade&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$FADE&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s1"&gt;'
  { n++; join[n] = $2 }
  END {
    v = "[0:v]"; a = "[0:a]"; t = len
    for (i = 2; i &amp;lt;= n; i++) {
      d = (join[i] == "fade") ? fade : 0.04
      printf "%s[%d:v]xfade=transition=fade:duration=%s:offset=%.2f[v%d];", v, i-1, d, t - d, i
      printf "%s[%d:a]acrossfade=d=%s[a%d];", a, i-1, d, i
      v = "[v" i "]"; a = "[a" i "]"; t += len - d
    }
  }'&lt;/span&gt; film.txt&lt;span class="si"&gt;)&lt;/span&gt;
ffmpeg &lt;span class="nt"&gt;-y&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$@&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-filter_complex&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;FILTER&lt;/span&gt;&lt;span class="p"&gt;%;&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-map&lt;/span&gt; &lt;span class="s2"&gt;"[v&lt;/span&gt;&lt;span class="nv"&gt;$N&lt;/span&gt;&lt;span class="s2"&gt;]"&lt;/span&gt; &lt;span class="nt"&gt;-map&lt;/span&gt; &lt;span class="s2"&gt;"[a&lt;/span&gt;&lt;span class="nv"&gt;$N&lt;/span&gt;&lt;span class="s2"&gt;]"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt;:v libx264 &lt;span class="nt"&gt;-crf&lt;/span&gt; 18 &lt;span class="nt"&gt;-pix_fmt&lt;/span&gt; yuv420p &lt;span class="nt"&gt;-c&lt;/span&gt;:a aac film.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;sh cut.sh&lt;/code&gt;. Eleven clips of 4 seconds, ten fades of one second: &lt;strong&gt;34 seconds&lt;/strong&gt; of film, no clicks. Change a line in &lt;code&gt;film.txt&lt;/code&gt; — swap a &lt;code&gt;fade&lt;/code&gt; for a &lt;code&gt;cut&lt;/code&gt;, drop a half-screen — and run it again.&lt;/p&gt;

&lt;p&gt;🎵 &lt;strong&gt;The finish.&lt;/strong&gt; A fade from black and to black, then the music over the whole film, quietly under the clips' own sound:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg &lt;span class="nt"&gt;-y&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; film.mp4 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-vf&lt;/span&gt; &lt;span class="s2"&gt;"fade=t=in:d=0.5,fade=t=out:st=33.5:d=0.5"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-af&lt;/span&gt; &lt;span class="s2"&gt;"afade=t=in:d=0.5,afade=t=out:st=33.5:d=0.5"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  film-faded.mp4

ffmpeg &lt;span class="nt"&gt;-y&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; film-faded.mp4 &lt;span class="nt"&gt;-i&lt;/span&gt; music.mp3 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-filter_complex&lt;/span&gt; &lt;span class="s2"&gt;"[1:a]volume=0.2,afade=t=out:st=30:d=4[m];[0:a][m]amix=inputs=2:duration=first"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt;:v copy final.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;The edit is a text file. Change one line, run it again.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  💸 What it costs
&lt;/h2&gt;

&lt;p&gt;Two models, and you can count every call before you start. List prices, October 2026: Seedance 2.5 at 720p with sound is $0.473 per second on fal.ai (other platforms differ). OpenAI bills GPT Image 2.5 by tokens and publishes no per-image price; the closest published figure is $0.165 for a 1536×1024 high-quality image. Run one call, read the &lt;code&gt;usage&lt;/code&gt; field, and put your own number in.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Calls&lt;/th&gt;
&lt;th&gt;Each&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2 🎨&lt;/td&gt;
&lt;td&gt;GPT Image 2.5&lt;/td&gt;
&lt;td&gt;2 worlds, 1 character, 3 props&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;$0.17&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 🎞️&lt;/td&gt;
&lt;td&gt;GPT Image 2.5&lt;/td&gt;
&lt;td&gt;6 raw scenes&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;$0.17&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 🔁&lt;/td&gt;
&lt;td&gt;GPT Image 2.5&lt;/td&gt;
&lt;td&gt;6 second frames&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;$0.17&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 👁️&lt;/td&gt;
&lt;td&gt;GPT Image 2.5&lt;/td&gt;
&lt;td&gt;5 half-screens&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;$0.17&lt;/td&gt;
&lt;td&gt;$0.83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7 🎥&lt;/td&gt;
&lt;td&gt;Seedance 2.5&lt;/td&gt;
&lt;td&gt;11 clips × 4 s, at $0.473 / s&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;$1.89&lt;/td&gt;
&lt;td&gt;$20.81&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;34 seconds of film&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;34&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$24.61&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;About twenty-five dollars, if every call comes out right the first time. It will not. Plan for every second call needing a retry, and the film costs closer to forty.&lt;/p&gt;

&lt;p&gt;All twenty-three images together cost about as much as two clips. So the expensive mistake is never a bad image — it is a bad frame you only notice once it moves. That is why every step before 7 ends with "do not move on until they match." Spend the cheap calls. Save the expensive ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  🏁 Your turn
&lt;/h2&gt;

&lt;p&gt;One folder, five text files, and a film at the bottom. When something is wrong — and something will be — you know which file to open.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ six lines, two worlds, two characters, three props — counted&lt;/li&gt;
&lt;li&gt;✅ the world empty; the character full body in three views; the prop in one detailed view&lt;/li&gt;
&lt;li&gt;✅ everything 16:9, the same size, no text&lt;/li&gt;
&lt;li&gt;✅ every scene names what it attaches, in order: world, characters, props&lt;/li&gt;
&lt;li&gt;✅ every frame is &lt;code&gt;first&lt;/code&gt; or &lt;code&gt;end&lt;/code&gt;, and its partner is made from it&lt;/li&gt;
&lt;li&gt;✅ every clip 4 seconds, one motion, the sound in the prompt&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have been further than this — a model that takes a voice reference, a better way to bridge two scenes — tell me in the comments. I am still looking for the fix to the one step I could not make work.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>video</category>
      <category>animation</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>I Spent Two Attempts and One Abandoned Extension Fixing Right-to-Left Markdown</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Fri, 21 Aug 2026 12:35:12 +0000</pubDate>
      <link>https://dev.to/dalirnet/i-spent-two-attempts-and-one-abandoned-extension-fixing-right-to-left-markdown-3apo</link>
      <guid>https://dev.to/dalirnet/i-spent-two-attempts-and-one-abandoned-extension-fixing-right-to-left-markdown-3apo</guid>
      <description>&lt;p&gt;I sit down to write an article. I open my Markdown editor. I type one sentence in Persian.&lt;/p&gt;

&lt;p&gt;And the period is at the wrong end.&lt;/p&gt;

&lt;p&gt;Not a crash. Not an error message. Just something small that is wrong, and stays wrong. I have been looking at it for years.&lt;/p&gt;

&lt;h2&gt;
  
  
  The moment it breaks
&lt;/h2&gt;

&lt;p&gt;Type a Persian sentence in almost any Markdown editor. Then look at what you get.&lt;/p&gt;

&lt;p&gt;The period you typed at the end shows up at the beginning. Your bullet points sit on the left edge, but your text runs to the right. Numbers in an ordered list flip. Parentheses point the wrong way — &lt;code&gt;(&lt;/code&gt; closes and &lt;code&gt;)&lt;/code&gt; opens.&lt;/p&gt;

&lt;p&gt;Now write one English word in the middle of the line. The whole paragraph moves around it. You did not change what the sentence says. You only changed the direction, and the editor treated that as permission to rearrange everything.&lt;/p&gt;

&lt;p&gt;So you go looking for the setting. You always find the same one: a single dropdown, at the top, for the whole file.&lt;/p&gt;

&lt;p&gt;That is what never worked for me. A real page is not one direction. Mine looks like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a Persian paragraph&lt;/li&gt;
&lt;li&gt;a code block, which must run left-to-right&lt;/li&gt;
&lt;li&gt;another Persian paragraph&lt;/li&gt;
&lt;li&gt;a heading with an English product name inside it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pick either value in that dropdown and half the file is wrong.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;One setting cannot describe a real page.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And this is not a small group of people. Persian, Arabic, Hebrew, Urdu. That is a lot of writers. Most of them either fight a preview pane, or give up and type raw text into a plain box.&lt;/p&gt;




&lt;h2&gt;
  
  
  I already tried to fix this once
&lt;/h2&gt;

&lt;p&gt;Here is something I should say early: this is my second attempt.&lt;/p&gt;

&lt;p&gt;A while ago I wrote a VS Code extension called &lt;a href="https://marketplace.visualstudio.com/items?itemName=dalirnet.rtl-markdown" rel="noopener noreferrer"&gt;RTL Markdown&lt;/a&gt;. You rename a file to &lt;code&gt;.rtl.md&lt;/code&gt;, run a command, and your Markdown finally renders right-to-left.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;27,000 people installed it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That number changed how I saw this problem. I wrote a small, awkward extension for something I thought was only mine. Then 27,000 people went looking for the same thing and found it. The problem was never mine. It just belonged to nobody.&lt;/p&gt;

&lt;p&gt;But the extension was a hack. I should say how bad a hack it was.&lt;/p&gt;

&lt;p&gt;To work at all, it &lt;strong&gt;edits VS Code's own core files&lt;/strong&gt;. You install it and restart. Then VS Code tells you your installation is damaged. And my own documentation has to tell you to ignore that warning.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp9i66s28q9qwkjb4yadh.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp9i66s28q9qwkjb4yadh.gif" alt="this is fine" width="300" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It got worse. Every VS Code update can remove the patch. Every Persian file needs a different file extension. And it never handled a mixed page. Renaming the file flips the whole document at once. That is the same "one setting for the file" idea. It is what broke everything in the first place.&lt;/p&gt;

&lt;p&gt;It sits at version &lt;code&gt;0.0.11&lt;/code&gt;. I stopped working on it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You cannot fix an editor from the outside. It does not want to be changed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What you can use today
&lt;/h2&gt;

&lt;p&gt;I am not the only one who tried. &lt;a href="https://dawin.io" rel="noopener noreferrer"&gt;Dôwn&lt;/a&gt; is an online Arabic Markdown editor built for the same problem, and it does its job well.&lt;/p&gt;

&lt;p&gt;Here is the honest map of the options, including my own failed one:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Raw Markdown, any editor&lt;/th&gt;
&lt;th&gt;VS Code + my old extension&lt;/th&gt;
&lt;th&gt;An online RTL editor&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Macfolio&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Direction is decided&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;not at all&lt;/td&gt;
&lt;td&gt;per file (&lt;code&gt;.rtl.md&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;per app&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;per paragraph&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Persian and English on one page&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;⚠️&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;See it formatted as you type&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;preview only&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Files stay on your disk&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;in a browser&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Works with no internet&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Survives an editor update&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;⚠️ the patch is removed&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every column solves something. None of them solved all of it — on my machine, offline, in a window I can keep open all day.&lt;/p&gt;




&lt;h2&gt;
  
  
  So I built my own
&lt;/h2&gt;

&lt;p&gt;The second time, I stopped trying to change somebody else's editor. I wrote my own.&lt;/p&gt;

&lt;p&gt;I named it &lt;strong&gt;Macfolio&lt;/strong&gt; — &lt;strong&gt;Mac&lt;/strong&gt; + &lt;strong&gt;Folio&lt;/strong&gt;, a leaf of a book.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🔥 &lt;strong&gt;Macfolio&lt;/strong&gt; is free and open source → &lt;a href="https://github.com/dalirnet/macfolio" rel="noopener noreferrer"&gt;github.com/dalirnet/macfolio&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fknlzp0w2qgnkfqdo58ol.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fknlzp0w2qgnkfqdo58ol.png" alt="Macfolio" width="800" height="604"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A table being edited in place — not a preview of one. On the left, projects and their documents. At the bottom, the AI helper and what the last turn cost.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I knew what I wanted, because I had missed it for years:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native.&lt;/strong&gt; A real SwiftUI app for &lt;strong&gt;macOS and iPad&lt;/strong&gt;. No Electron, no browser tab, no account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Correct.&lt;/strong&gt; Direction that follows the text, not a dropdown.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mine.&lt;/strong&gt; Documents as plain files, in a folder I own.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Direction is decided per paragraph
&lt;/h2&gt;

&lt;p&gt;Here is the whole fix. I want to be honest about how small it is. Every paragraph in the editor carries one attribute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;dir=&lt;/span&gt;&lt;span class="s"&gt;"auto"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;لوبیا قرمز را از شب قبل بخیسان.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;dir=&lt;/span&gt;&lt;span class="s"&gt;"auto"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Then drain it in the morning.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;dir="auto"&lt;/code&gt; means: find the first letter in this paragraph that has a direction, and follow it. A Persian letter first, so the paragraph goes right-to-left. A Latin letter first, so it goes left-to-right.&lt;/p&gt;

&lt;p&gt;Per paragraph. Every time. There is no language setting anywhere in the app, because there is nothing left to ask you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo9qpmjku7ntkpiurwpwg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo9qpmjku7ntkpiurwpwg.png" alt="Right-to-left editing in Macfolio" width="800" height="604"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The same app, the same window, no setting changed between this and the picture above. The list numbers moved to the right side on their own. The sidebar keeps English and Persian names side by side.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The Persian flows right. The code block stays left. Neither one disturbs the other. The app also ships with its own fonts: &lt;strong&gt;Sofia Sans&lt;/strong&gt; for Latin letters, &lt;strong&gt;Dana&lt;/strong&gt; for Persian. English never looks out of place inside a Persian line.&lt;/p&gt;

&lt;p&gt;There is one more detail that took me a while to notice. Dana's letters are taller than Sofia's. If the line height follows the font, a Persian line becomes taller than an English line. Then the page jumps every time you switch language mid-document. So the line height is fixed to fit both faces. Your paragraphs stay the same height, whichever direction they run.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;dir="auto"&lt;/code&gt; has been in browsers for years. The rule was never the hard part — my extension proved you can even add it to VS Code. The hard part is applying it &lt;strong&gt;per paragraph&lt;/strong&gt;, and you can only do that if you own the editor.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  You can see it while you type
&lt;/h2&gt;

&lt;p&gt;There is a second half to this problem. The tools that &lt;em&gt;do&lt;/em&gt; get direction right are usually read-only previews. You type raw text on one side and watch the result on the other. So you never really look at your document while you write it.&lt;/p&gt;

&lt;p&gt;Macfolio edits in place. Headings, &lt;strong&gt;bold&lt;/strong&gt; and &lt;em&gt;italic&lt;/em&gt;, lists, quotes, code blocks, tables, links, and images all appear as you type them. Markdown shortcuts still work. Type &lt;code&gt;#&lt;/code&gt;, &lt;code&gt;-&lt;/code&gt;, &lt;code&gt;&amp;gt;&lt;/code&gt;, or three backticks, and it becomes the real thing immediately. Your hands never leave the keyboard.&lt;/p&gt;

&lt;p&gt;One honest note: I did not write the editor. &lt;a href="https://lexical.dev" rel="noopener noreferrer"&gt;Lexical&lt;/a&gt; does the hard part. It runs inside a WebKit view in the app. macOS already has WebKit, so nothing extra ships with it. My work was the direction handling, the Mac app around it, and everything below this line.&lt;/p&gt;




&lt;h2&gt;
  
  
  Your documents are just files
&lt;/h2&gt;

&lt;p&gt;There is no database and no cloud. A project is a folder. A document is a &lt;code&gt;.md&lt;/code&gt; file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;~/Documents/Macfolio/
└── Field Notes on Rain/
    ├── 01 First Light.md
    ├── 02 The Estuary.md
    ├── 03 A Table of Tides.md
    └── images/
        └── estuary.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Plain text. You can &lt;code&gt;grep&lt;/code&gt; it, back it up, put it in git, or open it in any other editor tomorrow.&lt;/p&gt;

&lt;p&gt;Each document also keeps a small block of information at the top, called front matter. It sits between two &lt;code&gt;---&lt;/code&gt; lines at the very start of the file. The editor hides it, and you edit it in a simple form instead of typing it by hand:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;A Table of Tides&lt;/span&gt;
&lt;span class="na"&gt;order&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;
&lt;span class="na"&gt;date&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;2026-08-20&lt;/span&gt;
&lt;span class="na"&gt;tags&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;tides&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;notes&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;draft&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the same shape a Jekyll site or a dev.to post already expects. That is the point. These are documents you will publish somewhere. They are not locked inside an app.&lt;/p&gt;

&lt;p&gt;I care about this more than I used to. My VS Code extension died because it depended on the inside of a program I did not control. Files do not have that problem.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Your writing should outlive the app you wrote it in.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The AI is a helper, not a ghostwriter
&lt;/h2&gt;

&lt;p&gt;I did not want something that writes for me. I wanted the boring half of editing to stop taking so long.&lt;/p&gt;

&lt;p&gt;So the AI does the work you would otherwise do by hand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;make this paragraph shorter&lt;/li&gt;
&lt;li&gt;fix this wording&lt;/li&gt;
&lt;li&gt;make the list consistent&lt;/li&gt;
&lt;li&gt;this sentence repeats itself, rewrite it&lt;/li&gt;
&lt;li&gt;translate this line&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It opens the file, makes the change, and the editor updates while you watch. There is nothing to copy out of a chat window and paste back in.&lt;/p&gt;

&lt;p&gt;It also knows where you are. Your open document, your selection, and the current line go with your message:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You say&lt;/th&gt;
&lt;th&gt;It already knows&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;"fix this paragraph"&lt;/td&gt;
&lt;td&gt;which paragraph your caret is in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"rewrite the selection"&lt;/td&gt;
&lt;td&gt;the exact text you highlighted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"remove this line"&lt;/td&gt;
&lt;td&gt;the line — not its best guess&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The footer shows the work as a live checklist. It also prints the &lt;strong&gt;token usage&lt;/strong&gt; for each turn under the reply, so a small fix never costs a surprising amount.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bring your own backend
&lt;/h2&gt;

&lt;p&gt;There is no sign-in screen. In Settings you pick one of three:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code&lt;/strong&gt; — the CLI you already have installed. No new login, and nothing appears in the web panel. macOS only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude API&lt;/strong&gt; — your own key. Opus 4.8, Sonnet 5, or Haiku 4.5.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI&lt;/strong&gt; — your own key. GPT-4o or GPT-4.1, and the mini versions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The two API backends cannot open files by themselves. So Macfolio does that part for them. It gives the model read, write, and edit tools, and lets it work on your files until the change is done. On iPad there is no CLI, so a key is all you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the AI gets it wrong
&lt;/h2&gt;

&lt;p&gt;An AI helper is fast. That also means it can be fast in the wrong direction.&lt;/p&gt;

&lt;p&gt;So every project gets its own git repo. One click saves a snapshot. The history view lets you look through the timeline and &lt;strong&gt;restore&lt;/strong&gt; an earlier one. Nothing after it is destroyed.&lt;/p&gt;

&lt;p&gt;That is what makes "just try it and see" a safe thing to say to a machine that edits your text. &lt;em&gt;(macOS.)&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Made to stay simple
&lt;/h2&gt;

&lt;p&gt;I already watched one of my own tools break from the inside. So I kept this one plain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native Swift.&lt;/strong&gt; Not a browser wrapped in an app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No account, no tracking.&lt;/strong&gt; Nothing to sign into. Nothing sends your text anywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your settings and your writing are files.&lt;/strong&gt; Delete the app and your work is still there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It follows your Mac.&lt;/strong&gt; System accent color, light or dark.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rest is small:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;⌘F&lt;/code&gt; searches every document and jumps to the match.&lt;/li&gt;
&lt;li&gt;Images in a project are listed next to its documents.&lt;/li&gt;
&lt;li&gt;Right-click a document to edit its front matter, rename it, or delete it.&lt;/li&gt;
&lt;li&gt;One click resets the AI session when you want to start fresh.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Download &lt;strong&gt;Macfolio-1.0.2.zip&lt;/strong&gt; from the &lt;a href="https://github.com/dalirnet/macfolio/releases/latest" rel="noopener noreferrer"&gt;latest release&lt;/a&gt;. Unzip it, then move &lt;strong&gt;Macfolio.app&lt;/strong&gt; into your Applications folder. The whole app is about 4 MB.&lt;/p&gt;

&lt;p&gt;The first time you open it, right-click the app and choose &lt;strong&gt;Open&lt;/strong&gt;. A normal double-click will be blocked, because the app is not notarized yet. If macOS still refuses, allow it under &lt;em&gt;System Settings → Privacy &amp;amp; Security&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Or build it yourself. The Mac app builds with &lt;code&gt;swiftc&lt;/code&gt;, and you do not need an Xcode project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/dalirnet/macfolio.git
&lt;span class="nb"&gt;cd &lt;/span&gt;macfolio
make run          &lt;span class="c"&gt;# build and launch&lt;/span&gt;
make release      &lt;span class="c"&gt;# universal release build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;make run&lt;/code&gt; also builds the editor with Vite and puts it inside the app. It installs the npm packages the first time. If you do not have npm, the app still runs — you just get a read-only preview instead of the editor. The iPad app builds from &lt;code&gt;Macfolio.xcodeproj&lt;/code&gt; in Xcode.&lt;/p&gt;

&lt;p&gt;You need &lt;strong&gt;macOS 13 or later&lt;/strong&gt;, or &lt;strong&gt;iPadOS 16 or later&lt;/strong&gt;. You also need one AI backend: the Claude Code CLI, or a Claude or OpenAI key. A ⭐ on GitHub helps other people find it:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/dalirnet/macfolio" rel="noopener noreferrer"&gt;https://github.com/dalirnet/macfolio&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;If you write Markdown in Persian, Arabic, Hebrew, or Urdu, you already know this problem. You have worked around it for so long that you stopped noticing you were doing it. You pick a direction at the top of the file. You accept that half the page will look wrong.&lt;/p&gt;

&lt;p&gt;You do not have to. The fix is one attribute, in the right place. It only took me two attempts and one abandoned extension to put it there.&lt;/p&gt;

&lt;p&gt;I built it for myself, in the language I actually write in. Maybe it is what you have been waiting for too.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>macos</category>
      <category>markdown</category>
      <category>ai</category>
    </item>
    <item>
      <title>A Claude Skill That Makes Images Smaller</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Wed, 01 Jul 2026 07:53:44 +0000</pubDate>
      <link>https://dev.to/dalirnet/a-claude-skill-that-makes-images-smaller-348b</link>
      <guid>https://dev.to/dalirnet/a-claude-skill-that-makes-images-smaller-348b</guid>
      <description>&lt;p&gt;The cover image on this page is about 20 KB. The file I made was 70 KB.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤔 Why
&lt;/h2&gt;

&lt;p&gt;That is three times bigger than it needs to be — for a file whose only job is to load. This happens a lot. You make a PNG, you know it is too big, but making it smaller means a website, an upload, a download, and a manual swap. Four steps for a file you already finished. So you skip it and ship the big one.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤏 What
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;tiny&lt;/code&gt; makes an image smaller with one instruction. It sends the file to &lt;a href="https://tinypng.com" rel="noopener noreferrer"&gt;TinyPNG&lt;/a&gt;, replaces the original with the smaller version, and shows the result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ cover.png  70.3 KB → 19.9 KB  (-50.3 KB, -71.7%)
-- quota: 2 / 500 used this month (498 left)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These numbers are real — this is the cover of this article. PNG, JPEG, and WebP all work. The replace is safe: if anything fails, your original file is not touched.&lt;/p&gt;

&lt;p&gt;The second line is the important part. TinyPNG's free plan gives you 500 images per month. But it does &lt;strong&gt;not&lt;/strong&gt; stop at 500 — image number 501 still works, and it charges your card. So &lt;code&gt;tiny&lt;/code&gt; counts your usage and stops you before you cross the line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;only 3 free compression(s) left this month but 5 requested.
Compress fewer, or pass --force (may incur charges).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The free plan can never become a paid one by accident. The count resets each month on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 How
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Install&lt;/strong&gt; — go to your skills folder, clone the gist, then add a free key once (get one at &lt;a href="https://tinypng.com/developers" rel="noopener noreferrer"&gt;tinypng.com/developers&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/.claude/skills
git clone https://gist.github.com/dalirnet/213259ba6e9cf2d3098319f966a5699e.git tiny
bash tiny/tiny.sh set-key &amp;lt;your-key&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude finds it in your next session. To update later: &lt;code&gt;cd ~/.claude/skills/tiny &amp;amp;&amp;amp; git pull&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Use it&lt;/strong&gt; — give Claude one image, many images, or a glob:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tiny cover.png
tiny assets/&lt;span class="k"&gt;*&lt;/span&gt;.png
tiny usage          &lt;span class="c"&gt;# → 47 / 500 used this month (453 left)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One important note: it replaces the file &lt;strong&gt;in place&lt;/strong&gt;. If you want to keep the original, copy it first.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>webperf</category>
      <category>images</category>
    </item>
    <item>
      <title>A Claude Skill That Turns Long AI Answers Into Short Notes</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Fri, 26 Jun 2026 11:51:26 +0000</pubDate>
      <link>https://dev.to/dalirnet/a-claude-skill-that-turns-long-ai-answers-into-short-notes-2gp9</link>
      <guid>https://dev.to/dalirnet/a-claude-skill-that-turns-long-ai-answers-into-short-notes-2gp9</guid>
      <description>&lt;p&gt;An AI gives a long answer. You read fast and skip most of it. Every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤔 Why
&lt;/h2&gt;

&lt;p&gt;Your eyes don't read the whole reply. They look for one thing: the line that says &lt;em&gt;do this, not that&lt;/em&gt;. The other 400 words are extra. So I wanted a way to turn any answer into short notes — the kind you write in the margin of a book.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✂️ What
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;toot&lt;/code&gt; turns a long answer into short notes. A few words per line. Symbols do most of the work.&lt;/p&gt;

&lt;p&gt;The name is Persian: &lt;code&gt;toot&lt;/code&gt; (توت) means &lt;strong&gt;mulberry&lt;/strong&gt; — the small berry you eat in one bite. That is the idea: take something big and make it small enough to take in at once.&lt;/p&gt;

&lt;p&gt;Here is a real answer about adding a database index:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Adding an index on &lt;code&gt;user_id&lt;/code&gt; makes these lookups faster, but it is not free. Every index must be updated on each INSERT, UPDATE, and DELETE, so tables with many writes pay a cost. Your table has many reads and always filters on &lt;code&gt;user_id&lt;/code&gt;, so it is worth it. One warning: if &lt;code&gt;user_id&lt;/code&gt; has very few different values, the planner may skip the index. Also, a composite index on &lt;code&gt;(user_id, created_at)&lt;/code&gt; would cover both the filter and the sort.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The same answer, after &lt;strong&gt;toot&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;index on user_id → faster reads ✓
every write updates it → write cost ↑
many reads + filters user_id → worth it ✓
⚠ few different values → planner skips it → useless
composite (user_id, created_at) ≡ covers filter + sort
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;About 110 words become 5 lines. Nothing important is lost — the cost, the warning, and the advice are all still there. Two rules keep it safe:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code is never changed.&lt;/strong&gt; Commands and code stay exactly the same, in their own block. A changed command is a broken command.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only one word is translated.&lt;/strong&gt; If you set a language, &lt;code&gt;toot&lt;/code&gt; translates only the one hard word, on its own line below the note. Words you already know — like &lt;code&gt;cache&lt;/code&gt; or &lt;code&gt;rollback&lt;/code&gt; — stay in English.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The skill is just one &lt;code&gt;SKILL.md&lt;/code&gt; file with rules written in plain English. There is no script. Claude does the work; the file tells it how.&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 How
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Install&lt;/strong&gt; — go to your skills folder, then clone the gist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/.claude/skills
git clone https://gist.github.com/dalirnet/26bc7f57a13f13a030afb78ed17f7d71.git toot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude finds it in your next session. To update later: &lt;code&gt;cd ~/.claude/skills/toot &amp;amp;&amp;amp; git pull&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Use it&lt;/strong&gt; — say &lt;code&gt;toot&lt;/code&gt; (or &lt;code&gt;/toot&lt;/code&gt;) after any answer. To always translate into one language, add this line to your project's &lt;code&gt;CLAUDE.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;toot default language: Persian
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>claude</category>
      <category>ai</category>
      <category>productivity</category>
      <category>learning</category>
    </item>
    <item>
      <title>No Name, No Bio, No Face: Meet GitHub's Busiest Account</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Thu, 18 Jun 2026 05:47:18 +0000</pubDate>
      <link>https://dev.to/dalirnet/no-name-no-bio-no-rest-meet-githubs-busiest-account-45g8</link>
      <guid>https://dev.to/dalirnet/no-name-no-bio-no-rest-meet-githubs-busiest-account-45g8</guid>
      <description>&lt;p&gt;You've seen this account. You just never looked at it.&lt;/p&gt;

&lt;p&gt;Open any repo — yours, a library you depend on, some project you starred two years ago. Scroll the commits, or the closed pull requests, and there it is again. The same little black-and-white avatar — the GitHub Octocat itself, staring back at you.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;github-actions&lt;/strong&gt; &lt;code&gt;bot&lt;/code&gt; committed / commented / merged…&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You've seen it a thousand times. I'd seen it a thousand times. And not once had I actually clicked it.&lt;/p&gt;

&lt;p&gt;What finally made me look wasn't curiosity. It was a copy-paste.&lt;/p&gt;

&lt;p&gt;I was wiring up a GitHub Action that commits back to its own repo — formatting code, bumping a changelog, that kind of thing. And I didn't want those commits showing up under &lt;em&gt;my&lt;/em&gt; name. They're automated. They should &lt;em&gt;say&lt;/em&gt; so — anyone reading the history deserves to know a machine did it, not me. So I went looking for how to do it properly, and every thread landed on &lt;a href="https://github.com/orgs/community/discussions/26560" rel="noopener noreferrer"&gt;the same two lines&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config user.name &lt;span class="s2"&gt;"github-actions[bot]"&lt;/span&gt;
git config user.email &lt;span class="s2"&gt;"41898282+github-actions[bot]@users.noreply.github.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I pasted it in. It worked. My automated commits now showed up as the bot, Octocat avatar and all — exactly like every other robot commit I'd ever scrolled past without a second thought.&lt;/p&gt;

&lt;p&gt;But I couldn't stop staring at that email. &lt;code&gt;41898282+github-actions[bot]@users.noreply.github.com&lt;/code&gt;. There's a &lt;em&gt;number&lt;/em&gt; bolted onto the front of it. What is that? And why &lt;em&gt;that&lt;/em&gt; one?&lt;/p&gt;

&lt;p&gt;That number sent me down a rabbit hole that ended with me convinced this is one of the &lt;strong&gt;busiest accounts on the entire platform&lt;/strong&gt; — an identity with no followers, no bio, and a name wrapped in square brackets.&lt;/p&gt;

&lt;p&gt;This is what I found.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔍 The first clue is a number
&lt;/h2&gt;

&lt;p&gt;Every account on GitHub gets one number. Users, organizations, bots — all of them pull from a single auto-incrementing counter. So I asked the API who this thing actually is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;gh api &lt;span class="s2"&gt;"users/github-actions[bot]"&lt;/span&gt; &lt;span class="nt"&gt;--jq&lt;/span&gt; &lt;span class="s1"&gt;'{login, id, created_at, type}'&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"login"&lt;/span&gt;: &lt;span class="s2"&gt;"github-actions[bot]"&lt;/span&gt;,
  &lt;span class="s2"&gt;"id"&lt;/span&gt;: 41898282,
  &lt;span class="s2"&gt;"created_at"&lt;/span&gt;: &lt;span class="s2"&gt;"2018-07-30T09:30:16Z"&lt;/span&gt;,
  &lt;span class="s2"&gt;"type"&lt;/span&gt;: &lt;span class="s2"&gt;"Bot"&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's the number from the email — &lt;code&gt;41898282&lt;/code&gt;. So that prefix was never random: it's the account's &lt;strong&gt;user ID&lt;/strong&gt;, sitting in plain sight. (Hold that thought — I'll pull the whole address apart in a second.)&lt;/p&gt;

&lt;p&gt;And three more things made me sit up.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;type&lt;/code&gt; is &lt;strong&gt;&lt;code&gt;Bot&lt;/code&gt;&lt;/strong&gt;, not &lt;code&gt;User&lt;/code&gt;. It was born on &lt;strong&gt;2018-07-30&lt;/strong&gt; — about three months &lt;em&gt;before&lt;/em&gt; GitHub Actions was even announced at GitHub Universe. The worker clocked in before the doors opened. And its profile link, &lt;code&gt;github.com/apps/github-actions&lt;/code&gt;, doesn't go to a profile at all. It redirects to the product page. &lt;strong&gt;This account is the app.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But &lt;code&gt;41898282&lt;/code&gt; meant nothing to me until I knew where counting starts. So I pulled badge number one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;gh api &lt;span class="nb"&gt;users&lt;/span&gt;/mojombo &lt;span class="nt"&gt;--jq&lt;/span&gt; &lt;span class="s1"&gt;'{login, id, created_at}'&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"login"&lt;/span&gt;: &lt;span class="s2"&gt;"mojombo"&lt;/span&gt;,
  &lt;span class="s2"&gt;"id"&lt;/span&gt;: 1,
  &lt;span class="s2"&gt;"created_at"&lt;/span&gt;: &lt;span class="s2"&gt;"2007-10-20T05:24:19Z"&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's Tom Preston-Werner. GitHub co-founder. Holder of id &lt;code&gt;1&lt;/code&gt; since 2007. Everyone since is just a bigger number on the same ticket roll.&lt;/p&gt;

&lt;p&gt;So our bot isn't special. It's just the &lt;strong&gt;41,898,282nd thing GitHub ever created.&lt;/strong&gt; And it never stopped working since.&lt;/p&gt;

&lt;h2&gt;
  
  
  📧 Decoding that email, piece by piece
&lt;/h2&gt;

&lt;p&gt;Back to the address that started all of this. It looks like a random string GitHub bolted together, but every chunk carries meaning:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;41898282 + github-actions[bot] @ users.noreply.github.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Piece&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;41898282&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the account's &lt;strong&gt;user ID&lt;/strong&gt; — assigned once, permanent, never changes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;github-actions[bot]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the &lt;strong&gt;login&lt;/strong&gt; — human-readable, and it &lt;em&gt;can&lt;/em&gt; be changed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;users.noreply.github.com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;GitHub's &lt;strong&gt;no-reply domain&lt;/strong&gt; — mail sent here goes nowhere&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The shape is always &lt;code&gt;{id}+{login}@users.noreply.github.com&lt;/code&gt; — and the &lt;code&gt;+&lt;/code&gt; is the clever bit. It's email &lt;strong&gt;plus-addressing&lt;/strong&gt; (the same &lt;code&gt;you+newsletter@gmail.com&lt;/code&gt; trick): everything between the &lt;code&gt;+&lt;/code&gt; and the &lt;code&gt;@&lt;/code&gt; is a label that mail routing throws away. So all of these are, for delivery, the &lt;strong&gt;same address&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;41898282+github-actions[bot]@users.noreply.github.com
41898282+literally-anything@users.noreply.github.com
41898282@users.noreply.github.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only &lt;code&gt;41898282&lt;/code&gt; identifies the account. The login after the &lt;code&gt;+&lt;/code&gt; is just decoration for whoever's reading the commit log — and that's deliberate: &lt;strong&gt;usernames change, IDs don't.&lt;/strong&gt; Rename the account tomorrow and the label goes stale, but the number still points home.&lt;/p&gt;

&lt;p&gt;And it's not a bot thing. Flip on &lt;em&gt;"Keep my email address private"&lt;/em&gt; and GitHub hands you the exact same shape — &lt;code&gt;{your-id}+{your-username}@users.noreply.github.com&lt;/code&gt;. The same kind of number is hiding in your own commits.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧩 The brackets aren't a typo
&lt;/h2&gt;

&lt;p&gt;I always assumed &lt;code&gt;[bot]&lt;/code&gt; was a styling choice. It isn't. Those square brackets are how GitHub marks an &lt;em&gt;App identity&lt;/em&gt; — and they change how you talk to it. You have to URL-encode them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# The login literally contains [ and ]&lt;/span&gt;
https://api.github.com/users/github-actions%5Bbot%5D
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub isn't alone here. A lot of platforms decided the safest place to say &lt;em&gt;this one isn't human&lt;/em&gt; is the name itself — so they bake &lt;code&gt;bot&lt;/code&gt; right into it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;How it flags a bot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Telegram&lt;/td&gt;
&lt;td&gt;the username &lt;strong&gt;must end in &lt;code&gt;bot&lt;/code&gt;&lt;/strong&gt; — enforced the moment you create it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wikipedia&lt;/td&gt;
&lt;td&gt;bot accounts are &lt;strong&gt;required to have &lt;code&gt;bot&lt;/code&gt; in the name&lt;/strong&gt; by the bot policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;the &lt;code&gt;[bot]&lt;/code&gt; suffix baked right into the login&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same instinct every time: put the label where you can't miss it. Telegram and Wikipedia both &lt;em&gt;enforce&lt;/em&gt; it. GitHub's twist is the brackets — it doesn't only append &lt;code&gt;bot&lt;/code&gt;, it &lt;em&gt;wraps&lt;/em&gt; it, making &lt;code&gt;[bot]&lt;/code&gt; part of the actual identity. Tidy, until you have to URL-encode &lt;code&gt;%5Bbot%5D&lt;/code&gt; at 1 a.m. But the payoff is the same: one glance at the name, and you know a machine did it.&lt;/p&gt;

&lt;p&gt;And here's the part that explains the whole story. Every time an Action runs with the default &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; — pushing a commit, leaving a review comment, slapping a label on an issue, deploying a Pages site — the work is signed by &lt;strong&gt;this one identity&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now multiply that by every repo on the planet that has CI. That's the motive. One account, an absurd amount of work, all day, in public.&lt;/p&gt;

&lt;h2&gt;
  
  
  🕳️ I was sure it was the first bot. I was wrong.
&lt;/h2&gt;

&lt;p&gt;Here's the embarrassing part, and I'm leaving it in because it's the most useful lesson in this whole thing.&lt;/p&gt;

&lt;p&gt;Staring at that ID, I got cocky. &lt;em&gt;It has to be the first bot, right?&lt;/em&gt; So I scanned the ~1000 IDs sitting right before &lt;code&gt;41898282&lt;/code&gt;, expecting a little trail of older bots leading up to it.&lt;/p&gt;

&lt;p&gt;I found nothing. A bunch of regular users. A lot of &lt;code&gt;404 Not Found&lt;/code&gt; — deleted and spam-purged accounts from that era. But not one other bot.&lt;/p&gt;

&lt;p&gt;For about ten minutes I thought I had a scoop. Then it hit me: &lt;strong&gt;I wasn't investigating, I was guessing.&lt;/strong&gt; Bots are rare and scattered across the &lt;em&gt;entire&lt;/em&gt; ID range. Looking at 1000 numbers in a row tells you nothing. The second I checked bots I already knew, the theory fell apart:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Bot&lt;/th&gt;
&lt;th&gt;ID&lt;/th&gt;
&lt;th&gt;Created&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;codecov[bot]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;22,429,695&lt;/td&gt;
&lt;td&gt;2016-09-25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;renovate[bot]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;29,139,614&lt;/td&gt;
&lt;td&gt;2017-06-02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;probot[bot]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;39,056,928&lt;/td&gt;
&lt;td&gt;2018-05-07&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;github-actions[bot]&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41,898,282&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2018-07-30&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;dependabot[bot]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;49,699,333&lt;/td&gt;
&lt;td&gt;2019-04-16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;codecov[bot]&lt;/code&gt; has an ID nearly &lt;strong&gt;20 million lower&lt;/strong&gt;. Our hero isn't the first bot. It's a latecomer.&lt;/p&gt;

&lt;p&gt;Lesson, free of charge: a lower ID just means an older account. Absence in a tiny window is not evidence of anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  🏁 Okay — so who &lt;em&gt;was&lt;/em&gt; first?
&lt;/h2&gt;

&lt;p&gt;If not this one, then who? I went looking properly this time.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;Bot&lt;/code&gt; type only &lt;em&gt;exists&lt;/em&gt; because GitHub launched its Apps platform (originally "Integrations") in &lt;strong&gt;2016&lt;/strong&gt;. Anything older that automated your repo — &lt;code&gt;greenkeeperio-bot&lt;/code&gt;, &lt;code&gt;snyk-bot&lt;/code&gt; — was running under a plain &lt;code&gt;User&lt;/code&gt; account, not a real bot. So nothing of &lt;code&gt;type: Bot&lt;/code&gt; can predate mid-2016.&lt;/p&gt;

&lt;p&gt;The earliest one I could actually verify:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;gh api &lt;span class="s2"&gt;"users/waffle[bot]"&lt;/span&gt; &lt;span class="nt"&gt;--jq&lt;/span&gt; &lt;span class="s1"&gt;'{login, id, created_at, type}'&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"login"&lt;/span&gt;: &lt;span class="s2"&gt;"waffle[bot]"&lt;/span&gt;,
  &lt;span class="s2"&gt;"id"&lt;/span&gt;: 22081289,
  &lt;span class="s2"&gt;"created_at"&lt;/span&gt;: &lt;span class="s2"&gt;"2016-09-08T16:36:58Z"&lt;/span&gt;,
  &lt;span class="s2"&gt;"type"&lt;/span&gt;: &lt;span class="s2"&gt;"Bot"&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;code&gt;waffle[bot]&lt;/code&gt;&lt;/strong&gt; — September 2016, two years before our subject.&lt;/p&gt;

&lt;p&gt;Am I sure it's &lt;em&gt;the&lt;/em&gt; first? No, and I won't pretend otherwise. Proving that means scanning millions of 2016-era IDs one by one looking for &lt;code&gt;type: Bot&lt;/code&gt; — needles in a haystack, and the rate limit says no. So the honest answer is: the first bots showed up in 2016 with GitHub Apps, and &lt;code&gt;waffle[bot]&lt;/code&gt; is the oldest one I can put my finger on.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤔 Wait — is there more than one of it?
&lt;/h2&gt;

&lt;p&gt;One last suspicion nagged me. What if every repo or org spins up &lt;em&gt;its own&lt;/em&gt; &lt;code&gt;github-actions[bot]&lt;/code&gt;, and I'd been chasing a whole crowd this whole time?&lt;/p&gt;

&lt;p&gt;So I ran the lineup. A search for &lt;code&gt;github-actions&lt;/code&gt; returns 207 accounts — and &lt;strong&gt;not one of them is the bot&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;github-actions-playground&lt;/code&gt; → Organization&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;github-actions-test&lt;/code&gt; → Organization&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;github-actions-pc-bot&lt;/code&gt; → a regular &lt;strong&gt;User&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;…and ~200 more lookalikes. All &lt;code&gt;User&lt;/code&gt; or &lt;code&gt;Organization&lt;/code&gt;. None of them &lt;code&gt;type: Bot&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is exactly &lt;strong&gt;one&lt;/strong&gt; &lt;code&gt;github-actions[bot]&lt;/code&gt; on github.com. Our &lt;code&gt;41898282&lt;/code&gt;. Every repository in the world running default-token Actions writes under that same account. (The one asterisk: self-hosted GitHub Enterprise Server gets its own internal copy. On public github.com, it's a singleton.)&lt;/p&gt;

&lt;p&gt;And &lt;em&gt;that&lt;/em&gt; is the detail that makes the whole thing click. It isn't busy because there are millions of bots. &lt;strong&gt;It's busy because there's one bot doing the work of millions.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🎬 The verdict
&lt;/h2&gt;

&lt;p&gt;Here's everything &lt;code&gt;41898282&lt;/code&gt; taught me about how GitHub actually works under the hood:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IDs are one dumb shared counter. &lt;code&gt;mojombo&lt;/code&gt; is &lt;code&gt;1&lt;/code&gt;. Everything else is just a bigger number.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;[bot]&lt;/code&gt; brackets mean App, not person — and you URL-encode them to ask about it.&lt;/li&gt;
&lt;li&gt;It is &lt;strong&gt;not&lt;/strong&gt; the first bot. That era belongs to 2016 and accounts like &lt;code&gt;waffle[bot]&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It is &lt;strong&gt;not&lt;/strong&gt; a crowd. It's a single global identity.&lt;/li&gt;
&lt;li&gt;But it might genuinely be the &lt;strong&gt;hardest-working account on the platform&lt;/strong&gt; — no followers, no bio, contributions to more repos than you or I will ever touch.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next time that black-and-white Octocat avatar shows up in your commit log, give it a nod. &lt;code&gt;41898282&lt;/code&gt; doesn't sleep, never takes a day off, and has very likely done more work today than the rest of us combined.&lt;/p&gt;

</description>
      <category>github</category>
      <category>githubactions</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
    <item>
      <title>package.json vs go.mod: Where Did the Version Field Go?</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Tue, 16 Jun 2026 05:41:14 +0000</pubDate>
      <link>https://dev.to/dalirnet/packagejson-vs-gomod-where-did-the-version-field-go-3301</link>
      <guid>https://dev.to/dalirnet/packagejson-vs-gomod-where-did-the-version-field-go-3301</guid>
      <description>&lt;p&gt;If you come to Go from JavaScript, one small thing surprises almost every developer.&lt;/p&gt;

&lt;p&gt;Open any &lt;code&gt;package.json&lt;/code&gt;. Look near the top. It is always there:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"my-app"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1.2.3"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You know your version right away. You can read it. You can change it in a pull request. You can &lt;code&gt;grep&lt;/code&gt; for it. It is a fact that lives &lt;em&gt;inside your code&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Now open a &lt;code&gt;go.mod&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="n"&gt;module&lt;/span&gt; &lt;span class="n"&gt;github&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;you&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;my&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;

&lt;span class="k"&gt;go&lt;/span&gt; &lt;span class="m"&gt;1.22&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Try to find your version.&lt;/p&gt;

&lt;p&gt;It is not there. And that is not a mistake — it is on purpose. This post explains how Go handles versioning instead, why it works that way, and what changes for you if npm is the world you know.&lt;/p&gt;




&lt;h2&gt;
  
  
  🕳️ There is no version field
&lt;/h2&gt;

&lt;p&gt;Let me be clear about one thing first: this is &lt;strong&gt;not&lt;/strong&gt; about your dependencies. Go pins those very precisely:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="n"&gt;require&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;github&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;gonic&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt; &lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="m"&gt;.9.1&lt;/span&gt;
    &lt;span class="n"&gt;golang&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="n"&gt;v0&lt;/span&gt;&lt;span class="m"&gt;.14.0&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Exact versions, no fuzzy &lt;code&gt;^&lt;/code&gt; ranges, and builds that are always the same. This part is solid.&lt;/p&gt;

&lt;p&gt;The surprise is about &lt;em&gt;your own&lt;/em&gt; module. Go gives you no field in &lt;code&gt;go.mod&lt;/code&gt; to write your own version. There is no &lt;code&gt;version&lt;/code&gt; line, and there is no convention for one. If you are looking for it, you can stop — it does not exist.&lt;/p&gt;

&lt;p&gt;So where does the version come from? A different place than you expect.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏷️ The version is a git tag
&lt;/h2&gt;

&lt;p&gt;Here is how you set the version of your own module in Go:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git tag v1.2.3
git push origin v1.2.3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is the whole process. The git tag &lt;em&gt;is&lt;/em&gt; the version. When someone runs &lt;code&gt;go get github.com/you/my-app@v1.2.3&lt;/code&gt;, Go looks at your repository's tags and finds the matching commit. There is no registry, no &lt;code&gt;version&lt;/code&gt; field, and no publish step. The tag is the single source of truth.&lt;/p&gt;

&lt;p&gt;This design has a real strength. A version can never point to the wrong code, because it &lt;em&gt;is&lt;/em&gt; a pointer to a commit. You cannot have a file that says &lt;code&gt;1.2.3&lt;/code&gt; while the real code is something else. In npm, the published code and the tagged source &lt;em&gt;can&lt;/em&gt; slowly drift apart, because they are two separate things. In Go, they cannot — they are the same thing.&lt;/p&gt;

&lt;p&gt;So the model is consistent and hard to fake. The trade-off is in the day-to-day experience, especially if you are used to npm.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤔 What is different day to day
&lt;/h2&gt;

&lt;p&gt;Here are the concrete differences. None of these are bugs — they are the natural result of keeping the version in git instead of in a file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Seeing your version takes a command.&lt;/strong&gt; In npm, it is one file. In Go, you run &lt;code&gt;git describe --tags&lt;/code&gt; in a terminal. The version lives in repository &lt;em&gt;metadata&lt;/em&gt;, not in your source tree. So "what version am I?" is a command, not a glance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A version bump is not a code diff.&lt;/strong&gt; In npm, a bump shows up in the pull request: &lt;code&gt;"1.2.3" → "1.3.0"&lt;/code&gt;. Your team reviews it like any other change. In Go, a bump is a tag push. It is not part of any commit's content, so it does not appear in code review. Your release history and your git history are two separate records.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A local build has no clean version yet.&lt;/strong&gt; Build a commit that has no tag, then ask the binary what it is. You get a &lt;em&gt;pseudo-version&lt;/em&gt; like &lt;code&gt;v0.0.0-20260616035800-4a9a8ad4fed2&lt;/code&gt; — a timestamp plus a commit hash. Run it with &lt;code&gt;go run&lt;/code&gt; instead and you get &lt;code&gt;(devel)&lt;/code&gt;. A clean, human version like &lt;code&gt;v1.2.3&lt;/code&gt; appears only after you tag that commit. (npm shows its version even on uncommitted code, because the version is just a field.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Major versions go into the import path.&lt;/strong&gt; This is the most surprising rule for npm users.&lt;/p&gt;

&lt;p&gt;In npm, going from &lt;code&gt;1.x&lt;/code&gt; to &lt;code&gt;2.x&lt;/code&gt; changes only the &lt;code&gt;version&lt;/code&gt; field. The package name stays the same, and code that imports it does not change.&lt;/p&gt;

&lt;p&gt;In Go, starting at &lt;code&gt;v2&lt;/code&gt;, the major version becomes part of the module path. So the same project has a different path for each major version:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;v1 → &lt;code&gt;github.com/you/my-app&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;v2 → &lt;code&gt;github.com/you/my-app/v2&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;v3 → &lt;code&gt;github.com/you/my-app/v3&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And everyone who uses your &lt;code&gt;v2&lt;/code&gt; must include the &lt;code&gt;/v2&lt;/code&gt; when they import it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s"&gt;"github.com/you/my-app/v2"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Why does Go do this? So one program can use &lt;code&gt;v1&lt;/code&gt; and &lt;code&gt;v2&lt;/code&gt; of the same library at the same time. They have different paths, so they never clash.&lt;/p&gt;

&lt;p&gt;The cost is that your major version now lives in two places: the git tag (&lt;code&gt;v2.0.0&lt;/code&gt;) and the module path (the &lt;code&gt;/v2&lt;/code&gt; in &lt;code&gt;go.mod&lt;/code&gt;). They have to match. If the tag says &lt;code&gt;v2&lt;/code&gt; but the path does not end in &lt;code&gt;/v2&lt;/code&gt;, the build breaks.&lt;/p&gt;




&lt;h2&gt;
  
  
  📊 Where other ecosystems keep the version
&lt;/h2&gt;

&lt;p&gt;To put Go in context, here is where your &lt;em&gt;own&lt;/em&gt; version lives in the tools many developers use.&lt;/p&gt;

&lt;p&gt;Full honesty first: I mainly work with npm and Go. I have not used Rust, Python, Java, Ruby, or .NET in depth, so I am not an expert on them. But from what I can see, they all keep the version in a file, the same way Node does:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;th&gt;Where your own version lives&lt;/th&gt;
&lt;th&gt;In a file you can read?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Node (npm)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;package.json&lt;/code&gt; → &lt;code&gt;"version"&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Cargo.toml&lt;/code&gt; → &lt;code&gt;[package] version&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Python&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pyproject.toml&lt;/code&gt; → &lt;code&gt;[project] version&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Java (Maven)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pom.xml&lt;/code&gt; → &lt;code&gt;&amp;lt;version&amp;gt;&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ruby&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;version.rb&lt;/code&gt; / gemspec&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;.NET&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.csproj&lt;/code&gt; → &lt;code&gt;&amp;lt;Version&amp;gt;&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PHP (Composer)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;usually a &lt;strong&gt;git tag&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;⚠️ optional&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Go&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;git tag only&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most ecosystems keep the version in a file. Composer is the closest to Go — it usually uses git tags too — but it still lets you write the field if you want. Go is the one that relies on tags only. That is the design choice, stated plainly.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ How to work with it
&lt;/h2&gt;

&lt;p&gt;If you are shipping Go and you miss the npm experience, here is the common way to get it back. The idea is simple: keep the tag as the source of truth, and &lt;em&gt;show&lt;/em&gt; that version where people can see it.&lt;/p&gt;

&lt;p&gt;Since Go 1.18, the binary already stamps a version from git on its own. But it is that long &lt;code&gt;v0.0.0-timestamp-hash&lt;/code&gt; pseudo-version, which is not nice to print. So most projects inject a &lt;em&gt;clean&lt;/em&gt; version at build time, straight from git:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;

&lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"dev"&lt;/span&gt; &lt;span class="c"&gt;// replaced at build time&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c"&gt;// myapp --version  →  prints the real version&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;go build &lt;span class="nt"&gt;-ldflags&lt;/span&gt; &lt;span class="s2"&gt;"-X main.version=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;git describe &lt;span class="nt"&gt;--tags&lt;/span&gt; &lt;span class="nt"&gt;--always&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; myapp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;git describe --tags&lt;/code&gt; does the work here. On a tagged commit you get &lt;code&gt;v1.2.3&lt;/code&gt;. A few commits later you get &lt;code&gt;v1.2.3-4-gabc1234&lt;/code&gt; — the version, the number of commits since the tag, and the commit hash, all automatically. You never bump anything by hand.&lt;/p&gt;

&lt;p&gt;If you would rather read that stamped info from the runtime instead of passing it through ldflags:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s"&gt;"runtime/debug"&lt;/span&gt;

&lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;debug&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ReadBuildInfo&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Main&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Version&lt;/span&gt; &lt;span class="c"&gt;// "v1.2.3" on a tagged build, a pseudo-version otherwise, "(devel)" under `go run`&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And if you want the full "tag, build, publish, release notes" flow in one command — the closest thing Go has to &lt;code&gt;npm publish&lt;/code&gt; — most projects use &lt;a href="https://goreleaser.com" rel="noopener noreferrer"&gt;goreleaser&lt;/a&gt;. It reads your tags, adds the ldflags, and ships the binaries.&lt;/p&gt;

&lt;p&gt;None of this puts a version field into &lt;code&gt;go.mod&lt;/code&gt;. But it lets your binary answer "who are you?" out loud, which is usually what you actually wanted.&lt;/p&gt;




&lt;h2&gt;
  
  
  🚪 An open question
&lt;/h2&gt;

&lt;p&gt;Now the part for Go developers.&lt;/p&gt;

&lt;p&gt;Both designs are real and both are used by huge ecosystems, so this is not "one is right and one is wrong." Each one optimizes for a different thing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A version field&lt;/strong&gt; (npm, Cargo, Maven, and most others) is easy to read, easy to edit, and shows up in code review. The cost is that the field can drift away from the real code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A git tag&lt;/strong&gt; (Go) can never drift, because the version &lt;em&gt;is&lt;/em&gt; the commit. The cost is that the version is harder to see, harder to review, and, from &lt;code&gt;v2&lt;/code&gt; on, lives in two places at once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Go picked the second one. That choice gives strong guarantees, and it removes a whole class of "the manifest says one thing, the code says another" bugs. It also moves the version out of the place a newcomer looks first.&lt;/p&gt;

&lt;p&gt;So here is the honest question, for the people who know Go best:&lt;/p&gt;

&lt;p&gt;Is the tag-only model the best we can do? Could Go keep the "version equals commit" guarantee &lt;em&gt;and&lt;/em&gt; still give you a readable field in &lt;code&gt;go.mod&lt;/code&gt; — for example, a field the tooling verifies against the tag? Or does adding a field always reopen the drift problem that tags were meant to solve?&lt;/p&gt;

&lt;p&gt;I am genuinely asking. If you have shipped a lot of Go, I would like to hear how the tag model feels in practice — and whether you would change it if you could.&lt;/p&gt;

</description>
      <category>go</category>
      <category>javascript</category>
      <category>node</category>
      <category>webdev</category>
    </item>
    <item>
      <title>You don't notice the quiet apps until they're gone</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Fri, 12 Jun 2026 13:34:23 +0000</pubDate>
      <link>https://dev.to/dalirnet/you-dont-notice-the-quiet-apps-until-theyre-gone-eeo</link>
      <guid>https://dev.to/dalirnet/you-dont-notice-the-quiet-apps-until-theyre-gone-eeo</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;🔥 &lt;strong&gt;Macxelio&lt;/strong&gt; is free and open source → &lt;a href="https://github.com/dalirnet/macxelio" rel="noopener noreferrer"&gt;github.com/dalirnet/macxelio&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is a short story about an app I lost, and the new one I built to replace it.&lt;/p&gt;

&lt;p&gt;For many years, &lt;strong&gt;ClashX&lt;/strong&gt; was part of my Mac. It lived in the menu bar and just worked. I never had to think about it. New laptop? I installed ClashX and moved on. The best apps are the ones you forget are even there.&lt;/p&gt;

&lt;p&gt;Then it was gone.&lt;/p&gt;

&lt;p&gt;In late 2023, &lt;a href="https://github.com/net4people/bbs/issues/303" rel="noopener noreferrer"&gt;ClashX and the whole Clash project were removed from GitHub&lt;/a&gt;. One day the code was there. The next day, it was not. Version 1.17.0 became the final version, and no more updates would ever come.&lt;/p&gt;

&lt;p&gt;So I was stuck with an old, frozen app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stuck for too long
&lt;/h2&gt;

&lt;p&gt;Here is the part I am a little embarrassed about: I kept using it anyway, long after I should have stopped. The same old, abandoned app, every day.&lt;/p&gt;

&lt;p&gt;Why? Because every other app I tried felt wrong. Some were not really made for macOS. Some were big and heavy, full of features I never used. Some were just not nice to use. None of them felt like the small, quiet menu bar app I had lost.&lt;/p&gt;

&lt;p&gt;I kept hoping a better one would show up. It never did.&lt;/p&gt;

&lt;h2&gt;
  
  
  So I built my own
&lt;/h2&gt;

&lt;p&gt;In the end, "I wish this existed" became "okay, I will build it myself."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb5hon2caznvab4bpk23g.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb5hon2caznvab4bpk23g.gif" alt="do it myself" width="480" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I knew what I wanted, because I had missed it for so long:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native.&lt;/strong&gt; A real macOS app, in the menu bar, light enough to forget.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modern.&lt;/strong&gt; Built on &lt;strong&gt;Xray-core&lt;/strong&gt;, so newer protocols like VLESS are supported.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simple.&lt;/strong&gt; Not the app with the most features — the app that does what I need and stays out of the way.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I named it &lt;strong&gt;Macxelio&lt;/strong&gt; — &lt;strong&gt;Mac&lt;/strong&gt; + &lt;strong&gt;X&lt;/strong&gt;ray + &lt;strong&gt;I/O&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  It lives in the menu bar
&lt;/h2&gt;

&lt;p&gt;My main rule was simple: &lt;strong&gt;you should not need to open a window.&lt;/strong&gt; A proxy app is something you use many times a day but rarely look at.&lt;/p&gt;

&lt;p&gt;So the menu bar &lt;em&gt;is&lt;/em&gt; the app. You click the small flame icon and everything is there:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Switch to a different server.&lt;/li&gt;
&lt;li&gt;Change the mode (Global, Rule, or Direct).&lt;/li&gt;
&lt;li&gt;Turn the system proxy or DNS on and off.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each line shows its current state, so you can read it at a glance. The active server even shows its speed (how fast it responds) right in the menu. You only open the main window for the things you do once in a while — adding servers, writing rules — not for daily use.&lt;/p&gt;

&lt;p&gt;It supports the common protocols too: &lt;strong&gt;Shadowsocks, VLESS, VMess, Trojan, SOCKS, and HTTP&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways to send your traffic
&lt;/h2&gt;

&lt;p&gt;A proxy is more useful when you can choose &lt;em&gt;what&lt;/em&gt; goes through it. Macxelio has three modes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Global&lt;/strong&gt; — send everything through the proxy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rule&lt;/strong&gt; — send only the traffic that matches your rules; the rest goes out normally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Direct&lt;/strong&gt; — send nothing through the proxy, but keep it ready for later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most of the time I stay in &lt;strong&gt;Rule&lt;/strong&gt; mode, because it gives me control without thinking about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rules: decide what goes where
&lt;/h2&gt;

&lt;p&gt;In Rule mode, you write simple rules. Each rule looks at some traffic and decides what to do with it.&lt;/p&gt;

&lt;p&gt;You can match by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Domain&lt;/strong&gt; — like &lt;code&gt;github.com&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IP&lt;/strong&gt; — like &lt;code&gt;10.0.0.0/8&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GeoIP&lt;/strong&gt; — a country, like &lt;code&gt;ir&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GeoSite&lt;/strong&gt; — a known group, like &lt;code&gt;google&lt;/code&gt; or &lt;code&gt;category-ads-all&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And you choose what happens to it: send it through the &lt;strong&gt;Proxy&lt;/strong&gt;, let it go &lt;strong&gt;Direct&lt;/strong&gt;, or &lt;strong&gt;Block&lt;/strong&gt; it.&lt;/p&gt;

&lt;p&gt;For example: send the sites you need through the proxy, keep local and banking traffic direct, and block ad domains. Rules run from top to bottom, so the more specific ones go first.&lt;/p&gt;

&lt;h2&gt;
  
  
  It works for your whole Mac
&lt;/h2&gt;

&lt;p&gt;Most tools only fix your browser. Macxelio can set the macOS &lt;strong&gt;system proxy&lt;/strong&gt; and &lt;strong&gt;DNS&lt;/strong&gt; for you, so every app benefits — not just one.&lt;/p&gt;

&lt;p&gt;You can also set your own DNS servers and add &lt;strong&gt;host mappings&lt;/strong&gt; (point a name to an address, like &lt;code&gt;nas.home&lt;/code&gt; → &lt;code&gt;192.168.1.20&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;One honest note: turning on system-wide DNS asks for your Mac password. That is because it installs a tiny helper to apply DNS for the whole system, and it removes that helper again when you turn it off. The password goes to macOS, not to the app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Proxy for your developer tools
&lt;/h2&gt;

&lt;p&gt;This is the part I did not expect to love.&lt;/p&gt;

&lt;p&gt;Many command-line tools do not follow the system proxy at all — npm, pip, git, Docker, your shell. The old way was to edit files like &lt;code&gt;~/.npmrc&lt;/code&gt; and &lt;code&gt;~/.gitconfig&lt;/code&gt; by hand, and then remember to undo them later. I always forgot.&lt;/p&gt;

&lt;p&gt;So Macxelio has an &lt;strong&gt;Environments&lt;/strong&gt; screen. It finds the tools you have installed and sets the proxy for each one for you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Package managers: npm, pnpm, yarn, pip, conda, cargo, gem&lt;/li&gt;
&lt;li&gt;Version control: git&lt;/li&gt;
&lt;li&gt;Downloaders: curl, wget&lt;/li&gt;
&lt;li&gt;Containers: docker&lt;/li&gt;
&lt;li&gt;Shell: your &lt;code&gt;~/.zshrc&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Turn a tool on, and it writes the setting. Turn it off, and it cleans up after itself. This started as a small thing for me, and now I use it more than anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  You can see that it is working
&lt;/h2&gt;

&lt;p&gt;Macxelio checks the active server on a timer and shows a clear status: &lt;strong&gt;connected&lt;/strong&gt; (with its speed), &lt;strong&gt;slow&lt;/strong&gt;, &lt;strong&gt;error&lt;/strong&gt;, or &lt;strong&gt;not connected&lt;/strong&gt;. When the connection stays healthy, it checks less often, so it is not busy for no reason.&lt;/p&gt;

&lt;p&gt;There is also a &lt;strong&gt;Connections&lt;/strong&gt; view. It shows your live traffic in real time — what is connected, and whether each one went through the proxy, went direct, or was blocked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Made to stay simple
&lt;/h2&gt;

&lt;p&gt;Because I had been let down by an app that disappeared, I tried to keep this one calm and plain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Written in plain &lt;strong&gt;Swift&lt;/strong&gt;. It is a small native app, not a big framework.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No accounts, no tracking.&lt;/strong&gt; Your settings are just a JSON file on your disk.&lt;/li&gt;
&lt;li&gt;It &lt;strong&gt;downloads Xray-core&lt;/strong&gt; on first launch, so there is nothing else to install.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Download the latest release, unzip it, and move &lt;strong&gt;Macxelio.app&lt;/strong&gt; to your Applications folder. The first time you open it, &lt;strong&gt;right-click the app and choose Open&lt;/strong&gt; (it is not notarized yet). If macOS still blocks it, allow it under &lt;em&gt;System Settings → Privacy &amp;amp; Security&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Or build it yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/dalirnet/macxelio.git
&lt;span class="nb"&gt;cd &lt;/span&gt;macxelio
make run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It needs &lt;strong&gt;macOS 13 or later&lt;/strong&gt;, it is &lt;strong&gt;MIT licensed&lt;/strong&gt;, and it is open source. A ⭐ on GitHub helps other people find it:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/dalirnet/macxelio" rel="noopener noreferrer"&gt;https://github.com/dalirnet/macxelio&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I built it for myself, the way I always wanted it. Maybe it is what you have been waiting for too.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>macos</category>
      <category>networking</category>
      <category>productivity</category>
    </item>
    <item>
      <title>You Don't Need Users to Do Real Open Source. Go Self-Driven.</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Tue, 09 Jun 2026 10:41:40 +0000</pubDate>
      <link>https://dev.to/dalirnet/you-dont-need-users-to-do-real-open-source-go-self-driven-2hm1</link>
      <guid>https://dev.to/dalirnet/you-dont-need-users-to-do-real-open-source-go-self-driven-2hm1</guid>
      <description>&lt;p&gt;A while ago I wrote about &lt;a href="https://dev.to/diphyx/eliminate-80-of-nuxt-store-boilerplate-with-a-single-createstore-call-o42"&gt;cutting 80% of Nuxt store boilerplate with one &lt;code&gt;createStore&lt;/code&gt; call&lt;/a&gt;. That post was about the idea.&lt;/p&gt;

&lt;p&gt;This one is not about code. It's about what happened after I had to live with that idea every single day — and what it did to me.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤫 First, the honest part
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/harlemify" rel="noopener noreferrer"&gt;Harlemify&lt;/a&gt; probably has no users but us.&lt;/p&gt;

&lt;p&gt;It's a small Nuxt library I built to solve a real need of our own, and our product &lt;a href="https://diphyx.com" rel="noopener noreferrer"&gt;DiPhyx&lt;/a&gt; runs on it under the hood. It's on npm. It has an MIT license. But I'm not going to pretend a crowd is waiting for my next release.&lt;/p&gt;

&lt;p&gt;I am the user. Pretty much the only one. No issues from strangers. No feature requests, no discussions, no angry comments about a breaking change. The download count is mostly my own CI runs waving back at me. The whole "community" fits in a single chair — mine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc4b8t0uu8y9q4snmbpm3.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc4b8t0uu8y9q4snmbpm3.gif" alt="forever alone" width="480" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For a long time, I thought that meant open source wasn't really for a project like this. The dream — the users, the stars, the pull requests from strangers — clearly wasn't coming. So why write issues, changelogs, and migration notes for an audience of one?&lt;/p&gt;

&lt;p&gt;I think a lot of developers stop right here. They look at their small project, see no crowd on the way, and quietly give up on doing it &lt;em&gt;properly&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Then, almost by accident, I started doing the exact opposite.&lt;/p&gt;

&lt;p&gt;And it became the most useful habit of my year.&lt;/p&gt;




&lt;h2&gt;
  
  
  📜 The first small rule
&lt;/h2&gt;

&lt;p&gt;It started with a tiny promise to myself.&lt;/p&gt;

&lt;p&gt;I was building a feature in our product, and the library got in my way. Nothing dramatic. Just a small moment where the tool I had built forced me to write something awkward.&lt;/p&gt;

&lt;p&gt;The easy move? Patch it right there in the app and keep going. I had done that many times before.&lt;/p&gt;

&lt;p&gt;This time, I stopped.&lt;/p&gt;

&lt;p&gt;Instead of fixing it in the product, I opened an issue &lt;strong&gt;on the library&lt;/strong&gt;. I wrote down what felt wrong, and why. Then I fixed the library itself, made a release, and went back to the app to use the new version.&lt;/p&gt;

&lt;p&gt;It took longer. It felt a little silly, like writing a formal letter to myself. But it stuck. So I turned it into a rule:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;When the library makes me write something awkward, I don't patch the app.&lt;br&gt;
I open an issue, fix the library, and release.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That one rule quietly ran the whole project for the next few months. No roadmap, no users telling me what to build next — just me, the product, and the library.&lt;/p&gt;

&lt;p&gt;You might call this dogfooding taken to its limit. I think of it as something simpler: &lt;strong&gt;self-driven.&lt;/strong&gt; The whole direction of the project came from one place — me, using it for real.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔁 The rhythm
&lt;/h2&gt;

&lt;p&gt;After a while, it became a loop I didn't even think about:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Hit some friction while building the product.&lt;/li&gt;
&lt;li&gt;Open an issue and describe the cause in plain words.&lt;/li&gt;
&lt;li&gt;Fix it, write a few tests, update the docs, ship a release.&lt;/li&gt;
&lt;li&gt;Upgrade the app and delete the old workaround.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then the next rough edge would show up. And it would start again.&lt;/p&gt;

&lt;p&gt;The surprise was &lt;strong&gt;step two&lt;/strong&gt; — writing the issue.&lt;/p&gt;

&lt;p&gt;I thought it would be a waste of time. It was the opposite. When you force yourself to explain &lt;em&gt;why&lt;/em&gt; something is wrong, before you're allowed to touch the code, you stop fixing the surface and start fixing the real cause.&lt;/p&gt;

&lt;p&gt;A lot of my best changes only became clear because I had to write them down first.&lt;/p&gt;

&lt;p&gt;Slowly, it added up. Issue after issue, all written by me. Not a single bug report from anyone else. Release after release, several of them full rewrites. The tracker filled up, and every line in it had my name on it.&lt;/p&gt;

&lt;p&gt;I don't tell you this to impress anyone. I tell you because it points to a simple idea I didn't expect to find: &lt;strong&gt;you can do real open source even when you're the only user.&lt;/strong&gt; Maybe that's a new way to look at it — open source not as a project waiting for a crowd, but as a craft you can practice in full, even when you're the only one in the room.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 A few moments I still remember
&lt;/h2&gt;

&lt;p&gt;Some issues stayed with me. Not because of the code — because of the lesson.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The day my own design broke.&lt;/strong&gt;&lt;br&gt;
I had decided actions could only be a few fixed names. It looked clean. Then the product needed something my clean idea simply could not express, and the whole thing fell apart. One of my early major versions came from my own product refusing to fit the box I had built for it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy7k4isuf1cbiupyx9i4a.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy7k4isuf1cbiupyx9i4a.gif" alt="this is fine" width="500" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The real world does not care how tidy your design looks.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;The option nobody used. Not even me.&lt;/strong&gt;&lt;br&gt;
One day I noticed I kept turning the same setting off, everywhere. So I counted. Every single place that used it had turned it off. Not one used the default. So I deleted it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Your own product shows you what's missing — and, just as clearly, what you should never have added.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;The bug only a real user could find.&lt;/strong&gt;&lt;br&gt;
Everything passed in the tests. Then the app broke in a way the tests could never catch, because it only happened in the unpredictable timing of a real screen mounting and unmounting.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Tests are not the same thing as use.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;None of these were big or famous. They were small, ordinary problems. But because I took each one seriously, each one made the library a little better — and made me a little better too.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤔 Why I keep doing this for one user
&lt;/h2&gt;

&lt;p&gt;Here's the question I expect:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Why put this much care into a library only you use? Just patch the app and move on.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And yes — patching the app is always faster &lt;em&gt;today&lt;/em&gt;. But that answer measures the wrong thing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The library was never the only output.&lt;/strong&gt; The other output — the one that keeps paying me back — is the experience itself.&lt;/p&gt;

&lt;p&gt;By running a tiny library as if real people depended on it, I got to practice the whole craft of open source in a place where mistakes are cheap. Over a few months, I got better at:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Writing a real issue&lt;/strong&gt; — one that explains the &lt;em&gt;cause&lt;/em&gt;, not just the complaint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sizing a change&lt;/strong&gt; — small, or breaking? — and writing an honest migration note, even when the only person migrating was me.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Doing the boring parts&lt;/strong&gt; — tests, docs, changelog — every time, until they stopped feeling like extra work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Being bold safely&lt;/strong&gt; — making a big change, getting it wrong, and fixing it next week with nobody angry at me.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A library nobody depends on turned out to be the safest, most honest training ground I've ever had.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The library getting better was a bonus. The real reward was the practice.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I won't pretend it's perfect, though. &lt;strong&gt;I am my own blind spot.&lt;/strong&gt; Every problem in that tracker is a problem that &lt;em&gt;I&lt;/em&gt; happened to hit. The ones I never hit — because of the way I think and build — are simply not on the list.&lt;/p&gt;

&lt;p&gt;One real bug report from a stranger would still teach me something none of these did. This habit builds discipline; it can't give me someone else's eyes. But I'd rather build the discipline now, and be ready when those eyes finally show up.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧭 What I'd tell you
&lt;/h2&gt;

&lt;p&gt;If you keep a small library that powers your own product: &lt;strong&gt;don't wait for users before you act like a maintainer.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The roadmap is already being written for you. It's the quiet list of moments where your own product fights you. Every time you sigh and reach for a workaround — that's an issue asking to be written.&lt;/p&gt;

&lt;p&gt;The steps are simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use your tool for real.&lt;/li&gt;
&lt;li&gt;Notice the friction.&lt;/li&gt;
&lt;li&gt;Write down &lt;em&gt;why&lt;/em&gt; it's there, before you fix it.&lt;/li&gt;
&lt;li&gt;Ship the fix properly.&lt;/li&gt;
&lt;li&gt;Update your product, and wait for the next rough edge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So maybe the open-source dream doesn't have to start with a crowd. Maybe it can start with one person, one real project, and the choice to treat it seriously. By that definition, &lt;strong&gt;every one of us can do open source — even if we turn out to be the only user it ever has.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My crowd never showed up. And somewhere along the way, I stopped waiting for it.&lt;/p&gt;

&lt;p&gt;I just kept using it, kept filing issues, kept shipping. The library grew up. So did I. And that was the whole point.&lt;/p&gt;




&lt;p&gt;Harlemify is MIT licensed and lives on &lt;a href="https://github.com/diphyx/harlemify" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and &lt;a href="https://www.npmjs.com/package/@diphyx/harlemify" rel="noopener noreferrer"&gt;npm&lt;/a&gt;. Try it, star it, break it. And whatever you're building — even for an audience of one — run it like it matters.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>webdev</category>
      <category>career</category>
      <category>nuxt</category>
    </item>
    <item>
      <title>From 80 Days Around the World to 80 Days in the Dark</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Sun, 17 May 2026 06:58:07 +0000</pubDate>
      <link>https://dev.to/dalirnet/from-80-days-around-the-world-to-80-days-in-the-dark-1bkb</link>
      <guid>https://dev.to/dalirnet/from-80-days-around-the-world-to-80-days-in-the-dark-1bkb</guid>
      <description>&lt;p&gt;&lt;em&gt;"Eighty days," Jules Verne wrote in 1872, was how long it took to circle the planet. In Iran today, it is how long a developer in Tehran has been unable to reach a single server outside it.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Part 1: The morning everything stopped
&lt;/h2&gt;

&lt;p&gt;You wake up. You pour tea. You open your laptop and run &lt;code&gt;git pull&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It hangs.&lt;/p&gt;

&lt;p&gt;You ping &lt;code&gt;8.8.8.8&lt;/code&gt; — nothing. You &lt;code&gt;curl github.com&lt;/code&gt; — DNS failure. You restart the router, the modem, the laptop. You call your ISP. The person on the phone has had this call all morning, and the morning before that, and the morning before that:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"It's the whole country. We don't know when it comes back. We never do."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That was day one. Today is day 80. Tomorrow will be day 81. &lt;strong&gt;Nobody knows what day it ends on.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the story of friends, ex-colleagues, and a whole generation of developers still in Iran — people who, right now, have been almost completely cut off from the global internet for &lt;strong&gt;80 days and counting&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you're a developer reading this from anywhere else, imagine — for the next few minutes — what it would mean if every package manager you depend on stopped working tomorrow. &lt;code&gt;npm&lt;/code&gt;, &lt;code&gt;pip&lt;/code&gt;, &lt;code&gt;go mod&lt;/code&gt;, &lt;code&gt;cargo&lt;/code&gt;, &lt;code&gt;gem&lt;/code&gt;, &lt;code&gt;mvn&lt;/code&gt;, whichever you use.&lt;/p&gt;

&lt;p&gt;Not for a day. Not for a week. For three months. With no end.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part 2: The dead screen
&lt;/h2&gt;

&lt;p&gt;The blackout breaks the toolchain one error at a time — until you realize the whole thing you depend on lives somewhere you can no longer reach.&lt;/p&gt;

&lt;p&gt;Day one in an Iranian developer's terminal looks like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;git push origin main&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Could not resolve host: github.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;npm install&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Stalls on the first fetch from &lt;code&gt;registry.npmjs.org&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pip install&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Same story with PyPI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;go mod download&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;dial tcp: lookup proxy.golang.org: no such host&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cargo build&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;crates.io unreachable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;mvn install&lt;/code&gt; / &lt;code&gt;gradle build&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Maven Central times out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;docker pull&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;TLS handshake timeout&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;apt update&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Mirrors unreachable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stack Overflow&lt;/td&gt;
&lt;td&gt;A few pages from browser cache. None of the answers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT, Claude, Gemini, Copilot, Cursor&lt;/td&gt;
&lt;td&gt;All blocked. Hard.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MDN, React docs, anything on Cloudflare&lt;/td&gt;
&lt;td&gt;Half the web's docs, gone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Slack, Discord, Telegram&lt;/td&gt;
&lt;td&gt;Gone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your GitHub Actions&lt;/td&gt;
&lt;td&gt;They run somewhere. You can't see the logs.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What the table doesn't show is the &lt;strong&gt;second layer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Your linter quietly tries to fetch a rule update. Your editor tries to refresh its extensions. Your CI pipeline, running in some server farm in Frankfurt, sits waiting for commits that will never arrive.&lt;/p&gt;

&lt;p&gt;Even the tools you thought were "local" turn out to be thin shells over a server somewhere else. Everything you do, all day, is a request to &lt;em&gt;somewhere else&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;When &lt;em&gt;somewhere else&lt;/em&gt; is unreachable, you find out how thin your local computer actually is.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part 3: And it's not just developers
&lt;/h2&gt;

&lt;p&gt;The developer story is one room in a much bigger house. The whole house is dark.&lt;/p&gt;

&lt;p&gt;Until 80 days ago, Iran was a country that lived on the internet.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Telegram&lt;/strong&gt; was where daily life happened.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instagram&lt;/strong&gt; was where a generation of Iranian women built their own businesses, where photographers and artists earned a living, where the shops without a storefront lived.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WhatsApp&lt;/strong&gt; was the lifeline to family abroad — to the cousins in Toronto, the children in Berlin, the brother in Dubai.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of it, gone overnight.&lt;/p&gt;

&lt;p&gt;For hundreds of thousands of Iranians, those apps weren't &lt;em&gt;social media&lt;/em&gt; — they were the whole business.&lt;/p&gt;

&lt;p&gt;The woman in Karaj selling homemade &lt;em&gt;shirini&lt;/em&gt; (Persian sweets) through DMs. The seamstress taking orders from her bedroom. The mechanic in South Tehran posting before-and-after photos of Pride repairs. The &lt;em&gt;Konkur&lt;/em&gt; tutor running online classes for students preparing for the university entrance exam. The hairdresser, the photographer, the calligrapher, the spice seller, the young woman embroidering cushions from her bedroom.&lt;/p&gt;

&lt;p&gt;None of these people had a website. None of them needed one. They had an Instagram page for the shop, a Telegram channel for orders, and a bank card number — customers transferred the money, took a screenshot of the receipt, and sent it back.&lt;/p&gt;

&lt;p&gt;Now the shop has no door.&lt;/p&gt;

&lt;p&gt;This isn't a story about things being a little less convenient. It's a story about people who can't pay this month's rent or this year's &lt;em&gt;rahn&lt;/em&gt; — Iran's housing deposit, often a year's salary handed to the landlord all at once.&lt;/p&gt;

&lt;p&gt;It's a story about families buying less meat, less fruit, less of everything. About a business someone built over five years disappearing in one morning, with no way to get it back.&lt;/p&gt;

&lt;p&gt;The blackout didn't just cut a country off from the global internet. &lt;strong&gt;It cut hundreds of thousands of families off from the way they buy bread.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Developers aren't the only victims of this blackout. We're just the ones who can describe the damage in code.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part 4: The workarounds you'd imagine? None of them exist.
&lt;/h2&gt;

&lt;p&gt;If you live in a country where the internet works, you'll think of one word right away: &lt;strong&gt;VPN&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Everyone in Iran uses VPNs, right?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Not anymore.&lt;/p&gt;

&lt;p&gt;For years, Iranian developers fought a long battle over tunneling protocols — V2Ray, Xray, Reality, Hysteria, Trojan, Shadowsocks, WireGuard-over-TLS — every trick engineers could think of to make their traffic look harmless to the censor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That battle ended 80 days ago.&lt;/strong&gt; The censor stopped playing — and hasn't started again.&lt;/p&gt;

&lt;p&gt;Every public protocol, every paid provider, every config — dead. No Psiphon. No Lantern. No Cloudflare WARP. No clever setting hidden on a forum somewhere, because the forum doesn't load either.&lt;/p&gt;

&lt;p&gt;When the tunnel closes, everything else breaks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No GitHub. No GitLab. No Bitbucket.&lt;/li&gt;
&lt;li&gt;No npm. No PyPI. No crates.io. No &lt;code&gt;proxy.golang.org&lt;/code&gt;. No Maven Central. No RubyGems. No Packagist. No Docker Hub.&lt;/li&gt;
&lt;li&gt;No ChatGPT, Claude, Cursor, Copilot, Gemini.&lt;/li&gt;
&lt;li&gt;No Stack Overflow. No MDN. No React docs. No AWS console.&lt;/li&gt;
&lt;li&gt;No Slack. No Discord. No Telegram. No WhatsApp.&lt;/li&gt;
&lt;li&gt;No Zoom. No Google Meet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mirrors that exist in name only.&lt;/strong&gt; Iran has local mirrors for Linux, npm, PyPI, Docker Hub, the Go proxy, Maven — universities and a few volunteers set them up years ago. But they're months out of date, throttled to a crawl, rate-limited, and half-broken. The badge on the homepage works. The package never finishes downloading.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No local AI model you can run&lt;/strong&gt;, unless you happened to download the weights to your hard drive &lt;em&gt;before&lt;/em&gt; the blackout started.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What's left? Only what was already on a hard drive on day one, and the physical movement of data — and, if you can pay for it, a black market I'll explain in a moment.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pre-blackout stashes.&lt;/strong&gt; &lt;code&gt;node_modules&lt;/code&gt; folders, Docker images, &lt;code&gt;.deb&lt;/code&gt; packages, model weights, doc snapshots — anything saved before the blackout is now treasure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sneakernet.&lt;/strong&gt; A USB drive passed between coworkers. A friend who drives across the city to hand-deliver an updated company tarball. Anything from abroad has to come overland — across the Turkish, Iraqi, or Armenian border — and arrives weeks or months late.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The friend abroad.&lt;/strong&gt; Someone outside Iran downloads what's needed and waits weeks or months for it to physically reach the developer who asked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop.&lt;/strong&gt; A lot of developers just stopped. They can't ship, can't learn, can't get paid. They're reading old books and waiting.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Part 5: Some animals are more equal than others
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"All animals are equal, but some animals are more equal than others."&lt;/em&gt;&lt;br&gt;
— George Orwell, &lt;em&gt;Animal Farm&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Not everyone is equally cut off.&lt;/p&gt;

&lt;p&gt;In any blackout, some people get exceptions. Government offices need access for reasons they don't have to explain. Some businesses, some ministries, some people with the right connections get what's quietly called &lt;strong&gt;"Internet Pro"&lt;/strong&gt; — a special, government-approved level of internet that goes past the block.&lt;/p&gt;

&lt;p&gt;The official excuse changes depending on who's asking. The real reason is connection — &lt;strong&gt;who you know, what you can pay.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The moment that special access exists, a market exists.&lt;/p&gt;

&lt;p&gt;If you have Internet Pro and your neighbor doesn't, your apartment becomes the internet. You set up a hotspot, a SOCKS proxy, a tunnel — whatever the buyer needs — and you charge by the gigabyte.&lt;/p&gt;

&lt;p&gt;The price runs anywhere from &lt;strong&gt;10x to 100x what internet used to cost&lt;/strong&gt; when the country was online.&lt;/p&gt;

&lt;p&gt;Here's what that means for a developer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;code&gt;docker pull&lt;/code&gt; of one base image: 500 MB. At 50x the old price, that's a day's worth of food — for one pull.&lt;/li&gt;
&lt;li&gt;A fresh dependency install — &lt;code&gt;npm install&lt;/code&gt;, &lt;code&gt;pip install&lt;/code&gt;, &lt;code&gt;go mod download&lt;/code&gt;, &lt;code&gt;cargo build&lt;/code&gt;, &lt;code&gt;mvn install&lt;/code&gt;, whichever you use: 100-500 MB. Multiply by every time your dependencies break.&lt;/li&gt;
&lt;li&gt;Downloading the weights for one local AI model that might let you keep working: 8 GB. That's a week of groceries.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;git clone&lt;/code&gt; of your company's monorepo: 2 GB. Your employer doesn't pay you back. Your employer also can't see your work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The blackout is not the same for everyone. Some people are hit hard. Some barely feel it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;At the top:&lt;/strong&gt; senior engineers with money saved and the right contacts. They can pay for a black-market tunnel and keep working at half speed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the middle:&lt;/strong&gt; developers counting every megabyte, choosing which one task this week is worth the cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;At the bottom:&lt;/strong&gt; students, juniors, freelancers. For them, one hour online costs more than they used to earn in a day. They're not just disconnected. They're &lt;em&gt;priced out of being a developer&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;A blackout creates a black market. A black market creates a class system. And in the dev community, that class system will last longer than the blackout itself.&lt;/p&gt;

&lt;h3&gt;
  
  
  The book this all comes from
&lt;/h3&gt;

&lt;p&gt;Orwell wrote &lt;em&gt;Animal Farm&lt;/em&gt; about a revolution that promised equality and gave the opposite. He thought he was writing about Soviet communism. He was.&lt;/p&gt;

&lt;p&gt;But he was also writing — without knowing it — about every revolution that came after and made the same promise and broke it the same way. &lt;strong&gt;Including the Islamic Republic that has run Iran since 1979.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The hammer and sickle becomes a flag of God. The Party becomes the clergy. The commissar becomes the Revolutionary Guard.&lt;/p&gt;

&lt;p&gt;The flag, the slogans, the scripture — all of these change. The farm stays the same.&lt;/p&gt;

&lt;p&gt;The blackout was presented as one rule for everyone — &lt;em&gt;the country is offline, no exceptions&lt;/em&gt;. Eighty days later, the exceptions &lt;em&gt;are&lt;/em&gt; the story.&lt;/p&gt;

&lt;p&gt;Some animals have wifi. The rest watch the pigs walk on two legs and pretend not to see.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verne and Orwell, together
&lt;/h3&gt;

&lt;p&gt;The two writers see opposite halves of the same picture.&lt;/p&gt;

&lt;p&gt;Verne saw the world getting smaller. Steamships and railways were shrinking the planet to eighty days of travel, and he was right — the world &lt;em&gt;did&lt;/em&gt; get smaller.&lt;/p&gt;

&lt;p&gt;Orwell, decades later, saw what Verne missed:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A world that is "small" for some people is, by the same act, a fence around others.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For every railway that connects two cities, there is a border the railway does not cross. For every steamship, there is a port someone is not allowed to leave. The smallness Verne celebrated was never for everyone — it was a privilege handed out by whoever owned the railways and the steamships and, today, the routers and the fiber.&lt;/p&gt;

&lt;p&gt;Iran is on the wrong side of that line.&lt;/p&gt;

&lt;p&gt;The same eighty days that once meant &lt;em&gt;the world is reachable&lt;/em&gt; now mean the opposite. Eighty days of proof that privileges can be revoked — and that when they are, the country left behind disappears from the map of the connected world overnight.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part 6: The things you don't think about until they're gone
&lt;/h2&gt;

&lt;p&gt;The technical problems are solvable in theory. What you can't copy offline is &lt;em&gt;the rest of being a developer in 2026&lt;/em&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You can't get paid.&lt;/strong&gt; Stripe, Wise, PayPal were never available to Iranians — sanctions blocked them years ago. Crypto, especially USDT through P2P channels, was the only workaround. The blackout killed that too. Now the only payment route is a friend abroad receiving the money for you and waiting weeks to physically hand it over.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can't ship.&lt;/strong&gt; Your AWS console doesn't load. Your Vercel deploys wait forever. Your CI runs somewhere, without you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can't apply for remote jobs.&lt;/strong&gt; The application platforms don't open. And even if they did, sanctions blocked the payment side to Iranians years before the blackout closed the application side. The trap closes from both ends.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can't update your portfolio.&lt;/strong&gt; Your own website works in Berlin and doesn't exist in Tehran.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can't learn.&lt;/strong&gt; Every tutorial, every course, every new framework's docs — gone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A whole generation of brilliant engineers is, professionally, going dark. &lt;strong&gt;They didn't stop working. The world stopped seeing them work.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Part 7: What you can actually do
&lt;/h2&gt;

&lt;p&gt;I didn't write this to make you sad. There are real things the global dev community can do, and most people don't know what they are.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Don't geoblock by default — and check your assumptions about who's on the other side
&lt;/h3&gt;

&lt;p&gt;Half the SaaS tools on the planet block Iranian IPs as an easy way to follow the law.&lt;/p&gt;

&lt;p&gt;The unspoken assumption behind those blocks is that every Iranian IP belongs to the regime — that every user is Revolutionary Guard or a regime official.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;They are not.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The actual people behind those IPs are developers, students, journalists, women, dissidents — mostly the &lt;em&gt;opposite&lt;/em&gt; of the regime your sanctions are aimed at. They are the ones being beaten in the streets, the ones being arrested, the ones whose internet was just cut off.&lt;/p&gt;

&lt;p&gt;The Revolutionary Guard has other ways through your blocks. &lt;strong&gt;The only people you stop are the ones on your side.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When access comes back — and it will, in waves — your service being open by default could be the difference between an Iranian dev sending their first PR or giving up. Check if your geoblock is actually required by law, or just a default someone never turned off.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Hire Iranian developers
&lt;/h3&gt;

&lt;p&gt;Iranian engineers are some of the most resourceful in the world. Most of them aren't trying to leave Iran. They're trying to keep working from where they are.&lt;/p&gt;

&lt;p&gt;Hire them remotely. Hire them per project. Pay in USDT through person-to-person channels — the only payment route that still reaches Iran. A modest USD contract is life-changing in the Iranian economy right now.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Sponsor open-source maintainers from Iran
&lt;/h3&gt;

&lt;p&gt;GitHub Sponsors, Open Collective, direct USDT — whatever channel reaches them.&lt;/p&gt;

&lt;p&gt;$50 a month right now can be the difference between someone paying for a black-market tunnel to keep contributing, or going silent.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Build better internal mirrors inside Iran — for the next blackout
&lt;/h3&gt;

&lt;p&gt;This one is for the Iranians who still have internet access right now: universities, ISPs, sysadmins, anyone with the capacity to run a mirror.&lt;/p&gt;

&lt;p&gt;The mirrors inside Iran today are broken. Out of date, throttled, half-broken — the badge on the homepage works, the package never downloads. That is the situation every Iranian developer is paying for right now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The next blackout will come.&lt;/strong&gt; When it does, the only mirrors that matter will be the ones already inside the country. The external mirror that the rest of the world maintains is useless to a developer who cannot reach the rest of the world.&lt;/p&gt;

&lt;p&gt;Build properly maintained internal mirrors of npm, PyPI, crates.io, the Go proxy, Maven Central, Debian. Keep them current. Give them the bandwidth and capacity to actually serve real traffic. Run them quietly — at universities, at companies, on personal servers. Snapshot them regularly so the data survives even if any single host goes down.&lt;/p&gt;

&lt;p&gt;The infrastructure that exists when the next blackout begins will be the infrastructure Iran has during it. &lt;strong&gt;The work to build it is now — while the internet still works.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Part 8: The part that matters
&lt;/h2&gt;

&lt;p&gt;Right now, as I publish this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There is a developer in Tehran who hasn't run &lt;code&gt;git push&lt;/code&gt; in 80 days. Tomorrow he won't either. The day after, probably not. No one has told him when he can.&lt;/li&gt;
&lt;li&gt;There is a junior dev in Shiraz who can't finish the React tutorial she started in February.&lt;/li&gt;
&lt;li&gt;There is a CTO in Isfahan watching her seed round disappear because no investor call will stay connected.&lt;/li&gt;
&lt;li&gt;There is a freelancer in Tabriz who hasn't been paid in three months because the platform that owes him money won't even load.&lt;/li&gt;
&lt;li&gt;There is a student in Mashhad who calculated last night that one hour on a black-market tunnel costs more than his father earns in a day, and quietly closed his laptop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They are still building. Slowly, quietly, with USB drives and patience and whatever internet they can afford.&lt;/p&gt;

&lt;p&gt;And the hardest part — harder than the broken &lt;code&gt;git push&lt;/code&gt;, harder than counting every megabyte, harder than the missed paychecks — &lt;strong&gt;is the silence from the rest of the world.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Eighty days of a country going dark, and the global news scrolled past it. No emergency meeting. No tech CEO statement.&lt;/p&gt;

&lt;p&gt;If this were happening in a country the global press had decided was important, it would be on every front page.&lt;/p&gt;

&lt;p&gt;It isn't.&lt;/p&gt;

&lt;p&gt;The silent message to every Iranian — developer, grandmother, child — is that their disconnection is not an event.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;They are not an event. They do not matter enough to be noticed.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The least the rest of us can do is prove that wrong.&lt;/p&gt;




&lt;h3&gt;
  
  
  One last thing — about the official story
&lt;/h3&gt;

&lt;p&gt;I am not a political person. I am an engineer. I write about code. I write about systems. I write about real engineering work. This is not what my keyboard is usually for.&lt;/p&gt;

&lt;p&gt;But I have to say this once, clearly.&lt;/p&gt;

&lt;p&gt;The Iranian government has an official reason for the blackout. But before I get to the reason, let me name where the decision actually comes from — because outside Iran, this is misunderstood.&lt;/p&gt;

&lt;p&gt;The blackout was not ordered by "the government" in the way Western readers picture government. Iran's elected officials — the president, the parliament, the cabinet — do not hold real power. They are the shadow show. The actual decisions come from the &lt;strong&gt;Supreme Leader&lt;/strong&gt; and the &lt;strong&gt;Islamic Revolutionary Guard Corps (IRGC)&lt;/strong&gt;. Cutting a country off from the internet is their order, not the cabinet's.&lt;/p&gt;

&lt;p&gt;They say it is for national security. They say it is because of the war. They say it is temporary.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;They are lying. Every one of those is a lie.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A country cannot fight back if it cannot see what is being done to it. It cannot ask for help if it cannot reach the world. It cannot stand up for itself if its people cannot reach each other.&lt;/p&gt;

&lt;p&gt;That is the real reason. Everything else is a lie the Supreme Leader and the IRGC tell to keep the world from looking too closely — and to keep their own people from looking at each other.&lt;/p&gt;




&lt;p&gt;Verne's hero needed eighty days to circle the planet. An Iranian developer has spent the same eighty days unable to leave the country at all — not on a plane, not on the internet, in no direction at all.&lt;/p&gt;

&lt;p&gt;For most of the world, the planet keeps getting smaller. For Iran, it has gotten very large again. And no one is rushing to shrink it back.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;If you're anyone else reading this, please share it. The loudest thing we can do is refuse to let this stay silent.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>iran</category>
      <category>opensource</category>
      <category>community</category>
      <category>discuss</category>
    </item>
    <item>
      <title>No Docker Here: Welcome to Singularity 🔬</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Wed, 25 Feb 2026 18:55:22 +0000</pubDate>
      <link>https://dev.to/dalirnet/no-docker-here-welcome-to-singularity-2b2g</link>
      <guid>https://dev.to/dalirnet/no-docker-here-welcome-to-singularity-2b2g</guid>
      <description>&lt;p&gt;I just joined a new project — one that runs on a big HPC cluster. I opened the project &lt;code&gt;README.md&lt;/code&gt; and saw something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity &lt;span class="nb"&gt;exec &lt;/span&gt;docker://python:3.11 python train_model.py &lt;span class="nt"&gt;--data&lt;/span&gt; /shared/datasets/train
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I had no idea what &lt;code&gt;singularity&lt;/code&gt; was. 😅 So I did what felt natural — typed the Docker command instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run python:3.11 python train_model.py &lt;span class="nt"&gt;--data&lt;/span&gt; /shared/datasets/train
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the terminal replied with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bash: docker: &lt;span class="nb"&gt;command &lt;/span&gt;not found
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I messaged my project manager. His reply was short:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"We don't use Docker here. We use Singularity."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I stared at the message, thinking: "I have been using Docker for years. I know &lt;code&gt;docker build&lt;/code&gt;, &lt;code&gt;docker run&lt;/code&gt;, &lt;code&gt;docker push&lt;/code&gt; like the back of my hand. And now none of that works here?"&lt;/p&gt;

&lt;p&gt;That's how it all started.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤔 "Why Not Docker?"
&lt;/h2&gt;

&lt;p&gt;I &lt;strong&gt;loved&lt;/strong&gt; Docker. Years of packaging apps in containers, deploying to production, running ML training pipelines. It was part of how I worked every day.&lt;/p&gt;

&lt;p&gt;So I asked my project manager to install Docker on the cluster. His reply came quickly:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"We can't. There are legal reasons we can't use Docker here. Company policy. But also — Singularity is a better fit for what we do."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;He didn't go into all the legal details, but explained the technical side in a Google Meet session. &lt;strong&gt;Docker needs a background daemon running all the time&lt;/strong&gt; — a service that sits there waiting for your commands. On a shared HPC cluster where hundreds of researchers submit jobs, that adds complexity and overhead. &lt;strong&gt;Singularity doesn't need any daemon&lt;/strong&gt; — you just run it directly. No background process. And you are the same user inside the container as you are outside. No switching to root, no permission confusion.&lt;/p&gt;

&lt;p&gt;That last part sounded too good to be true. But it was true.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What?&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Main idea&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Isolation (microservices)&lt;/td&gt;
&lt;td&gt;Integration (HPC)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Background daemon?&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes (always running)&lt;/td&gt;
&lt;td&gt;No (daemonless)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Who are you inside?&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;root by default&lt;/td&gt;
&lt;td&gt;Same user as host&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Image format&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Multi-layer, managed by daemon&lt;/td&gt;
&lt;td&gt;Single &lt;code&gt;.sif&lt;/code&gt; file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;File access&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Must mount volumes&lt;/td&gt;
&lt;td&gt;Auto-mounts &lt;code&gt;$HOME&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Network&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Isolated by default&lt;/td&gt;
&lt;td&gt;Host network&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Docker wants to &lt;strong&gt;isolate&lt;/strong&gt; your app from the system. Singularity wants to &lt;strong&gt;integrate&lt;/strong&gt; your app with the system.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That made sense. I started learning Singularity and writing down every Docker command I knew next to its Singularity equivalent. This article is that cheat sheet.&lt;/p&gt;




&lt;h2&gt;
  
  
  📦 Image Management
&lt;/h2&gt;

&lt;p&gt;First thing I needed was a Python image. In Docker, I would type &lt;code&gt;docker pull python:3.11&lt;/code&gt;. In Singularity, the command is almost the same — with one small twist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity pull docker://python:3.11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;See that &lt;code&gt;docker://&lt;/code&gt; prefix? &lt;strong&gt;All my Docker Hub images still work&lt;/strong&gt;. Every image I had ever used — GPU-enabled, data science, notebook servers — still available.&lt;/p&gt;

&lt;p&gt;But instead of layers hidden in Docker's storage, I got a &lt;strong&gt;single file&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-lh&lt;/span&gt; python_3.11.sif
&lt;span class="c"&gt;# -rwxr-xr-x 1 dalirnet dalirnet 385M Feb 25 09:15 python_3.11.sif&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That &lt;code&gt;.sif&lt;/code&gt; file &lt;strong&gt;is&lt;/strong&gt; the image. A real file in my directory. I can &lt;code&gt;cp&lt;/code&gt; it, &lt;code&gt;scp&lt;/code&gt; it to another node, or &lt;code&gt;rsync&lt;/code&gt; it anywhere. Try that with Docker — you need a registry, accounts, push, pull... With Singularity, you just copy a file.&lt;/p&gt;

&lt;p&gt;Want to delete it? &lt;code&gt;rm python_3.11.sif&lt;/code&gt;. No &lt;code&gt;docker system prune&lt;/code&gt;, no dangling images.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Pull image&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker pull ubuntu:22.04&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity pull docker://ubuntu:22.04&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Build image&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker build -t myimage .&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity build myimage.sif myimage.def&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;List images&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker images&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ls *.sif&lt;/code&gt; (they're just files!)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Inspect image&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker inspect myimage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity inspect myimage.sif&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  ▶️ Running Containers
&lt;/h2&gt;

&lt;p&gt;In Docker, I would do &lt;code&gt;docker run python:3.11 python script.py&lt;/code&gt;. In Singularity, the keyword is &lt;code&gt;exec&lt;/code&gt; instead of &lt;code&gt;run&lt;/code&gt; (&lt;code&gt;run&lt;/code&gt; exists too — more on that in a second):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity &lt;span class="nb"&gt;exec &lt;/span&gt;python_3.11.sif python &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Run a command&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker run myimage cmd&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity exec myimage.sif cmd&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Interactive shell&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker run -it myimage bash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity shell myimage.sif&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Default command&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker run myimage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity run myimage.sif&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker run -d myimage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity instance start myimage.sif name&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  📂 File System &amp;amp; Volumes
&lt;/h2&gt;

&lt;p&gt;This is where Singularity first surprised me. I typed &lt;code&gt;singularity shell python_3.11.sif&lt;/code&gt;, then &lt;code&gt;ls&lt;/code&gt; — and saw &lt;strong&gt;all my files&lt;/strong&gt;. My notebooks. My training scripts. My config files. Everything from my home folder, right there.&lt;/p&gt;

&lt;p&gt;In Docker, you see an empty filesystem unless you mount your folder with &lt;code&gt;-v&lt;/code&gt;. In Singularity, your home directory, current working directory, &lt;code&gt;/tmp&lt;/code&gt;, and system paths like &lt;code&gt;/proc&lt;/code&gt; and &lt;code&gt;/sys&lt;/code&gt; are &lt;strong&gt;automatically available&lt;/strong&gt; ✅.&lt;/p&gt;

&lt;p&gt;So my old Docker habit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;pwd&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;:/workspace &lt;span class="nt"&gt;-w&lt;/span&gt; /workspace python:3.11 python analysis.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Becomes just:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity &lt;span class="nb"&gt;exec &lt;/span&gt;docker://python:3.11 python analysis.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No &lt;code&gt;-v&lt;/code&gt;. No &lt;code&gt;-w&lt;/code&gt;. Your current directory is already there.&lt;/p&gt;

&lt;p&gt;When you need folders &lt;strong&gt;outside&lt;/strong&gt; your home directory, use &lt;code&gt;--bind&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--bind&lt;/span&gt; /shared/datasets:/data &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--bind&lt;/span&gt; /scratch/&lt;span class="nv"&gt;$USER&lt;/span&gt;:/scratch &lt;span class="se"&gt;\&lt;/span&gt;
    myimage.sif python train.py &lt;span class="nt"&gt;--data&lt;/span&gt; /data/train &lt;span class="nt"&gt;--output&lt;/span&gt; /scratch/checkpoints
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also make binds read-only: &lt;code&gt;--bind /shared/datasets:/data:ro&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bind mount&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-v /host:/container&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--bind /host:/container&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Current dir&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-v $(pwd):/app&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Already there&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Read-only&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-v /host:/container:ro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--bind /host:/container:ro&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Multiple&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-v /a:/a -v /b:/b&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--bind /a:/a,/b:/b&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Working dir&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-w /app&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--pwd /app&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  ⚙️ Environment Variables
&lt;/h2&gt;

&lt;p&gt;This one caught me off guard. In Docker, the container starts with a &lt;strong&gt;clean&lt;/strong&gt; environment. If you need an API key inside, you pass it explicitly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;abc123 myimage python train.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Singularity does the opposite — it &lt;strong&gt;inherits your entire host environment&lt;/strong&gt; by default ✅. Your &lt;code&gt;$PATH&lt;/code&gt;, your custom variables — all available inside the container.&lt;/p&gt;

&lt;p&gt;At first I thought this was great. Then I hit a bug where my container's Python was fighting with my host's Python paths because environment variables were leaking in. That's when I learned about &lt;code&gt;--cleanenv&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clean environment — recommended for reproducible experiments&lt;/span&gt;
singularity &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--cleanenv&lt;/span&gt; myimage.sif python train.py

&lt;span class="c"&gt;# Clean env + only the variables you need&lt;/span&gt;
singularity &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--cleanenv&lt;/span&gt; &lt;span class="nt"&gt;--env&lt;/span&gt; &lt;span class="nv"&gt;API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;abc123 myimage.sif python train.py

&lt;span class="c"&gt;# Or use an env file&lt;/span&gt;
singularity &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--cleanenv&lt;/span&gt; &lt;span class="nt"&gt;--env-file&lt;/span&gt; .env myimage.sif python train.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My advice: &lt;strong&gt;always use &lt;code&gt;--cleanenv&lt;/code&gt; for training runs&lt;/strong&gt;. The inherited environment is handy for quick interactive work, but for anything reproducible, you want a clean slate.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Set variable&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-e VAR=value&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--env VAR=value&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Inherit host env&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Env file&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--env-file .env&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--env-file .env&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Clean env&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Default&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--cleanenv&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🌐 Networking
&lt;/h2&gt;

&lt;p&gt;In Docker, every container gets its own isolated network. Want to run a notebook server? You need port mapping:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-p&lt;/span&gt; 8888:8888 mynotebook-image
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Singularity, there is &lt;strong&gt;no network isolation&lt;/strong&gt;. The container uses the host network directly. Start a service on port 8888 inside the container, and it is on port 8888 on your machine. No mapping needed ✅:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity &lt;span class="nb"&gt;exec &lt;/span&gt;myimage.sif python &lt;span class="nt"&gt;-m&lt;/span&gt; notebook &lt;span class="nt"&gt;--port&lt;/span&gt; 8888
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running notebook servers, dashboards, monitoring tools — no more figuring out port mappings. Just start the service and go to &lt;code&gt;localhost:port&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The downside? Two users on the same node starting something on port 8888 will conflict. But our cluster setup handles that by assigning different ports.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Default&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Isolated bridge&lt;/td&gt;
&lt;td&gt;Host network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Port mapping&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-p 8888:8888&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Not needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Custom network&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker network create&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Not available&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🔄 Running Services (Instances)
&lt;/h2&gt;

&lt;p&gt;Sometimes you need something running in the background — a notebook server, a database, a monitoring dashboard. In Docker, you use &lt;code&gt;-d&lt;/code&gt; to detach. Singularity has &lt;strong&gt;instances&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Start&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker run -d --name nb myimage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity instance start myimage.sif nb&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;List&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker ps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity instance list&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Stop&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker stop nb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity instance stop nb&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Exec&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker exec nb ls&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity exec instance://nb ls&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Logs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker logs nb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Check instance-specific logs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One important difference: in Docker, the daemon keeps your containers alive even if you log out. In Singularity, instances are tied to your session. If you disconnect from the cluster, they stop. For long-running services, you need a job scheduler — which is usually how HPC clusters work anyway.&lt;/p&gt;




&lt;h2&gt;
  
  
  📄 Definition Files
&lt;/h2&gt;

&lt;p&gt;Every Docker user knows the Dockerfile. Singularity has its own version called a &lt;strong&gt;definition file&lt;/strong&gt; (&lt;code&gt;.def&lt;/code&gt;). Different structure, same idea — a recipe for building your image.&lt;/p&gt;

&lt;p&gt;A Dockerfile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="s"&gt; python:3.11-slim&lt;/span&gt;
&lt;span class="k"&gt;RUN &lt;/span&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;numpy pandas scikit-learn matplotlib
&lt;span class="k"&gt;COPY&lt;/span&gt;&lt;span class="s"&gt; analysis.py /app/&lt;/span&gt;
&lt;span class="k"&gt;WORKDIR&lt;/span&gt;&lt;span class="s"&gt; /app&lt;/span&gt;
&lt;span class="k"&gt;CMD&lt;/span&gt;&lt;span class="s"&gt; ["python", "analysis.py"]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same thing as a Singularity definition file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Bootstrap: docker
From: python:3.11-slim

%post
    pip install numpy pandas scikit-learn matplotlib

%files
    analysis.py /app/

%environment
    export LC_ALL=C

%runscript
    cd /app
    exec python analysis.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dockerfile&lt;/th&gt;
&lt;th&gt;Singularity&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FROM&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Bootstrap: docker&lt;/code&gt; + &lt;code&gt;From:&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Base image&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;RUN&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%post&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Build commands&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;COPY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%files&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Copy files in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ENV&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%environment&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Environment vars&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;CMD&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%runscript&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Default command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ENTRYPOINT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%startscript&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Instance command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LABEL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%labels&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Metadata&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;WORKDIR&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Set in &lt;code&gt;%runscript&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Working dir&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most of the time, &lt;strong&gt;you don't need a &lt;code&gt;.def&lt;/code&gt; file at all&lt;/strong&gt;. If you already have a Docker image, convert it directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity build myenv.sif docker://myregistry/gpu-image:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I only started writing &lt;code&gt;.def&lt;/code&gt; files when I needed a custom environment that didn't exist on Docker Hub. For everything else, &lt;code&gt;docker://&lt;/code&gt; was enough.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧪 Sandbox Mode
&lt;/h3&gt;

&lt;p&gt;When I need to experiment with new packages before committing to a build, I create a writable sandbox — a draft environment I can mess around in, then freeze into a clean image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity build &lt;span class="nt"&gt;--sandbox&lt;/span&gt; myenv/ myenv.def   &lt;span class="c"&gt;# create writable folder&lt;/span&gt;
singularity shell &lt;span class="nt"&gt;--writable&lt;/span&gt; myenv/             &lt;span class="c"&gt;# shell in and install stuff&lt;/span&gt;
&lt;span class="c"&gt;# pip install some-new-package&lt;/span&gt;
&lt;span class="c"&gt;# python -c "import some_new_package"           # test it&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;singularity build myenv.sif myenv/         &lt;span class="c"&gt;# freeze when happy&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Docker, you would do &lt;code&gt;docker run -it myimage bash&lt;/code&gt; then &lt;code&gt;docker commit&lt;/code&gt;, but the sandbox approach feels more intentional.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎮 GPU Access
&lt;/h2&gt;

&lt;p&gt;This is where Singularity really shines.&lt;/p&gt;

&lt;p&gt;In Docker, you need &lt;code&gt;--gpus all&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;--gpus&lt;/span&gt; all gpu-image:latest python train.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Singularity, you add &lt;code&gt;--nv&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--nv&lt;/span&gt; gpu-image.sif python train.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. No nvidia-docker, no container runtime config, no Docker daemon GPU passthrough setup. Just &lt;code&gt;--nv&lt;/code&gt; and your NVIDIA drivers are available. For AMD GPUs, it's &lt;code&gt;--rocm&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Combined with a job scheduler, a typical training job looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--nv&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--bind&lt;/span&gt; /shared/datasets:/data &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--bind&lt;/span&gt; /scratch/&lt;span class="nv"&gt;$USER&lt;/span&gt;:/scratch &lt;span class="se"&gt;\&lt;/span&gt;
    gpu-image.sif &lt;span class="se"&gt;\&lt;/span&gt;
    python train.py &lt;span class="se"&gt;\&lt;/span&gt;
        &lt;span class="nt"&gt;--data&lt;/span&gt; /data/train &lt;span class="se"&gt;\&lt;/span&gt;
        &lt;span class="nt"&gt;--output&lt;/span&gt; /scratch/checkpoints &lt;span class="se"&gt;\&lt;/span&gt;
        &lt;span class="nt"&gt;--epochs&lt;/span&gt; 100 &lt;span class="se"&gt;\&lt;/span&gt;
        &lt;span class="nt"&gt;--batch-size&lt;/span&gt; 512 &lt;span class="se"&gt;\&lt;/span&gt;
        &lt;span class="nt"&gt;--gpus&lt;/span&gt; 4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Submit the job and check the results later.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;GPU&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;NVIDIA&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--gpus all&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--nv&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Specific GPU&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--gpus '"device=0"'&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CUDA_VISIBLE_DEVICES=0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AMD&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--device /dev/kfd --device /dev/dri&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--rocm&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  📤 Registry &amp;amp; Sharing
&lt;/h2&gt;

&lt;p&gt;In Docker, sharing an image means pushing to a registry. Both sides need accounts and permissions.&lt;/p&gt;

&lt;p&gt;In Singularity, you &lt;strong&gt;can&lt;/strong&gt; push to the Singularity Library:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;singularity remote login
singularity push myimage.sif library://myname/default/myimage:v1.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But what I actually do: just copy the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp &lt;/span&gt;myimage.sif /shared/containers/team-env.sif
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anyone on the cluster can run &lt;code&gt;singularity exec /shared/containers/team-env.sif python train.py&lt;/code&gt; and get the &lt;strong&gt;exact same environment&lt;/strong&gt;. Same packages, same versions, same GPU libraries. No registry, no login. Just a file on a shared filesystem.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Docker 🐳&lt;/th&gt;
&lt;th&gt;Singularity 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Login&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker login&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity remote login&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Push&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker push user/image:tag&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;singularity push image.sif library://user/image:tag&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Share&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Push to registry&lt;/td&gt;
&lt;td&gt;Copy the &lt;code&gt;.sif&lt;/code&gt; file&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🎼 Multi-Container Orchestration
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Singularity has no built-in &lt;code&gt;docker-compose&lt;/code&gt; alternative&lt;/strong&gt; ⚠️. If you come from a world of &lt;code&gt;docker-compose up&lt;/code&gt; with web servers, databases, and caches all wired together, this will feel like a step back.&lt;/p&gt;

&lt;p&gt;But &lt;strong&gt;on HPC, you usually don't need it&lt;/strong&gt;. Most workloads are single-container jobs. Your training script runs inside one environment, reads data from shared storage, and writes checkpoints to scratch space.&lt;/p&gt;

&lt;p&gt;When you &lt;strong&gt;do&lt;/strong&gt; need multiple services, you have a few options:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📜 Option 1: A simple shell script.&lt;/strong&gt; Start each service as a Singularity instance, connect them through localhost (since they share the host network):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
singularity instance start postgres.sif db
&lt;span class="nb"&gt;sleep &lt;/span&gt;5
singularity instance start &lt;span class="nt"&gt;--env&lt;/span&gt; &lt;span class="nv"&gt;DATABASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;postgresql://localhost/mydb tracker.sif tracker
singularity instance list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🔧 Option 2: &lt;a href="https://github.com/singularityhub/singularity-compose" rel="noopener noreferrer"&gt;singularity-compose&lt;/a&gt;&lt;/strong&gt; — a community tool that reads YAML files similar to &lt;code&gt;docker-compose.yml&lt;/code&gt;. It works for simple setups, but it is not actively maintained.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Docker Compose&lt;/th&gt;
&lt;th&gt;Singularity Compose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Network isolation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅ Full&lt;/td&gt;
&lt;td&gt;❌ Host only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Service discovery&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅ DNS&lt;/td&gt;
&lt;td&gt;⚠️ Limited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Health checks&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅ Built-in&lt;/td&gt;
&lt;td&gt;❌ Manual&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;depends_on&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅ Full&lt;/td&gt;
&lt;td&gt;⚠️ Limited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Secrets&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅ Built-in&lt;/td&gt;
&lt;td&gt;❌ Env vars&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Production ready&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅ Yes&lt;/td&gt;
&lt;td&gt;⚠️ Not actively maintained&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🔍 Troubleshooting
&lt;/h2&gt;

&lt;p&gt;Here are the problems I hit and how I solved them:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🐍 Host Python leaking in&lt;/strong&gt; — my &lt;code&gt;$PYTHONPATH&lt;/code&gt; and other environment variables were being inherited by the container, causing import errors. Fix: always use &lt;code&gt;--cleanenv&lt;/code&gt; for training runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✏️ "Read-only file system" errors&lt;/strong&gt; — Singularity images are read-only by default. If your script tries to write to &lt;code&gt;/opt&lt;/code&gt; or &lt;code&gt;/usr&lt;/code&gt;, it will fail. Fix: write to &lt;code&gt;$HOME&lt;/code&gt;, use &lt;code&gt;--bind&lt;/code&gt;, or use sandbox mode.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔌 Port conflicts&lt;/strong&gt; — two users starting a service on the same port will conflict since Singularity shares the host network. Fix: always pick a random port, or let your job scheduler assign one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;💾 Disk space&lt;/strong&gt; — &lt;code&gt;.sif&lt;/code&gt; files can be large (multi-GB for GPU images) and there is no layer sharing. Fix: keep shared images in &lt;code&gt;/shared/containers/&lt;/code&gt; instead of each person having their own copy.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;th&gt;Docker fix 🐳&lt;/th&gt;
&lt;th&gt;Singularity fix 🔬&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Permission denied&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;--user $(id -u):$(id -g)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shouldn't happen (same user)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Can't write to a path&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Mount a volume&lt;/td&gt;
&lt;td&gt;Use &lt;code&gt;$HOME&lt;/code&gt;, &lt;code&gt;--bind&lt;/code&gt;, or sandbox&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Port in use&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Change port mapping&lt;/td&gt;
&lt;td&gt;Pick a different port&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Out of space&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker system prune&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;rm *.sif&lt;/code&gt; or use shared images&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Wrong Python version&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Check base image&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;--cleanenv&lt;/code&gt; to stop host env leaking in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Package not found&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Install in Dockerfile&lt;/td&gt;
&lt;td&gt;Install in &lt;code&gt;%post&lt;/code&gt; or use sandbox&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  💡 What I Learned
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Where Singularity wins
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;No daemon — just run it&lt;/li&gt;
&lt;li&gt;Single-file images — &lt;code&gt;cp&lt;/code&gt; for instant reproducibility&lt;/li&gt;
&lt;li&gt;Same user inside and outside — no permission headaches&lt;/li&gt;
&lt;li&gt;Simple GPU access — just &lt;code&gt;--nv&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Works on shared HPC clusters without special privileges&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Watch out for
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Building images needs root (&lt;code&gt;--fakeroot&lt;/code&gt; or &lt;code&gt;--remote&lt;/code&gt; as workaround)&lt;/li&gt;
&lt;li&gt;No network isolation&lt;/li&gt;
&lt;li&gt;No built-in compose/orchestration&lt;/li&gt;
&lt;li&gt;No layer caching — full rebuild every time&lt;/li&gt;
&lt;li&gt;Host environment can leak in — &lt;strong&gt;always use &lt;code&gt;--cleanenv&lt;/code&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🎬 The End
&lt;/h2&gt;

&lt;p&gt;That &lt;code&gt;command not found&lt;/code&gt; on my first day scared me. I thought none of my Docker experience would transfer.&lt;/p&gt;

&lt;p&gt;But it did 😊. Every Docker image still works — just add &lt;code&gt;docker://&lt;/code&gt; in front. Every concept — images, containers, mounts, environment variables — still applies. Same mental model, different tool.&lt;/p&gt;

&lt;p&gt;Singularity taught me something unexpected: &lt;strong&gt;isolation is not always the goal&lt;/strong&gt;. Docker keeps containers separate from the host. But on a shared cluster, you actually &lt;strong&gt;want&lt;/strong&gt; the container to feel like part of the system. You want your files there. You want the GPU drivers to just work. You want to submit a job and not worry about daemon sockets and port mappings.&lt;/p&gt;

&lt;p&gt;My workflow now: Docker on my MacBook for local testing. Singularity on the cluster for real training. Same images, same Dockerfiles, different last mile.&lt;/p&gt;

&lt;p&gt;They are not competitors. They answer different questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🐳 &lt;strong&gt;Docker:&lt;/strong&gt; "How do I isolate this app?"&lt;/li&gt;
&lt;li&gt;🔬 &lt;strong&gt;Singularity:&lt;/strong&gt; "How do I bring this app into the researcher's environment?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sometimes the second question is the right one.&lt;/p&gt;




&lt;p&gt;If you found this useful, follow me here on &lt;a href="https://dev.to/dalirnet"&gt;dev.to&lt;/a&gt; and check out my &lt;a href="https://github.com/dalirnet" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>singularity</category>
      <category>datascience</category>
      <category>containers</category>
    </item>
  </channel>
</rss>
