<?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: DiPhyx</title>
    <description>The latest articles on DEV Community by DiPhyx (diphyx).</description>
    <link>https://dev.to/diphyx</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%2Forganization%2Fprofile_image%2F12461%2F02c67bbc-f307-4b43-b6b2-ee37ecd0168d.png</url>
      <title>DEV Community: DiPhyx</title>
      <link>https://dev.to/diphyx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/diphyx"/>
    <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>You Just Want Containers — Why Is Installing Docker &amp; Podman Still This Hard?</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Mon, 23 Feb 2026 11:14:47 +0000</pubDate>
      <link>https://dev.to/diphyx/you-just-want-containers-why-is-installing-docker-podman-still-this-hard-25a6</link>
      <guid>https://dev.to/diphyx/you-just-want-containers-why-is-installing-docker-podman-still-this-hard-25a6</guid>
      <description>&lt;p&gt;It's 11 PM. Your deadline is tomorrow. The model is ready, the compose file is written, and all you need is &lt;code&gt;docker compose up&lt;/code&gt;. But you're staring at a fresh Ubuntu VM and Docker isn't installed.&lt;/p&gt;

&lt;p&gt;No problem, right? Just install it.&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;sudo &lt;/span&gt;apt-get &lt;span class="nb"&gt;install &lt;/span&gt;docker.io
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Except the version in the repo is two years old. The docs say to add Docker's official repository. So you start adding GPG keys, configuring apt sources, updating package lists... fifteen minutes later, Docker is running. You pull your image, start the stack, and finally get to work.&lt;/p&gt;

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

&lt;p&gt;What if you could just type &lt;strong&gt;dock&lt;/strong&gt;er + &lt;strong&gt;pod&lt;/strong&gt;man and have it work — anywhere?&lt;/p&gt;




&lt;h2&gt;
  
  
  When the easy version doesn't exist
&lt;/h2&gt;

&lt;p&gt;🔬 &lt;strong&gt;The researcher.&lt;/strong&gt; You're on a university HPC cluster with a containerized pipeline — a deep learning training job, a genomics workflow, a physics simulation. You need Docker or Podman. But you don't have &lt;code&gt;sudo&lt;/code&gt;. You can't install packages. The sysadmin takes days to respond to tickets. Your deadline doesn't care.&lt;/p&gt;

&lt;p&gt;🧠 &lt;strong&gt;The ML engineer.&lt;/strong&gt; You're spinning up GPU instances on a cloud provider. The VM comes with a minimal OS — no &lt;code&gt;apt&lt;/code&gt;, no &lt;code&gt;yum&lt;/code&gt;, no package manager at all. Just a kernel and a shell. You need Docker, but the official install script assumes you have a full distro underneath.&lt;/p&gt;

&lt;p&gt;🔒 &lt;strong&gt;The restricted environment.&lt;/strong&gt; You're working in a secure facility. The machines are air-gapped — no internet. You can transfer files in via USB, but every tool you need has to be bundled and self-contained.&lt;/p&gt;

&lt;p&gt;🔀 &lt;strong&gt;The mixed-runtime team.&lt;/strong&gt; Your team standardized on Podman for security reasons, but half your tooling still expects Docker. You need both, and switching between them shouldn't require reconfiguring everything.&lt;/p&gt;

&lt;p&gt;These aren't edge cases. For researchers, data scientists, and engineers working outside the typical cloud-native setup — this is everyday reality.&lt;/p&gt;




&lt;h2&gt;
  
  
  The official path is paved, but narrow
&lt;/h2&gt;

&lt;p&gt;Docker does provide a convenience script:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;It's well-maintained and it works. But it needs &lt;code&gt;sudo&lt;/code&gt;. It needs a package manager. It needs internet access. It only supports &lt;a href="https://docs.docker.com/engine/install/" rel="noopener noreferrer"&gt;specific distributions&lt;/a&gt;. And it only installs Docker — no Podman, no rootless mode out of the box.&lt;/p&gt;

&lt;p&gt;For Podman, the story is worse. There's no &lt;code&gt;get.podman.com&lt;/code&gt;. Your options are distro packages (often outdated, sometimes missing entirely) or building from source. That means cloning seven separate repositories — Podman itself, plus crun, conmon, netavark, aardvark-dns, slirp4netns, and fuse-overlayfs — and compiling Go, Rust, and C code. On a machine where you can't even &lt;code&gt;sudo apt install gcc&lt;/code&gt;, that's a dead end. 🛑&lt;/p&gt;

&lt;p&gt;And Compose? That's another installation step on top of everything else.&lt;/p&gt;

&lt;p&gt;The tools exist. The documentation exists. But the path from "I need containers" to "I have containers" is full of assumptions about your environment that don't always hold.&lt;/p&gt;




&lt;h2&gt;
  
  
  Removing the assumptions
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/dockpod" rel="noopener noreferrer"&gt;dockpod&lt;/a&gt; (&lt;strong&gt;dock&lt;/strong&gt;er + &lt;strong&gt;pod&lt;/strong&gt;man, quick setup) was built around a simple idea: installing a container runtime should work the same way everywhere.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; diphyx.github.io/dockpod/setup.sh | bash
dockpod &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fh71ulum7rp2ols5qrxi4.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.amazonaws.com%2Fuploads%2Farticles%2Fh71ulum7rp2ols5qrxi4.png" alt="dockpod setup" width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's the entire setup. An interactive menu asks which runtime you want — Docker, Podman, or both. Compose is included automatically with either choice. No &lt;code&gt;sudo&lt;/code&gt; required. No package manager. No GPG keys. No repository configuration.&lt;/p&gt;

&lt;p&gt;It works on any Linux system with kernel 4.18+ and systemd — which covers essentially every modern distro and cloud image. ✅&lt;/p&gt;




&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;When you run &lt;code&gt;dockpod install&lt;/code&gt;, it checks your system, detects your architecture, and pulls prebuilt static binaries — the same ones compiled from the official upstream sources. It places them in the right directories, writes configuration files, sets up systemd services, and verifies the installation by actually running a container.&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%2Ft15f2v1ryc0q5xpnucc7.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.amazonaws.com%2Fuploads%2Farticles%2Ft15f2v1ryc0q5xpnucc7.png" alt="dockpod install" width="800" height="610"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🛡️ If you have root, binaries go to &lt;code&gt;/usr/local/bin/&lt;/code&gt; and services run system-wide. If you don't, everything goes into &lt;code&gt;~/.local/bin/&lt;/code&gt; and runs as user-scoped systemd services. Docker uses its rootless mode, Podman works rootless natively. Either way, you end up with a fully working runtime without ever typing &lt;code&gt;sudo&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;🔌 Compose is included out of the box — installed as both a standalone &lt;code&gt;docker-compose&lt;/code&gt; binary and a Docker CLI plugin (&lt;code&gt;docker compose&lt;/code&gt;). When Podman is installed, dockpod creates a &lt;code&gt;podman-compose&lt;/code&gt; symlink automatically, so your existing compose files work with either runtime:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;       &lt;span class="c"&gt;# with Docker&lt;/span&gt;
podman-compose up &lt;span class="nt"&gt;-d&lt;/span&gt;       &lt;span class="c"&gt;# with Podman — same file, no changes&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔀 Need both Docker and Podman? Install both, then switch between them instantly. Your compose files, your scripts, your muscle memory — everything stays the same. Only the engine underneath changes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dockpod switch podman
dockpod switch docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  No internet? No problem
&lt;/h2&gt;

&lt;p&gt;This is the part that matters most for restricted environments.&lt;/p&gt;

&lt;p&gt;dockpod publishes architecture-specific tarballs with every release. Each one is self-contained — Docker, Podman, Compose, and all their dependencies bundled together. Nothing is downloaded during installation.&lt;/p&gt;

&lt;p&gt;Grab the tarball on a connected machine, transfer it however you can — USB, scp, a shared drive — and install on the target without a single network call:&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;tar&lt;/span&gt; &lt;span class="nt"&gt;-xzf&lt;/span&gt; dockpod-v2.0.0-amd64.tar.gz &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;dockpod-v2.0.0-amd64
./dockpod.sh &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--offline&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For labs, secure facilities, and isolated clusters, this is often the only practical way to get containers running without a lengthy approval process.&lt;/p&gt;




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

&lt;p&gt;If you've ever spent more time installing a container runtime than actually using it — that's exactly what dockpod is for.&lt;/p&gt;

&lt;p&gt;If it saves you time, share it with your team, your lab, or that colleague who's still struggling to get containers running.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/dockpod" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://github.com/diphyx/dockpod/blob/main/LICENSE" rel="noopener noreferrer"&gt;MIT licensed&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>docker</category>
      <category>podman</category>
      <category>containers</category>
      <category>linux</category>
    </item>
    <item>
      <title>Eliminate 80% of Nuxt store boilerplate with a single createStore call</title>
      <dc:creator>Amir Reza Dalir</dc:creator>
      <pubDate>Tue, 10 Feb 2026 20:00:29 +0000</pubDate>
      <link>https://dev.to/diphyx/eliminate-80-of-nuxt-store-boilerplate-with-a-single-createstore-call-o42</link>
      <guid>https://dev.to/diphyx/eliminate-80-of-nuxt-store-boilerplate-with-a-single-createstore-call-o42</guid>
      <description>&lt;p&gt;Every Nuxt app has the same problem.&lt;/p&gt;

&lt;p&gt;For every API resource — users, posts, products, orders — the same code gets written:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Define a TypeScript interface&lt;/li&gt;
&lt;li&gt;Create reactive state (&lt;code&gt;ref&lt;/code&gt;, &lt;code&gt;reactive&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Create a loading ref&lt;/li&gt;
&lt;li&gt;Create an error ref&lt;/li&gt;
&lt;li&gt;Write a fetch function with try/catch/finally&lt;/li&gt;
&lt;li&gt;Repeat for create, update, delete&lt;/li&gt;
&lt;li&gt;Repeat for the next resource&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://github.com/diphyx/harlemify" rel="noopener noreferrer"&gt;Harlemify&lt;/a&gt; is an open-source Nuxt module by &lt;a href="https://github.com/diphyx" rel="noopener noreferrer"&gt;Diphyx&lt;/a&gt; that eliminates this repetition. It's built on top of &lt;a href="https://harlemjs.com/" rel="noopener noreferrer"&gt;Harlem&lt;/a&gt;, a powerful and extensible state management library for Vue 3 — so the reactive store layer is solid and battle-tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define your data shape once, get everything else for free
&lt;/h2&gt;

&lt;p&gt;Harlemify generates typed stores from Zod schemas. Here's what a full CRUD store looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createStore&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;shape&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ModelOneMode&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ModelManyMode&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@diphyx/harlemify/runtime&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;userShape&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;shape&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;number&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
            &lt;span class="na"&gt;identifier&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}),&lt;/span&gt;
        &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;string&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
        &lt;span class="na"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;factory&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;email&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;userStore&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createStore&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;users&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;model&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;one&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;many&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="na"&gt;current&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;one&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;userShape&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="na"&gt;list&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;many&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;userShape&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="p"&gt;};&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="nf"&gt;view&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="na"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;current&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="na"&gt;users&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;list&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="p"&gt;};&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="nf"&gt;action&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="na"&gt;list&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/users&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;list&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;ModelManyMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SET&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
            &lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="na"&gt;get&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/users/:id&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;current&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;ModelOneMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SET&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
            &lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="na"&gt;create&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/users&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;list&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;ModelManyMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ADD&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
            &lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="na"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/users/:id&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;list&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;ModelManyMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;REMOVE&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
            &lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="p"&gt;};&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No separate type definitions. No manual loading/error refs. No try/catch boilerplate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What comes out of this single definition
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Typed models&lt;/strong&gt; — &lt;code&gt;current&lt;/code&gt; holds a single user, &lt;code&gt;list&lt;/code&gt; holds a collection. Both are fully typed from the Zod shape.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reactive views&lt;/strong&gt; — &lt;code&gt;user&lt;/code&gt; and &lt;code&gt;users&lt;/code&gt; are computed refs that update whenever the underlying model changes. Powered by Harlem's reactive store engine under the hood.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;API actions with auto-commit&lt;/strong&gt; — Each action knows which model to update and how (SET replaces, ADD appends, REMOVE deletes by identifier).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automatic status tracking&lt;/strong&gt; — Every action exposes &lt;code&gt;loading&lt;/code&gt;, &lt;code&gt;error&lt;/code&gt;, and &lt;code&gt;status&lt;/code&gt; without writing a single ref.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using it in components
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight vue"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;script&lt;/span&gt; &lt;span class="na"&gt;setup&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;loading&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useStoreAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;userStore&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;list&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;users&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useStoreView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;userStore&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;users&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="k"&gt;script&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;template&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;v-if=&lt;/span&gt;&lt;span class="s"&gt;"error"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;span class="si"&gt;{{&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt; &lt;span class="si"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ul&lt;/span&gt; &lt;span class="na"&gt;v-else-if=&lt;/span&gt;&lt;span class="s"&gt;"!loading"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;v-for=&lt;/span&gt;&lt;span class="s"&gt;"user in users"&lt;/span&gt; &lt;span class="na"&gt;:key=&lt;/span&gt;&lt;span class="s"&gt;"user.id"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;span class="si"&gt;{{&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="si"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="k"&gt;template&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three composables cover everything:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;useStoreAction&lt;/code&gt; — execute actions, track loading/error/status&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;useStoreView&lt;/code&gt; — access reactive computed state&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;useStoreModel&lt;/code&gt; — mutate state directly (set, patch, add, remove, reset)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Beyond basic state management
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Concurrency control
&lt;/h3&gt;

&lt;p&gt;Every action can be configured with a concurrency strategy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;BLOCK&lt;/strong&gt; — throw if the action is already running&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SKIP&lt;/strong&gt; — return the existing promise&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CANCEL&lt;/strong&gt; — abort the previous call, start a new one&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALLOW&lt;/strong&gt; — run both in parallel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No more debouncing hacks or manual AbortController wiring.&lt;/p&gt;

&lt;h3&gt;
  
  
  Record collections
&lt;/h3&gt;

&lt;p&gt;For grouped data (e.g., users by team), use record mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;model&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;many&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;byTeam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;many&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;userShape&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;ModelManyKind&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;RECORD&lt;/span&gt; &lt;span class="p"&gt;}),&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives you &lt;code&gt;{ teamA: [...users], teamB: [...users] }&lt;/code&gt; with typed CRUD operations per key.&lt;/p&gt;

&lt;h3&gt;
  
  
  Handler actions
&lt;/h3&gt;

&lt;p&gt;Not every action is an API call. Custom logic gets first-class support:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;action&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;handler&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;sortByName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;model&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sorted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="nx"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;list&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;sort&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;localeCompare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
            &lt;span class="nx"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;list&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}),&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Handlers have full access to models and views, with the same status tracking as API actions.&lt;/p&gt;

&lt;h3&gt;
  
  
  SSR with automatic hydration
&lt;/h3&gt;

&lt;p&gt;Harlemify uses Harlem's SSR plugin (&lt;code&gt;@harlem/plugin-ssr&lt;/code&gt;) under the hood. Server-rendered state is automatically hydrated on the client — no manual transfer or serialization needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it compares
&lt;/h2&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;Manual / Pinia&lt;/th&gt;
&lt;th&gt;Harlemify&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Schema&lt;/td&gt;
&lt;td&gt;Separate TypeScript interfaces&lt;/td&gt;
&lt;td&gt;Zod shape — types + validation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API calls&lt;/td&gt;
&lt;td&gt;Manual fetch + state updates&lt;/td&gt;
&lt;td&gt;Declarative with auto-commit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Loading/error&lt;/td&gt;
&lt;td&gt;Manual refs per action&lt;/td&gt;
&lt;td&gt;Automatic per action&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concurrency&lt;/td&gt;
&lt;td&gt;Not built-in&lt;/td&gt;
&lt;td&gt;Block, Skip, Cancel, Allow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Collections&lt;/td&gt;
&lt;td&gt;Manual array management&lt;/td&gt;
&lt;td&gt;Built-in modes (SET, ADD, PATCH, REMOVE)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSR&lt;/td&gt;
&lt;td&gt;Plugin required&lt;/td&gt;
&lt;td&gt;Built-in via Harlem SSR&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lines per resource&lt;/td&gt;
&lt;td&gt;~50-60&lt;/td&gt;
&lt;td&gt;~15-20&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Harlemify is not a Pinia replacement. Pinia is great for general-purpose client state. Harlemify is built on top of Harlem and optimized for &lt;strong&gt;API-driven data&lt;/strong&gt; — the CRUD resources that make up 80% of most apps.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; @diphyx/harlemify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// nuxt.config.ts&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nf"&gt;defineNuxtConfig&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;modules&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@diphyx/harlemify&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;a href="https://diphyx.github.io/harlemify/" rel="noopener noreferrer"&gt;Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/diphyx/harlemify" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/@diphyx/harlemify" rel="noopener noreferrer"&gt;npm&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback and contributions are welcome — star the repo if it's useful, or open an issue for anything that's missing.&lt;/p&gt;

</description>
      <category>vue</category>
      <category>nuxt</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
