Skip to content

Bun

Version: 1.0.0 | Tests: Passing

devcontainer.json
{
    "features": {
        "ghcr.io/infrashift/trusted-devcontainer-features/bun:latest": {
            "target_version": "1.2.17"
        }
    }
}
OptionTypeDefaultDescription
target_versionstring1.2.17Select a supported Bun version
target_checksumstring""SHA256 checksum for the Bun binary

None — this feature is independent and has no dependencies.

This feature downloads the Bun binary from the official GitHub releases for the linux-x64 architecture. Bun is a fast all-in-one JavaScript runtime, bundler, test runner, and package manager designed as a drop-in replacement for Node.js.

The Ansible playbook creates ~/.local/bin if it does not already exist, downloads the Bun tarball for the specified version, and optionally verifies the SHA256 checksum if one is provided via the target_checksum option. Once verified, the binary is extracted and placed on PATH so the bun command is immediately available.

Bun serves as the runtime for installing Node.js-based CLI tools like Claude Code and OpenAI Codex in this feature set. Because Bun has a significantly faster package installation process than npm, it provides a better devcontainer build experience when installing global npm packages. Features that depend on Bun will automatically trigger its installation as part of the dependency chain.