batsh-dev-team/Batsh
A language that compiles to Bash and Windows Batch observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4748
- days_rel: n/a
- days_push: 1222
- n_releases_24m: 0
Adoption not part of the score
4353 stars · 167 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Batsh is a C-based programming language that compiles to both Bash and Windows Batch scripts, letting you write shell scripts once that run on all platforms with no runtime dependencies. It is implemented in OCaml and distributed as a command-line compiler via OPAM.
Use cases
- write cross-platform shell scripts that run on linux and windows
- compile a script to bash and batch from one source
- replace duplicated bash and batch glue code in a tool
- avoid learning bash and windows batch syntax
- generate platform-specific scripts from a single language
When to choose
- you maintain a cross-platform tool needing both bash and batch glue scripts
- you want one script source targeting unix and windows shells
- you want zero runtime dependencies in the generated scripts
When to avoid
- you only target a single operating system
- you need a language with a large ecosystem or active community
- you need advanced shell features beyond what batsh supports
Facets
cli-tool · maturity maintenance
compiler programming-language cli programming-languages compilers developer-tools cross-platform windows cross-platform cli transpiler bash batch shell-scripting ocaml write-once-run-anywhere automation linux macos
2 sources
- readme: https://github.com/batsh-dev-team/Batsh · fetched 2026-08-28 · 0c1c70311d6c
- homepage: http://batsh.org · fetched 2026-08-29 · 40065856b848
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| batsh-dev-team/Batsh | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="batsh-dev-team/Batsh")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem