Skip to main content

Herdr App

@svendowideit/herdr-appv2026.11.24.2· MIT· 4d agoBEHAVIORSWORKFLOWSACCEPTED WARNINGS
01README

Install, update and remove the Herdr desktop app — and herdr-core with it — on Linux, macOS and Windows, from swamp, whichever machine swamp is running on. WHAT IT DOES

Herdr (https://herdr.dev) is a desktop app for terminals and coding agents that keep running. This extension does the vendor's one-line install as methods a workflow can plan, pin, verify and report: it resolves the release, picks this host's archive, checks its SHA-256 before extracting anything, and places the app the vendor's way for that platform. It installs herdr-core only when the machine has none — the app keeps it current afterwards — or updates it on request, and it installs the Borland Modern Blue theme, selecting it when you have not chosen one. Re-running is safe: a host already current downloads nothing. Prefer it to curl | sh when you want a pinned, verified install, a report of what changed, or the same install on a server, a worker, or a fleet over SSH.

INSTALL

swamp extension pull @svendowideit/herdr-app

DEPENDENCIES

None to install the app. It uses Deno's fetch, the bundled deno binary and the host's own tools (tar, and PowerShell on Windows), and talks only to the release host you configure.

@jpisgeek/herdr-swamp-layout is declared in this manifest's dependencies:, so the single pull above installs it too. It is what puts the swamp layout — approvals, runs and quick-run panels for this CLI — inside Herdr, and the install workflow calls its install method after the app is in place (skipped when the layout is already there, and by default only: --input swampLayout=false leaves layouts alone). Without it the app still installs and upgrades; only that step is unavailable.

It is not installed by @svendowideit/herdr-app-worker: that extension publishes its mods, fonts and layout preview as binaries:, which swamp keeps in a pulled extension but not in the bundle a worker runs, so its installer cannot read them there and would leave a half-written layout.

@swamp/ssh is an optional dependency, declared in this manifest's optionalDependencies:. It is not installed for you: pull it to use @svendowideit/herdr-app-ssh, which pipes the pinned installer to hosts that have no swamp. Without it, the local, serve and worker workflows still work.

The swamp bar mods travel as binaries: (the .js and .svg files; their mod.json is an additional file), because swamp keeps binaries in a pulled extension but not in the bundle a swamp worker runs. installExtras therefore runs on a host that has this extension pulled — the local machine or a --server host — and says so rather than writing a partial mod. The worker workflow does not run it.

RUN

# Install or upgrade on this machine. Idempotent, so it is also the
# command to run after every release.
swamp workflow run @svendowideit/herdr-app-upgrade

# Install a pinned version, or move the app somewhere else. Pin when a
# fleet must run the same build; appDir/binDir when the defaults do not
# fit.
swamp workflow run @svendowideit/herdr-app-install \
  --input version=0.1.14 --input binDir=$HOME/bin

# Ask what an install would do first. Writes the resolved release and the
# plan; touches nothing else.
swamp model @svendowideit/herdr-app method run plan herdr-app

# Install on the machine running `swamp serve`, instead of this one.
swamp workflow run @svendowideit/herdr-app-install \
  --server wss://swamp.x1yoga.fi.gy

# Install on one enrolled swamp worker. The step is placed there, so the
# platform detected and the app installed are that worker's.
swamp workflow run @svendowideit/herdr-app-worker \
  --server wss://swamp.x1yoga.fi.gy --input target=figy-miix

# Install on Linux and macOS hosts that have no swamp at all, over SSH.
# Every host installs the same pinned, checksum-verified release.
swamp workflow run @svendowideit/herdr-app-ssh \
  --input sshHosts=mac-mini=192.0.2.20,studio=studio.lan

# Install or refresh just the bundled theme. It lands in Herdr's own home
# and is selected only when no theme is chosen yet.
swamp model @svendowideit/herdr-app method run installTheme herdr-app

# Put the swamp bar inside Herdr: an "add idea" input that captures onto
# the obsidian-factory board, and a browser button that opens browsh in a
# new tab. Writes both mods and the config they read, and adds one tab +
# menu entry and two keys where they are free. Re-run the swamp-ide enable
# workflow afterwards so the layout carries the blocks.
swamp model @svendowideit/herdr-app method run installExtras herdr-app \
  --input swampRepo=/home/me/src/swamp-project \
  --input boardModel=obsidian-board

# Install the app somewhere else, and leave themes entirely alone.
swamp workflow run @svendowideit/herdr-app-install \
  --input appDir=/opt/herdr --input theme=""

# Upgrade without touching layouts — the app, core and theme only.
swamp workflow run @svendowideit/herdr-app-upgrade --input swampLayout=false

# Read back what is installed now — the versions the binaries report,
# whether the theme is on show, and which layouts Herdr offers.
swamp model @svendowideit/herdr-app method run status herdr-app

# Remove the app, keeping the shared herdr-core. Add removeCore=true to
# remove the core too.
swamp workflow run @svendowideit/herdr-app-install --input uninstall=true

CONFIGURE

Every setting is a method argument (the model has no global arguments), so --input works both on a workflow and on a direct method run:

version        app version to install; empty = newest  (default "")
coreVersion    herdr-core version; empty = newest      (default "")
core           auto | always | never                   (default auto)
force          reinstall even when current             (default false)
appDir         override the app location               (platform default)
binDir         override the command directory           (default ~/.local/bin)
releasesUrl    release host                             (default https://releases.herdr.dev)
downloadDir    where verified archives are staged       (default cache dir)
theme          theme to install from the bundle         (default borland-modern-blue)
selectTheme    select it when none is chosen yet        (default true)
herdrHome      override Herdr's own home                ($HERDR_APP_HOME, XDG, ~/.config/herdr-app)
swampLayout    also install the Herdr swamp layout      (default true)
layoutName     model instance for the layout installer  (default herdr-swamp-layout)
removeCore     uninstall also removes the core          (default false)
removeTheme    uninstall also removes the theme file    (default false)
uninstall      remove instead of install                (default false)

installExtras takes its own settings, all optional except swampRepo:

ideaBox        install the obsidian-idea input mod       (default true)
browserButton  install the browser-launch button mod     (default true)
programsEntry  add the browsh entry to programs.json     (default true)
keys           merge ctrl-shift-i and ctrl-alt-b          (default true)
swampRepo      the swamp repository holding the board   (required with ideaBox)
boardModel     behavior instance whose capture it calls   (default obsidian-board)
swampBinary    the swamp binary the box runs             (default: swamp on PATH)
browserArgv    argv the button opens                     (default docker run --rm -it browsh/browsh)
herdrBin       binary used to check each mod             (default herdr-app)
force          replace differing files, entries and keys (default false)

Platform defaults: Linux $XDG_DATA_HOME/herdr-app with ~/.local/bin and a launcher entry; macOS ~/Applications/Herdr.app; Windows %LOCALAPPDATA%\Programs\herdr-app with a Start menu shortcut and the user PATH. core=auto installs a core only when none is present, always also updates it, never leaves it alone. Setting appDir moves the app without touching the machine's launcher entry.

@svendowideit/herdr-app-ssh takes sshHosts (comma-separated name=address entries, or bare addresses), sshUser, sshPort, sshIdentityFile, sshHostKeyChecking and verifyCoreSignature, plus the install settings above. One transport applies to every host.

@svendowideit/herdr-app-worker takes target (a worker token name or instance uuid — swamp worker list shows both) and the install settings. The workflow requires a running swamp serve with an enrolled worker.

UPGRADE

swamp workflow run @svendowideit/herdr-app-upgrade

That is the whole upgrade: it resolves the newest release, installs it only when this machine is not already on it, refreshes herdr-core when there is none, installs the bundled Borland theme and the Herdr swamp layout when they are missing, reads the installed binaries back, and fails unless the app reports the planned version. Nothing else needs migrating, and re-running is safe.

WHAT IT INSTALLS

On the host it runs on: the Herdr app (a data directory and launcher entry on Linux, Herdr.app in ~/Applications on macOS, a Programs directory with a Start menu shortcut and a user PATH entry on Windows), a herdr-app command symlink on Linux/macOS, and — only when the machine has no core, or when asked — herdr-core with its hc alias. On Windows the core also brings its bundled ConPTY. It also writes the Borland Modern Blue theme into Herdr's own home (themes/borland-modern-blue.json) and, when settings.json names no theme yet, selects it there — a theme you have chosen is never overwritten, and theme="" skips themes entirely. It creates no services, daemons, cron triggers or webhooks. Verified downloads are cached under the user cache directory; uninstall removes the app, its command link and its launcher entry, the core only when removeCore=true, and the theme only when removeTheme=true. The install workflow also hands Herdr's home to @jpisgeek/herdr-swamp-layout, which copies the swamp layout, its theme and five mods into layouts/, themes/ and mods/ — once: that installer refuses to overwrite, so an existing (or edited) layout is left alone.

installExtras writes mods/obsidian-idea/ and mods/browser-launch/ into Herdr's own home, plus the swamp.json (repo, board model, absolute swamp binary) and browser.json (argv) they read. It merges one browsh entry into programs.json — so the tab + menu lists the browser — and the ctrl-shift-i / ctrl-alt-b bindings into keys.json, only where those keys are free, saving a .bak-herdr-app copy of anything it rewrites. An edited mod file or a taken key is reported and left alone unless force=true. It never touches the vault: the idea reaches the board only through @svendowideit/obsidian-factory's own capture method.

02Behaviors1
@svendowideit/herdr-appv2026.11.24.2herdr_app.ts
fn plan()
Resolve the app (and core) release for this host, probe what is
fn install()
Download, verify and install the app (and herdr-core per `core`) on
fn status()
Report what is installed on this host right now: the app version
fn uninstall()
Remove the app, its command link, and its Linux launcher entry or
fn installTheme()
Install the bundled Herdr theme (Borland Modern Blue by default) into
fn installExtras()
Install the swamp bar inside Herdr: the `obsidian-idea` input (which
fn renderScript()
Resolve the release and render the pinned POSIX installer for every
fn sshFleet()
Build the @swamp/ssh fleet (hosts plus transport) for the ssh

Resources

release(infinite)— The release resolved for this host: app and core versions, the
plan(infinite)— What installing the resolved release would do, decided from what is
install(infinite)— What an install run did: action, previous and new version, paths, and
status(infinite)— What is installed on this host right now, read from the binaries
transport(infinite)— An @swamp/ssh fleet (hosts + transport) built from the workflow
theme(infinite)— The result of `installTheme`: where the bundled theme was written,
extras(infinite)— The result of `installExtras`: the swamp bar mods written, the config
script(infinite)— The pinned POSIX installer sent to hosts that have no swamp, with
03Workflows4
@svendowideit/herdr-app-install50943deb-e7fd-4b53-a1fe-6d3a7ec97318

Install, update — or remove — the Herdr desktop app and herdr-core on the machine this workflow runs on, verifying every download against the release manifest's SHA-256. This is the local transport: the steps run where swamp runs. Point the same workflow at a `swamp serve` server and it installs on that server instead: swamp workflow run @svendowideit/herdr-app-install \ --server wss://swamp.example.com For a swamp worker, run @svendowideit/herdr-app-worker; for hosts with no swamp

mainPlan, install (or remove), then verify what is actually on the host.
1.plan— Resolve the app and core release for this host and record what an install would do. No files are written; only the two manifests are fetched. Skipped on an uninstall run, which needs no release.
2.install— Download, verify and place the app, then herdr-core per `core`. Every archive is checked against the SHA-256 recorded in the release manifest before anything is extracted. Idempotent: a host already on the target version downloads nothing and reports unchanged. Skipped on an uninstall run.
3.uninstall— Remove the app, its command link and its launcher entry or Start menu shortcut. The shared herdr-core is kept unless removeCore is set. Idempotent. Only runs when uninstall is true.
4.status— Read back what is installed now by running the installed binaries, so the run records the real state rather than what it intended. Runs after both the install and uninstall paths.
5.swamp_layout— Install the Herdr swamp layout — the approvals, runs and quick-run panels for this CLI — into Herdr's home. It is skipped when the layout is already there, because the layout's own installer refuses to overwrite anything; that also means a layout you have edited is never touched. Skipped on an uninstall run and when swampLayout is false.
6.extras— Install the swamp bar inside Herdr: the add-idea input (which captures through @svendowideit/obsidian-factory's capture method) and the browser button (browsh in a new tab), plus the swamp.json and browser.json they read, one tab + menu entry and two keys. Opt-in: both mods default to false so an upgrade changes nothing, and ideaBox needs swampRepo. Re-run the swamp-ide enable workflow afterwards so the layout carries the blocks.
7.verify-layout— Fail when the swamp layout was asked for and is neither installed nor already present, so a layout that never landed is not reported as success.
8.verify-install— Fail when the app on the machine does not report the version that was planned, so a placement or signature problem is never reported as success.
9.verify-core— Fail when herdr-core was asked for and is still absent. The app is still installed, but a run that could not provide the core is not reported as a success.
10.verify-theme— Fail when a theme was asked for and is not in Herdr's themes directory, so an install that could not place it is never reported as success.
11.verify-uninstall— Fail when an uninstall run left the app present, so "removed" is only reported after it is verified.
@svendowideit/herdr-app-upgrade0aef16d1-3980-4fae-904a-dd817989e8a7

The one command that brings this machine's Herdr app and herdr-core up to date — and the same command that installs them the first time. swamp workflow run @svendowideit/herdr-app-upgrade It resolves the newest release, installs it only when this machine is not already on it, refreshes a herdr-core only when there is none, installs the bundled Borland theme and the Herdr swamp layout when they are not there yet, and then reads the result back and fails unless the installed app reports the

upgradeInstall or upgrade in place, then verify the installed version.
1.upgrade— Run the install workflow: plan, install only what differs, then read the binaries back and fail unless the app reports the planned version. This is the whole upgrade — there is no separate migration step, because the app and core are replaced in place.
@svendowideit/herdr-app-worker10708c45-0a3e-4abd-8be1-9c5d263ab669

Install or update Herdr on a swamp worker — the machine a `swamp serve` orchestrator dispatches work to — instead of on the orchestrator itself. swamp workflow run @svendowideit/herdr-app-worker \ --server wss://swamp.example.com --input target=mac-mini Every step declares `target`, so the whole install is placed on the named worker: the platform detected, the download unpacked and the app placed are all that worker's. The release and the results are written back to the orchestrator,

install-on-workerPlan, install and verify on one placed worker.
1.plan— Resolve the release for the worker's own platform and compare it with what that worker has installed. Runs on the worker, so the platform, paths and installed versions are the worker's, not the orchestrator's.
2.install— Download, verify and place the app and (per `core`) herdr-core on the worker. The archive is checksum-verified before anything is extracted; a worker already on the target version downloads nothing.
3.status— Read the worker's installed binaries back on the worker itself, so the recorded state is the worker's reality and not the orchestrator's.
4.verify-install— Fail unless the worker reports the planned version, so an install that did not take is never reported as success.
5.verify-theme— Fail when a theme was asked for and the worker does not have it in Herdr's themes directory.
6.verify-core— Fail when herdr-core was asked for and the worker still has none.
@svendowideit/herdr-app-ssh97f39f3c-9c2f-4afa-b71a-1861be5ccd5a

Install or update Herdr on Linux and macOS hosts that have no swamp, over SSH, from one orchestrator. swamp workflow run @svendowideit/herdr-app-ssh \ --input sshHosts=mac-mini=192.168.1.20,studio=studio.lan The release is resolved once, here, and pinned into a POSIX install script by version, URL and SHA-256 for every Linux and macOS target — so a mixed fleet gets the right build per host, every host verifies the same bytes, and no host is asked to parse a manifest. SSH is delegated

install-over-sshResolve once, pin the release, then run the installer on every host.
1.assert-hosts— Fail clearly when no host was named, before anything is resolved.
2.render— Pin the release into the POSIX installer every host runs: one branch per Linux/macOS target, each with its version, URL and SHA-256, so a mixed fleet gets the right build per host from one resolution. The script is inert until it is piped to a host.
3.fleet— Turn sshHosts into an @swamp/ssh fleet: one host per entry, all sharing this run's user, port, identity and host-key policy.
4.install— Pipe the pinned installer to sh on every host. The script checksums each download, refuses a host of the wrong platform, installs or updates the app and core, and its output is the host's verification — a host that cannot run the installed app fails the step.
04Previous Versions2
2026.11.09.3MIT

updated dependencies

2026.11.09.2MIT

Modified 1 behaviors

05Stats
A
100 / 100
Downloads
4
Archive size
104.8 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned

07Platforms