CLI tool
zquestz/s avatar
zquestz/s

s: a terminal search launcher whose help text omits four flags its own examples use

Open a web search in your terminal.

2,621 stars126 forksGoMIT

At a glance

What is it?
s builds a search URL and hands it to a browser, which is a small program with a long tail of details worth reading: four flags used throughout the examples are absent from the usage block, the config parser is a four year old personal fork, and the Docker image and go.mod disagree about the Go version.
Who is it for?
s is worth having if you search a lot and want one consistent way to reach a provider from a shell, and the provider and tag matching is the part that pays for itself. Three things to know before adopting it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 22 days ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • zquestz/s2,621 ★ · +12
Star history
Repository2026-10-042026-11-22
zquestz/s2.6k2.6k

12 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The usage block omits four flags the examples rely on

The tool is one line of intent, open a web search in your browser, and the flag list at the top of the README is where the interface is supposed to be. Compare it with the examples below it and the list is short. It documents the binary to launch, the TLS certificate and key paths, the completion script generator, help, JSON output, listing providers, listing tags, output only mode and the server port with a default of 8080. The examples then use a provider flag, a tag flag, a server flag and a verbose flag, none of which appear in that block. The commands still work, and the sections that matter are the ones showing them:

zsh
s -p google dragonflies
s -t video muppets

So the printed usage is not the whole interface. If you learn this tool from its own help text you will not know how to choose a provider, which is the capability most people want from it.

Provider and tag names match partially, so prefixes are enough

Provider and tag selection is by substring rather than by exact name, and the README shows both directions. A two letter provider prefix works: fa finds Facebook, am finds Amazon. So does a two letter tag prefix: te selects providers tagged for tech news, sh selects the shopping tagged ones, and video selects everything tagged video:

zsh
s -p fa hamsters
s -t te ssd

That is what makes a list of 114 providers usable from memory, and it is also the sharp edge of it, since a prefix that matches two entries leaves the choice to whatever order the tool resolves them in. The list itself runs alphabetically from a photo site to a public broadcaster and mixes categories freely: code hosts and issue trackers, package registries for several languages, documentation references, video and audio services, shopping sites, recipe and map services, and a security advisory database. Two entries in that list are file-sharing sites rather than search engines of the kind people expect, which is a fact about the list rather than an endorsement of them.

The config file is UCL, and it fails on a missing trailing newline

Defaults live in a file at the user configuration path, written in UCL rather than JSON or YAML. Twelve keys are supported, and they mirror the flags one for one: provider, tag, binary, output, verbose, json, port, cert and key, plus two arrays, a whitelist of providers to include and a blacklist to exclude. The examples show a single default provider, a whitelist of three names, and a blacklist of one. Custom providers are declared in the same format and need three things: an alphanumeric name, a percent token standing in for the query string, and a valid URL scheme.

ucl
customProviders [
  {
    name: example
    url: "https://example.com?q=%s"
    tags: [example]
  }
]

Two details are worth knowing. The name pattern given is a regular expression that also admits underscores, which is wider than the word alphanumeric in the sentence above it. And the file must end with a trailing newline or it may fail to parse, with no other symptom described. The parser itself is a fork of a UCL library, pinned in the module to a pseudo version from June 2022.

Three install routes with three different package names

The install section starts from the Go toolchain and requires that two environment variables are set before it will work, the Go path and the Go binary directory, then installs from source at the latest version:

zsh
go install github.com/zquestz/s@latest

The Homebrew route names the formula differently from the program: the formula is s-search while the binary is s, so what you type after installing is not what you installed. The Arch route uses the AUR package s, installed with yay. A fourth route is advertised in the badges rather than in the prose, with snap build and status badges at the top and a snap directory in the repository, which points at a packaged build maintained outside this repository's own release flow. The release tags tell their own short story: v0.8.1 was published within two minutes of the last recorded push to the repository, after v0.8.0 a week earlier and v0.7.5 the previous December.

Server mode is what the container image runs

Passing the server flag turns the same binary into a small web interface on a local port, and the same flag is what the container image starts. The default port is 8080 and the port flag changes it, with the certificate and key flags adding TLS and the example combining all three to serve on 8443:

zsh
s -s -c /path/to/cert.pem -k /path/to/key.pem --port 8443

A public instance is linked for trying it out. The Dockerfile agrees with the prose: its entry point is the binary with the server flag, and it documents the exposed port as 8080. Everything else about that file is about assembling a Go toolchain image rather than about the search logic, which means the image exists to serve the web interface and to demonstrate it, not to package a desktop utility. Anyone running it should note that the interface is a search front end reachable over HTTP, so exposing it beyond a local machine publishes whatever queries and provider choices people make through it.

The image and the module disagree about the Go version

The module declares a Go language version of 1.25.0. The container builds from an Alpine image tagged with a 1.26.5 toolchain. Neither number is wrong on its own, but they are different claims about what the project needs, and a build that succeeds in the image has not been checked against the version in the manifest. The rest of the Dockerfile is dated in the same way. It copies the source into a GOPATH style path under a src directory, which is the pre-modules layout, then adds make in a layer of its own, then runs the Makefile install target, which is a plain go install. The result is a build that works, assembled in a way that belongs to an earlier era of Go packaging than the module file beside it.

Eighteen cross compile targets, and nothing declared phony

The Makefile has the ordinary targets and one unusual default. The cross compile scope is a list of eighteen operating system and architecture pairs, overridable from the environment, and it includes the corners: DragonFly, FreeBSD on 386 and arm, NetBSD, OpenBSD, Solaris on amd64, and Plan 9 on 386. Each pair is built with cgo disabled, gets its own output directory, receives a copy of the README and the licence file, and is zipped separately. What the file does not have is a phony declaration. There is no line marking the targets as not being files, so a stray file named install or compile or docker in the working directory would silently stop the recipe from running, which is the specific failure a phony declaration exists to prevent. The uninstall target is a single clean command, and the docker target builds the image with the binary's own name as the tag.

Shell completion is installed into system directories with sudo

Completion for four shells is generated by one flag rather than by a subcommand, and the invocation differs per shell because each shell reads completions from a different place. Bash on Linux writes into the system completion directory under etc, bash on macOS writes into a different path under local, both through a shell run with sudo:

bash
sudo bash -c "s --completion bash > /etc/bash_completion.d/s"

Zsh does the same into a site functions directory, again through sudo. Fish needs no elevation at all because the script goes into the user configuration directory, and the PowerShell form is different again, piping the generated script through a string cmdlet and evaluating it in the current session. The asymmetry is worth noticing on its own: three of the four documented paths write outside your home directory with elevated permissions, and one writes inside it. The same pattern shows up in the advanced section, where the suggested aliases are two characters long so that a provider becomes a prefix you type rather than a word.

Editorial conclusion

s is worth having if you search a lot and want one consistent way to reach a provider from a shell, and the provider and tag matching is the part that pays for itself. Three things to know before adopting it. The usage block is incomplete relative to the examples, so learn the provider, tag, server and verbose flags from the examples rather than from the help text. The configuration file is parsed by a fork of a library last pinned in 2022 and it fails on a missing trailing newline, which is a sharp edge for a file people edit by hand. And the container image builds with a newer Go toolchain than the module declares, so a build that works in the image is not a build that matches the manifest.

Frequently asked questions

How do I install the s terminal search tool?

With Go, set GOPATH and GOBIN and run go install github.com/zquestz/s@latest. Homebrew users run brew install s-search, which is a different name from the s binary it installs, and Arch users with yay run yay -S s. Snap builds are advertised through badges in the README.

Which flags does s support?

The usage block documents the binary, cert, key, completion, help, json, list providers, list tags, output and port flags. The examples also use a provider flag, a tag flag, a server flag and a verbose flag, none of which appear in that block.

How do I choose a different browser for s?

The binary flag takes the program to launch the search URI with, and it accepts extra flags in the same string, such as a private or incognito switch. Quotes are needed only when passing extra flags, so a path containing spaces still works unquoted in the simple form. The same value can be set as the binary key in the configuration file.

What configuration file does s read?

A file at the user configuration path in UCL format, with keys for provider, tag, binary, output, verbose, json, port, cert, key, whitelist, blacklist and customProviders. Custom providers need a name matching a pattern that also admits underscores, a percent token for the query string, and a valid URL scheme. The file must end with a trailing newline or it may fail to parse.

How many search providers does s support?

The README lists 114, from 500px through zdf, covering code hosts, package registries, documentation references, media services and shopping sites among others. Names match partially, so a short prefix selects a provider or a tag.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. Releases
  5. zquestz/s on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/zquestz-s.svg)](https://hysenlabs.com/projects/zquestz-s)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/zquestz-s.svg)](https://hysenlabs.com/projects/zquestz-s)

Was this useful?