sofcat

module
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0

README

checks go-test Windows integration tests OpenSSF Scorecard Latest release

[!WARNING] SofCat is pre-beta. The config keys, catalog format and service protocol can change between releases without a migration path. Only the Windows agent ships today.

SofCat is a catalog for anything you can put on disk or run: installers, packages, scripts, AI skills. You publish manifests and catalogs on any web server. An agent on each machine keeps the required items in place, and a self-service app, branded as your own, lets people add the optional ones without admin rights.

It started as a fork of Gorilla and keeps the Munki model: a manifest says what a machine gets, catalogs say what exists, and both are plain YAML.

The SofCat self-service app listing available software with Install, Cancel and Remove actions

Where it stands

Today Planned
Agent Windows service, macOS launchd daemon Linux
Item types .msi, .exe, .ps1, .nupkg (runs the package's own scripts, see Nupkg items), zip items (directory trees such as AI skills and plugins) Files and scripts on any platform, native packages
Self-service app Windows, macOS Linux
makecatalogs Linux, macOS, Windows

What already works:

  • Self-service for standard users. Browse, install, remove and cancel, with per-item progress and an Activity log. The app talks to the agent over a local named pipe, so nobody needs to elevate.
  • Your branding. Set the app's title, logo, accent colour and help link with policy registry values or config.yaml. See ui/README.md. To ship it under your own name, icon, service and installer, build a rebrand; see examples/brand/README.md.
  • Inventory for osquery. Every run writes a Munki-compatible inventory.json. See osquery inventory.
  • Installable conditions. An item can require an architecture, Windows build, model or a fact your own scripts provide, as with Munki's installable_condition. See Installable conditions.
  • Zip items. Package directory trees, such as AI skills, as deterministic zips with makecatalogs. On Windows a per-user helper (<slug>-ui.exe --user-sync, started at logon) places them in each user's profile. See Zip items.
  • macOS. A launchd daemon and a self-service app bundle, installed by the .pkg from just pkg, with the same features.
  • Zip-only brands. INSTALLERS=zip in a brand compiles out the command installers and scripts. See examples/brand/README.md.
  • makecatalogs anywhere. Build catalogs on any OS, so your repo's CI never needs a Windows runner.

How it works

flowchart LR
  repo["Web server<br/>manifests, catalogs, items"] -->|HTTPS| agent["sofcat agent<br/>runs as SYSTEM"]
  agent -->|installs, runs, removes| pc["Each machine"]
  ui["Self-service app<br/>your branding"] <-->|local pipe| agent

Quick start on Windows

  1. Download sofcat-<version>-x86_64-setup.exe from the releases page and install it:

    .\sofcat-<version>-x86_64-setup.exe /S
    

    The installer puts both executables in C:\Program Files\SofCat, registers and starts the sofcat service, adds a Start-menu shortcut to the app and an Add or remove programs entry, and registers the per-user helper to run at logon. It ships no config. SofCat never writes under C:\Program Files: its config, its Data directory and any placement of its own live under C:\ProgramData\SofCat. "C:\Program Files\SofCat\uninstall.exe" /S removes all of it and leaves C:\ProgramData\SofCat alone.

  2. Write C:\ProgramData\SofCat\config.yaml and point it at your repo:

    url: https://example.com/sofcat/
    manifest: example_manifest
    catalogs:
      - example_catalog
    
  3. Restart-Service sofcat.

examples/ has an annotated config, catalog, manifest and package-info file. Data directory explains what lives in C:\ProgramData\SofCat and who can write to it.

Nothing is code signed yet.

Build catalogs with makecatalogs

makecatalogs compiles a repo's packages-info/*.yaml into catalogs/<catalog>.yaml, like Munki's tool of the same name. It is a standalone pure-Go binary and reads no SofCat config.

makecatalogs [--check] <repo_path>
  • Without --check it replaces <repo_path>/catalogs/. It skips a package-info file with no catalog, a catalog name containing a path, or one that differs from another only by case, and warns. A duplicate item name within a catalog warns, and the later file wins. If nothing is left to write it fails and leaves catalogs/ alone. It ignores dotfiles such as ._foo.yaml.
  • --check validates the repo, prints what it would write, and writes nothing. It fails on those warnings too, which makes it a good pull-request gate for a package repo.
  • Exit codes are 0 for success, 1 for any error (or any problem under --check) and 2 for a usage error.

Releases publish makecatalogs-<os>-<arch>[.exe] for Linux, macOS and Windows on amd64 and arm64. See examples/example_package-info.yaml.

sofcat -build/-b and -import/-i are gone, along with the repo_path config key. Configs that still set it keep loading.

Build from source

You need Go 1.27, Node 24 and just. mise installs all three plus the lint and format tools:

mise install
just dev-setup   # frontend deps and the pre-commit hook
just build       # build/sofcat.exe and build/sofcat-ui.exe
just setup       # build/sofcat-<version>-x86_64-setup.exe

With mise activated in your shell, entering the repo loads the toolchain. On Linux with nix, mise also loads flake.nix through nix-env.sh; the flake only adds the GTK 4/WebKitGTK 6.0 libraries the UI package links against for native Linux builds and tests; on other distros install those from the package manager.

On a Mac, just build-macos builds the CLI and build/<Name>.app (cgo, so the Xcode command line tools) and just pkg wraps them in an unsigned .pkg.

Both Windows executables are pure Go with no cgo, so they cross-compile from Linux or macOS. just setup uses embala, so the installer builds there too. More in Developer notes and ui/README.md.

Contributing

Pull requests are welcome. Before you open one, run:

just fmt-check
just lint
just test
just ui-lint ui-test   # if you touched ui/

To try the whole thing on a fresh Windows VM, start with test/manual/README.md.

Credits

SofCat is a fork of Gorilla by Dustin Davis and borrows its model from Munki. Licensed under Apache-2.0.

Directories

Path Synopsis
cmd
makecatalogs command
Command makecatalogs compiles a SofCat repository's packages-info files into its catalogs, like Munki's makecatalogs.
Command makecatalogs compiles a SofCat repository's packages-info files into its catalogs, like Munki's makecatalogs.
sofcat command
pkg
admin
Package admin holds repository-side tooling.
Package admin holds repository-side tooling.
artifact
Package artifact defines the zip artifact format: the tree hash and the deterministic zip writer that makecatalogs and the agent share (see site/src/content/docs/guides/zip-items.md).
Package artifact defines the zip artifact format: the tree hash and the deterministic zip writer that makecatalogs and the agent share (see site/src/content/docs/guides/zip-items.md).
branding
Package branding resolves the organisation branding SofCat UI shows: policy registry values first, then the config.yaml `branding:` block, field by field.
Package branding resolves the organisation branding SofCat UI shows: policy registry values first, then the config.yaml `branding:` block, field by field.
catalog
Package catalog declares the catalog schema shared by the agent and the repository tools.
Package catalog declares the catalog schema shared by the agent and the repository tools.
conditions
Package conditions decides which catalog items may be installed on this machine.
Package conditions decides which catalog items may be installed on this machine.
facts
Package facts gathers what installable_condition expressions are evaluated against: built-in facts about this machine and the ones admin scripts in the conditions directory print.
Package facts gathers what installable_condition expressions are evaluated against: built-in facts about this machine and the ones admin scripts in the conditions directory print.
harness
Package harness declares harnesses.yaml, the repository file that defines where zip items are placed (see site/src/content/docs/guides/zip-items.md).
Package harness declares harnesses.yaml, the repository file that defines where zip items are placed (see site/src/content/docs/guides/zip-items.md).
identity
Package identity names this build of SofCat.
Package identity names this build of SofCat.
placement
Package placement decides where zip items may be written: the write roots compiled into the build, and the checks every placement path passes before sofcat writes under it.
Package placement decides where zip items may be written: the write roots compiled into the build, and the checks every placement path passes before sofcat writes under it.
receipt
Package receipt reads and writes the records of the trees sofcat placed for zip items: one JSON file per tree at <dir>/<placement>/<item>.json.
Package receipt reads and writes the records of the trees sofcat placed for zip items: one JSON file per tree at <dir>/<placement>/<item>.json.
render
Package render is the template engine behind the files sofcat writes for a placement and, later, the templates a placed tree ships (zip-items guide, "Templates for placement files").
Package render is the template engine behind the files sofcat writes for a placement and, later, the templates a placed tree ships (zip-items guide, "Templates for placement files").
software
Package software checks a catalog item's requires_software entries: software sofcat needs on the machine but never installs (see site/src/content/docs/guides/zip-items.md).
Package software checks a catalog item's requires_software entries: software sofcat needs on the machine but never installs (see site/src/content/docs/guides/zip-items.md).
usersync
Package usersync is the per-user helper's work (`<slug>-ui.exe --user-sync`): it asks the service for the user-placement plan, places each tree into the caller's own profile from the archive the service staged, removes the trees its own receipts track that left the plan, and reports every result back.
Package usersync is the per-user helper's work (`<slug>-ui.exe --user-sync`): it asks the service for the user-placement plan, places each tree into the caller's own profile from the archive the service staged, removes the trees its own receipts track that left the plan, and reports every result back.
version
Package version provides utilities for displaying version information about a Go application.
Package version provides utilities for displaying version information about a Go application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL