# kvz/bash3boilerplate

Templates to write better Bash scripts

Repository: https://github.com/kvz/bash3boilerplate
Canonical: https://ross.abutalabs.com/products/bash3boilerplate
Homepage: http://bash3boilerplate.sh
Language: Shell
License: MIT
License Family: permissive
Last push: 2026-07-20T22:56:10+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 4937, "days_push": 44, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2212, forks 199 (observed 2026-08-28T04:06:26.836016+00:00)

## What it is
BASH3 Boilerplate (b3bp) is a template for writing better Bash scripts, bundling common needs like logging, argument parsing, and safe defaults. It is delete-key-friendly: you copy main.sh and remove what you don't need, targeting portable Bash 3.

## Use cases
- start a new bash script with safe defaults
- parse command-line arguments in bash without dependencies
- add colored logging to shell scripts
- standardize script structure across a team
- configure scripts via environment variables
- write portable bash scripts that work on macOS default bash

## When to choose
- you write Bash scripts and want battle-tested structure and safety defaults
- you want zero-dependency argument parsing and logging in Bash
- you need scripts portable to Bash 3 (e.g., stock macOS)

## When to avoid
- your task is complex enough that Python or Go would be better
- you want a library/package system rather than copy-paste templates
- you need Bash 4+ features

## Facets
- artifact type: learning-resource
- maturity: stable
- function: developer-tools, cli, logging, configuration-management
- domain: developer-tools
- platform: cli, cross-platform
- tags: bash, shell-scripts, boilerplate, argument-parsing, template, boilerplate, command-line, automation, linux, macos

## Member repositories
- kvz/bash3boilerplate (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:26.836016+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:31:57.568122+00:00, confidence not recorded.
  - readme: https://github.com/kvz/bash3boilerplate (fetched 2026-08-28T04:06:26.836016+00:00, sha 9822798aa1a6)
  - homepage: http://bash3boilerplate.sh (fetched 2026-08-29T10:26:22.784218+00:00, sha 65c94aa316ea)
- Data as of 2026-08-30T08:39:29.467469+00:00.
