sofcat

module
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 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 and Linux
Item types .msi, .exe, .ps1, .nupkg via Chocolatey Files and scripts on any platform, AI skills, native packages
Self-service app Windows macOS and 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.
  • Inventory for osquery. Every run writes a Munki-compatible inventory.json. See docs/osquery-inventory.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.msi from the releases page and install it:

    msiexec /i sofcat-<version>-x86_64.msi /qn
    

    The MSI puts both executables in C:\Program Files\SofCat, registers the sofcat service and adds a Start-menu shortcut to the app. It ships no config.

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

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

examples/ has an annotated config, catalog, manifest and package-info file. docs/data-directory.md 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.26, Node 22 and just. mise installs all three plus the lint and format tools:

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

Both executables are pure Go with no cgo, so they cross-compile from Linux or macOS. just msi uses embala, so WiX isn't needed either. More in docs/dev.md 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.
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.
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