Skip to content

The desktop app

The desktop app is the web app in a window of its own, with native access to your files. It opens a project by its path, so Safari and Firefox users, whose browsers cannot write to a folder, can edit in place. It remembers your recent checkouts and checks the project again as soon as a file changes on disk. It adds two things a browser cannot do: it compares git refs, and its token editor’s colour picker writes OKLCH and warns, per platform, where a colour is out of gamut (the web app has the picker too). It runs the same core as the CLI, compiled to WebAssembly in the window, so what it lints, diffs and writes is what airframe lints, diffs and writes. Nothing leaves your machine: there is no account, no server, no telemetry and no auto-update.

It runs on macOS (Apple silicon), Windows (x64) and Linux (x64), and ships with each release since v0.13.0.

Each release carries the bundles and one checksum file:

OS File
macOS (Apple silicon) Airframe_<version>_aarch64.dmg
Windows (x64) Airframe_<version>_x64-setup.exe
Linux (x64) Airframe_<version>_amd64.AppImage
all airframe-desktop.sha256

There is no Intel Mac build: GitHub no longer offers Intel macOS runners to build one on. Check a download before you open it (run it in the folder that holds the files; shasum -a 256 -c on macOS):

Terminal window
sha256sum -c --ignore-missing airframe-desktop.sha256

The bundles are unsigned. Signing and notarization need certificates that the maintainer holds, and are not part of the release pipeline. Each OS warns about an unsigned app; the checksum above is how you know the file is the one the release built.

  • macOS. Open the .dmg and drag Airframe to Applications, then open it. Since macOS 15 (Sequoia) the right-click Open route is gone. The first time, macOS shows “Airframe” Not Opened (“Apple could not verify “Airframe” is free of malware…”); choose Done. Then open System Settings → Privacy & Security, scroll to Security, where it says “Airframe” was blocked to protect your Mac, and choose Open Anyway. Confirm with your password or Touch ID, then choose Open Anyway once more in the dialog that follows. macOS remembers this; later launches open straight away.

    If macOS says the app is damaged and can’t be opened, or you prefer the terminal, clear the quarantine flag once instead:

    Terminal window
    xattr -dr com.apple.quarantine /Applications/Airframe.app
  • Windows. Run the installer. SmartScreen says “Windows protected your PC”: choose More info, then Run anyway.

  • Linux. Make the file executable and run it:

    Terminal window
    chmod +x Airframe_<version>_amd64.AppImage
    ./Airframe_<version>_amd64.AppImage

    The AppImage carries its own WebKitGTK 4.1 libraries, so it needs none installed.

To update, install the next release over the old one. The app does not check for updates.

Choose Open a folder… and pick the project’s folder, the one that holds airframe.yaml, in your system’s own folder dialog. The app opens it by its path, read and write. The dialog is the only way in: the app can read and write only inside a folder you chose there, or one from Recent that you chose before. Recent lists the last ten projects you opened, with their paths, newest first; Open reopens one in a click. They are kept in the app’s own settings folder, never in a project.

Explore the example opens the bundled example in memory, as in the web app.

The app reads what the web app reads (What the app reads): what the core says the project reaches, and never .git or node_modules.

Editing works as it does in the web app: the same views and the same forms, with a preview of every file an edit writes, and the outputs it regenerates. Saves land in the folder straight away, each file written atomically (a temporary file, then a rename).

The app watches the project while it is open. When another program (an editor, an agent, git checkout) changes a file the project reaches, the app reads it again and lints again, within about a second; a new token file is picked up the same way. Changes elsewhere in the folder, and the app’s own saves, are not news. Coming back to the window checks again. A save never writes over a file that changed on disk since the app read it: the project reloads instead, and says so (“Reloaded: changed on disk”).

The Diff view gains Compare git refs: choose a Base and a Head, each one of the repository’s branches or tags, or the working tree (the project as the app has it, saved changes included), and choose Compare. The app reads each ref’s files straight from git, the ones the core says the project reaches at that ref, without checking anything out, and the core diffs them as airframe diff <base> <head> does: tokens added, removed, possibly renamed and changed, each changed value with its swatches. A comparison with the working tree follows your edits. A ref from before the project had airframe.yaml is an empty set of tokens, as in the CLI.

Comparing with a second folder, or importing a diff JSON, works as in the web app.

A colour token’s value fields have Pick a colour: OKLCH lightness, chroma, hue and alpha, or your system’s colour picker (sRGB). For each platform format that writes a colour (CSS, Apple colorsets, Kotlin, XAML) the picker shows the gamut option that maps it, the value exactly as airframe build writes it, and, where the colour lies outside the space that format writes, a warning with the colour difference (ΔE) between your colour and what is written. Use this colour writes it into the field as an OKLCH $value. See The colour picker.

  • It reaches files only inside the project you opened. A path that tries to leave it, by .., an absolute path or a symbolic link that points out, is refused; so is anything inside .git.
  • It writes only when you save, and never deletes a file.
  • It runs git only to compare refs, and then only git’s read-only commands (for-each-ref, symbolic-ref, rev-parse, ls-tree, cat-file), with no shell, core.fsmonitor off, optional locks off, lazy fetching off, every transport refused (GIT_ALLOW_PROTOCOL=none, so a partial clone’s missing file never makes git fetch it through the repository’s own core.sshCommand, whatever the git version), and the variables that could point git at another repository or config removed. It takes only a branch or tag the repository lists, so a ref such as --output=x, a path inside a tree, or a ref that does not exist never reaches git. It writes nothing to .git. Opening a project runs nothing.
  • It makes no network request. Its page security policy allows none, its window cannot leave the app’s own page (a navigation anywhere else is refused), and it has no auto-update. Links to the web (the docs, the source, each finding’s rule page) show as their address in plain text, for you to open in your browser; the app opens nothing itself.
Terminal window
make desktop-test # its tests
make desktop-bundle BUNDLES=dmg VERSION=0.0.0 # a bundle for this OS, unsigned

BUNDLES is dmg on macOS, nsis on Windows or appimage on Linux. It needs Go, Node (see web/.nvmrc), corepack’s pnpm and Rust 1.90 or newer; on Linux, the WebKitGTK 4.1 development packages. A release builds each OS’s bundle on a runner of its own: see Releasing.