Free launches are open: 12 a day, and open-source projects get a dofollow link with no badge.

Submit

Brut

POSIX shell router for building Unix CLI tools

Developer ToolsOpen sourceOpen source (repo not verified)#shell#cli#unix

Listed by the ProductPerch team from lobste.rs · not launched here yet

What is Brut?

Brut is a single-file POSIX shell script that serves as a front-end router for Unix command-line programs. It dispatches execution to subcommands based on its filename and the first argument passed, following a routing style popularized by Git. The script acts as the main entry point for applications built using the Brutal Unix methodology.

It helps developers break monolithic shell scripts into smaller, independently testable executables and shared library files arranged in a standard directory layout. This modular approach avoids the maintenance limits of large single-file scripts and eliminates the need for external language runtimes or compiled binaries. Each command runs as a separate process with its own arguments, standard I/O streams, and exit status.

The core router operates in approximately 120 lines of shell. It sets up environment variables, extends the PATH, and locates command-specific executables. Built-in capabilities include shared script loading, error handling, routing hooks, extensibility, and support for grouping commands into namespaces. Brut requires only basic POSIX.1-2024 utilities and runs on any modern Unix system.

Brut features

  • Single-file POSIX shell script implementation
  • Routes commands based on filename and first argument
  • Breaks large scripts into small, testable executables
  • Standard directory layout for lib, libexec, and share folders
  • No external runtime dependencies required
  • Built-in error handling and routing hooks
  • Supports command grouping into namespaces

Who uses Brut and for what

  • Building portable CLI tools that run across Linux, macOS, and BSD without extra dependencies
  • Replacing monolithic shell scripts with modular command structures
  • Bootstrapping custom build systems for software projects
  • Managing infrastructure tasks with reusable shell functions
  • Creating framework-style CLIs similar to Git or Docker

Brut FAQ

Is Brut free?

Yes, Brut is released under the MIT License, which allows free use, modification, and distribution.

Does Brut work on Mac?

Yes, Brut is a POSIX shell script designed to run on any contemporary Unix system, including macOS, Linux, and BSD.

What is Brut used for?

It is used to build Unix command-line programs by routing calls to separate executable scripts, helping developers organize shell code into modular components.

Does Brut require a specific programming language runtime?

No, Brut relies only on basic POSIX utilities and standard shell features, requiring no additional language runtimes.

Does Brut have a graphical user interface?

No, Brut is a command-line router intended for terminal environments. The website does not mention a graphical interface.

Comments (0)

Comments and upvotes open when this product launches on ProductPerch.

More Developer Tools launches

All Developer Tools tools

Launch packs

Buy paid launches