An installer for Go applications v0.21.0

go install, with the menu entry.

Soft builds a Go program with your own Go command, as go install does. An application with a window also gets an entry in your desktop’s menu, with its name and its logo. Then one command keeps everything updated.

Get started GitHub Documentation

go install github.com/rm4n0s/soft/cmd/soft@latest
The top of the Programs page of gsoft: five programs with their versions, one of them with an update, and the details of Viewer beside the list The Discover page of gsoft: a search field, the chips of two profiles, and the repositories of the profiles with the buttons Install, Review and About The dialog Install from example.com/notes in gsoft: three programs with a checkbox each, the desktop application Notes first, then two command-line programs The window of a review in gsoft: the verdict Dangerous, five findings from critical to info in a list, and the summary beside it The Phones page of gsoft for an iPhone: four apps, one expired and one about to expire with a Renew button, and one with an update available

gsoft lists what you installed, with its version, and says which programs have an update.

Discover finds applications on GitHub: the ones of the profiles you add, and the repositories with the topic soft-app.

Give it a repository, and pick among its programs. The desktop applications come first, with their names and logos.

When you ask, Claude reads the code of a program before you run it. A review has a verdict and findings by severity.

The same application goes onto the phone beside you, an Android phone by USB or an iPhone from a Mac.

3 programs

over one list and the same settings, a command line, a terminal UI and a desktop app

4 platforms

Linux and macOS for the computer, Android and iOS for the phone beside it

0 root

is needed. Everything Soft writes is in your own folders

  • Built by your own Go

    Programs are built by your own Go command, exactly like go install, and go where go install puts them: GOBIN, else ~/go/bin. Soft downloads nothing by itself, so your proxy and checksum settings apply.

  • In the menu, with its logo

    On Linux a desktop application gets a menu entry in ~/.local/share/applications and its icons in the icon theme, so GNOME, KDE Plasma, Xfce and the launchers of Sway and Hyprland show it. On macOS it becomes an app bundle in ~/Applications.

  • It remembers what you asked for

    latest, v1 or a branch: Soft keeps the version you asked for, and soft update asks the Go command what that means now. An exact version such as @v1.4.2 pins a program.

For authors, one file

Nothing changes in how you publish. Tag a version and push it. A soft.toml at the root of your module says which of its programs are desktop applications, and Soft reads the menu entry and the icons from it.

  • One [[app]] for each desktop application. A program without one is taken for a command-line program.
  • requires names the other programs of your module that the application cannot work without. Soft installs them with it.
  • With android or ios among the platforms, the application also goes onto a phone.
  • Give your repository the topic soft-app on GitHub, so that Discover finds it.
  • Without a soft.toml, Soft reads packaging/<program>.desktop and the icons beside it.
[[app]]
cmd        = "./cmd/viewer"
name       = "Viewer"
comment    = "Looks at pictures"
categories = ["Graphics", "Viewer"]
icons      = ["packaging/icons/viewer-*.png", "packaging/viewer.svg"]

# Optional: phones too, and a program it needs to work
id         = "io.github.someone.viewer"
platforms  = ["linux", "macos", "android", "ios"]
requires   = ["./cmd/viewer-cli"]

What Soft does

The outputs below are from the proofs of Soft’s repository, where soft runs on test modules. The pictures on this page are the pages of gsoft as its tests draw them, with test data.

Install

Give it a repository, and pick among its programs

Soft downloads the repository, reads its soft.toml and lists its programs. The desktop applications come first, with their names and logos, then the command-line programs. A package path works as with go install.

  • soft asks on the terminal, and tsoft and gsoft show a checkbox for each program
  • --app names the programs for a script, and --all takes every one
  • Listing a repository runs none of its code. Soft only asks the Go command for its packages.
  • If a menu entry or an icon of the same name exists and Soft did not write it, the install stops before anything changes
The dialog Install from example.com/notes in gsoft: three programs with a checkbox each, the desktop application Notes first, then two command-line programs

Update

One command installs what is outdated

Soft asks the same question on every update. latest follows new releases, v1 stays in v1, and a branch follows the branch. Only the module’s path and the query leave your computer, through your own Go setup.

  • soft update --check only looks, and changes nothing
  • A program whose file was deleted is shown as missing, and soft update installs it again
  • soft update --self updates Soft’s own programs like any other program
$ soft update --check
NAME    INSTALLED  FOUND   STATE
viewer  v1.0.0     v1.1.0  update available
$ soft update
go: downloading example.com/viewer v1.1.0
updated viewer v1.0.0 -> v1.1.0 (menu entry: Viewer)

Discover

Find applications on GitHub

Discover lists the applications of the GitHub users and organizations you add as profiles, Soft’s author at first. It also searches GitHub for the repositories with the topic soft-app, or for all Go repositories.

  • Each result says which desktop applications its soft.toml gives, and on which platforms
  • Install, Review and About start from a result
  • A profile with a token lists its private repositories too
  • Only the words you typed and the logins of your profiles go to GitHub, and never as you type
The Discover page of gsoft: a search field, the chips of two profiles, one of them with a key, and the repositories of the profiles with the buttons Install, Review and About

Three programs

A script, a terminal or a window

soft, tsoft and gsoft do the same things over the same list of programs and the same settings. Use the one you like, or several at once: one operation that changes something runs at a time across all of them.

  • soft is the command line, for scripts and for a quick install
  • tsoft is a terminal UI with keys, and ? shows them all
  • gsoft is the desktop app. If you want, it keeps an icon in the system tray that says when updates are available, and starts at login.
  • gsoft looks for updates by itself when you say so. It never installs one without you.
# GitHub's repositories with the topic soft-app
$ soft search viewer
# Lists the repository's programs and asks which
$ soft install github.com/someone/viewer
# Start it, update everything, take it away
$ soft open viewer
$ soft update
$ soft remove viewer

Phones

The same application, on the phone beside you

An application whose soft.toml lists android also goes onto an Android phone connected by USB. Soft builds it with the application’s own tool, Glutter’s glutter-android or gomobile, signs it with your key, and installs, updates, opens and removes it through adb. On a Mac, ios does the same for an iPhone, an iPad or an iOS Simulator, with glutter-ios and Xcode’s signing.

  • Before each build Soft says what it will build, with which tool, and asks
  • A free Apple ID is enough. Its apps stop opening after 7 days, and soft ios update renews them.
  • Your Android signing key is made at the first install and kept in the keyring. soft android key export backs it up.
  • Soft never touches an app on a phone that it did not install there
The Phones page of gsoft for an iPhone: four apps, one expired and one about to expire with a Renew button, and one with an update available

Review

Ask Claude to read the code before you run it

When you ask, Claude reviews a program’s code for vulnerabilities and risky behavior, or finds out about the program and its developer. It works for an installed program, and for a module before you install it.

  • A review has a verdict, a summary and findings by severity, each with its file and line
  • You choose the model. With none, the default, nothing is ever sent.
  • Your API key stays in the desktop’s keyring
  • Soft says what it will send, and asks before anything leaves your computer
  • A review with no concerns is no guarantee, and Soft says so under every review
The window of a review in gsoft: the verdict Dangerous, five findings from critical to info in a list, and the summary beside it

And the rest

Smaller things that Soft does, or refuses to do.

  • A module is a stranger

    A module never chooses what is run or where a file goes. Everything Soft reads from it is bounded, and no text of a module reaches your terminal or a menu entry unchecked.

  • No root

    Soft writes only in your own folders. It never writes over a menu entry or an icon that it did not write itself.

  • Secrets in the keyring

    Your GitHub tokens, your Claude key and your Android signing key stay in the keyring. The tokens go to api.github.com only.

  • Private repositories

    A private module is fetched by git with your own access, as with go install. Soft never gives a profile’s token to git.

  • Open

    soft open starts what Soft installed. A command-line program opens in a terminal window.

  • Copy an error

    Any failure can be copied for a bug report. The text holds no key and no token.

  • Programs that belong together

    An application can require another program of its module. Soft installs it first, and does not remove it while the application is installed.

  • Nothing opens by itself

    Soft opens no web address. The address of a result in Discover is shown, never opened.

Where everything goes

Soft has no folder of its own for programs. It uses the ones of Go and of your desktop.

WhatWhereChange it with
ProgramsGOBIN, else the first folder of GOPATH with /bin, usually ~/go/bin--bin-dir, SOFT_BIN_DIR
Menu entries~/.local/share/applications. On a Mac, app bundles in ~/Applications--data-dir, SOFT_DATA_DIR, XDG_DATA_HOME (Linux)
Icons~/.local/share/icons/hicolorthe same
Soft’s database, log and lock~/.local/state/soft--state-dir, SOFT_STATE_DIR, XDG_STATE_HOME

The Go command is --go, else SOFT_GO, else go in PATH. docs/GUIDE.md has every command, key and setting.

An application that needs a second program

A window that starts the command-line program of the same module does not work without it. The application’s soft.toml says so with requires, and Soft keeps the two together.

  • The required program is installed first, at the same version
  • It cannot be removed while the application is installed
  • soft update keeps it up to date like any program
$ soft install --app gduo example.com/duo
installed duo v1.0.0, which gduo requires
installed gduo v1.0.0 (menu entry: Duo)
$ soft list
NAME  VERSION  QUERY   MENU  STATE
duo   v1.0.0   latest        up to date
gduo  v1.0.0   latest  Duo   up to date
$ soft remove duo
soft: gduo requires duo, so duo was not removed. Remove gduo too, or first.
$ soft remove gduo duo
removed gduo
removed duo

Projects that go with Soft

The window of gsoft is built on Glutter, and Soft builds Glutter applications for phones with Glutter’s own tools. Tube and Cave have a soft.toml, so Soft installs them with their menu entries.

What Soft does not do

Its specification names these, so that nobody adds them by accident.

  • It does not run on Windows.
  • It installs what the Go command builds from a module. It takes no prebuilt programs from release pages, installs nothing from a folder of your computer, and has no build flags (-tags, -ldflags) for a program.
  • It manages only the programs it installed. It does not take over the ones that go install put there before it.
  • It never installs an update without being asked, and it makes no system-wide install.
  • On macOS it does not sign or notarize the app bundles.
  • A phone is reached by cable, not over Wi-Fi. Android phones must be 64-bit, and iOS apps are built on a Mac only, for applications built on Glutter.
  • Discover searches GitHub and no other host. A review reads the module’s own code, not its dependencies.

Under the hood#

Soft does what go install does, and one thing more: a desktop application gets an entry in the menu of GNOME, KDE Plasma, Xfce, Sway and Hyprland, and on macOS it becomes an app bundle in ~/Applications, with its icon, so Launchpad, Spotlight and the Finder show it.

  • Programs are built by your own Go command and go where go install puts them. Soft downloads nothing by itself.
  • It remembers what it installed and the version you asked for, and soft update installs what is outdated.
  • Discover lists the applications of the GitHub users and organizations you add as profiles, and searches GitHub for the repositories with the topic soft-app.
  • It needs no root: everything it writes is in your own folders.
  • An application for Android also goes onto a phone connected by USB. On a Mac, an application for iOS goes onto an iPhone, an iPad or an iOS Simulator.

There are three programs that do the same things: soft for the command line, tsoft for the terminal, and gsoft for the desktop.

Soft treats every module as written by a stranger. A menu entry always starts the program Soft installed, by its full path and with no arguments, and every file name comes from an id that Soft checked. An app for a phone is built by Glutter’s or Go’s own tool, never by code of the module. docs/SECURITY.md has each rule and the tests that prove it.

Kind
Tool
Language
Go
Runs on
Linux, macOS
License
MIT
Version
v0.21.0

Guides for Soft

The logo of Soft: a white arrow that points down into a tray, on a teal square

Start with two commands

You need Linux or macOS, and Go 1.21 or newer in PATH. The first line installs the command line. With the second, Soft lists its own programs and asks which. Its desktop app and its terminal UI get their menu entries, with Soft’s logo.

Install and update Go applications with Soft Source on GitHub Documentation

# Install the command line
$ go install github.com/rm4n0s/soft/cmd/soft@latest
# Let Soft install its desktop app and its terminal UI
$ soft install github.com/rm4n0s/soft
# Install an application, with its menu entry
$ soft install github.com/rm4n0s/tube
# Later, install what is outdated
$ soft update