yassinebenaid

bunster: Compile Shell Scripts into Static Binaries

Bunster transpiles shell scripts into Go and builds them as standalone binaries, rather than bundling a script that still needs a shell. It is aimed at developers distributing shell-based tools, but currently supports only a subset of Bash features.

GoBSD-3-ClauseShellCompilerCLI
View on GitHub Compare
Stars
2.7k
Forks
71
Stars, last 30 days
-2

Our take

Health score

21/100

How it is scored
Activity
19
Community
24
Issues
21
Pull requests
20

-2 stars in the last 30 days

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

2,677

Forks

71

Change since Nov 17, 2026: 0 stars·0 forks

Overview

Bunster is a compiler for shell scripts: it transpiles scripts into Go code and uses the Go toolchain to build executable binaries. Unlike a wrapper, the result does not depend on an external shell at runtime.

It is intended for people who want to distribute shell-based programs as portable binaries or organize them as modules. Bash compatibility is a goal, but the project is still developing and currently implements only a subset of features.

Key Features

  • Compiles shell scripts into standalone binaries rather than embedding the original script in a wrapper.
  • Transpiles scripts to Go and delegates executable building to the Go toolchain.
  • Provides a module system for splitting code across files.
  • Includes a package manager for publishing and consuming modules.
  • Supports loading .env files at runtime.
  • Can embed files and directories into compiled programs for runtime use.
  • Offers declared flags parsing and work-in-progress static analysis.

Use Cases

  • A shell-script author who wants to distribute a command-line tool without requiring users to have a shell installed at runtime.
  • A team packaging internal scripts as binaries for easier deployment across environments.
  • Developers organizing a growing shell-based project into reusable modules.
  • Script authors who want embedded assets or built-in flag handling instead of implementing those pieces manually.

Getting Started

Install with the project’s installer:

curl -f https://bunster.netlify.app/install.sh | bash

See the README and documentation for installation options and usage details.

Alternatives

  • Nuitka: Nuitka compiles Python programs into C-based executables, rather than transpiling a subset of Bash into Go.
ProjectLanguageLicenseStarsStatus
bunsterGoBSD-3-Clause2.7kNot checked yet
NuitkaPythonAGPL-3.015.2kActive

Considerations

Bunster describes itself as being in an early stage, and only a subset of shell features is supported. Bash compatibility is a stated goal, not a guarantee that every Bash script will work. The project says support for additional shells is not planned before its first stable v1 release. Bunster uses the Go toolchain to compile generated code.

Found this useful?

Share it with someone who would like bunster.

Comparisons