awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
batsh-dev-team avatar

batsh-dev-team/Batsh

0
View on GitHub↗
4,351 stars·168 forks·OCaml·18 viewsbatsh.org↗

Batsh

Batsh is a cross-platform shell compiler and transpiler that translates a unified scripting syntax into platform-specific commands for Bash and Windows Batch. It functions as a multi-platform script generator, transforming a single source language into executable scripts compatible with Linux, macOS, and Windows.

The system utilizes a translation process that maps high-level constructs to an intermediate representation and resolves differences in command flags and variable expansion. It supports conditional target embedding, allowing raw code blocks to be injected into the output for a specific operating system while being ignored for others.

This tool covers the generation of environment-agnostic build tooling and deployment scripts by converting a single source file into multiple distinct script formats. This ensures that system commands can be executed across diverse operating systems without duplicating logic.

Features

  • Bash and Batch Transpilers - Translates a unified scripting syntax into platform-specific shell commands for Linux and Windows.
  • Multi-Platform Script Generators - Generates compatible shell scripts for different operating systems from a shared set of instructions.
  • Cross-Platform Compilers - Acts as a compiler that transforms a single source language into both Bash and Windows Batch scripts.
  • Shell Script Transpilers - Converts a single source file into both Bash and Windows Batch scripts to ensure cross-platform execution.
  • Multi-Target Compilers - Generates multiple distinct executable script files from a single source to ensure environment-agnostic execution.
  • Cross-Platform Scripting - Enables writing a single script that runs on both Linux and Windows by compiling to native shell formats.
  • Transpilers - Transpiles a unified scripting syntax into platform-specific Bash and Windows Batch scripts.
  • Build Automation Scripts - Facilitates the creation of installation and deployment scripts that work across Windows and Unix-like environments.
  • Shell Syntax Mappings - Resolves differences in command flags and variable expansion by substituting tokens based on the target platform.
  • Cross-Platform Command Executions - Enables execution of system commands across Linux, macOS, and Windows by automatically compiling input into native syntax.
  • Abstract Syntax Tree Translations - Implements a translation process that maps high-level language constructs to shell commands via an intermediate abstract syntax tree.
  • OS-Specific Code Blocks - Provides the ability to inject raw code blocks into the output stream only when targeting a specific operating system.
  • Platform-Specific Backend Resolution - Resolves target-specific code requirements by allowing raw statements to be inserted for specific platforms.

Star history

Star history chart for batsh-dev-team/batshStar history chart for batsh-dev-team/batsh

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Batsh

These projects share indexed features with Batsh. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • script-hub-org/script-hubScript-Hub-Org avatar

    Script-Hub-Org/Script-Hub

    3,396View on GitHub↗

    Script-Hub is a system for translating proxy rule sets and converting configuration modules between different network proxy environments. It serves as a translator and converter that enables cross-platform compatibility for rewrite rules and script-based logic. The project includes a script interop layer that normalizes header casing and handles execution errors to ensure scripts run consistently across different tools. It also provides a remote configuration manager for importing, updating, and modifying proxy modules and parameters via web URLs. The software covers a range of capabilities

    JavaScript
    View on GitHub↗3,396
  • reasonml/reasonreasonml avatar

    reasonml/reason

    10,313View on GitHub↗

    Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web environments or native machine code for operating systems. It serves as an OCaml-compatible language that shares an abstract syntax tree with OCaml, providing a practical syntax for the OCaml ecosystem. The project functions as a type-safe frontend language, incorporating JSX support to build user interfaces through structural elements that translate into type-safe function calls. It enables deep integration with the JavaScript ecosystem, allowing the use of existing librarie

    OCamljavascriptocamlprogramming-language
    View on GitHub↗10,313
  • nim-lang/nimnim-lang avatar

    nim-lang/Nim

    18,071View on GitHub↗

    Nim is a statically typed, compiled systems programming language designed for high performance and cross-platform development. It translates high-level source code into C, C++, or JavaScript, allowing developers to produce efficient native binaries or web-compatible scripts from a single codebase. The language emphasizes a clean, indentation-based syntax that simplifies code hierarchy while maintaining the power of a full-featured systems language. What distinguishes Nim is its robust metaprogramming framework, which allows developers to inspect, modify, and generate code structures during th

    Nimcompilerefficienthacktoberfest
    View on GitHub↗18,071
  • rust-lang/cargorust-lang avatar

    rust-lang/cargo

    14,624View on GitHub↗

    Cargo is the official build system and package manager for the Rust programming language. It provides a unified command-line interface that orchestrates the entire development lifecycle, including compiling source code, managing complex dependency graphs, running tests, and distributing packages through a centralized registry. By utilizing declarative manifest files, it ensures that builds remain reproducible and consistent across different environments. The tool distinguishes itself through its deep integration with the Rust compiler and its sophisticated approach to project management. It f

    Rustcargopackage-managerrust
    View on GitHub↗14,624
Compare all 30 related projects→

Frequently asked questions

What does batsh-dev-team/batsh do?

Batsh is a cross-platform shell compiler and transpiler that translates a unified scripting syntax into platform-specific commands for Bash and Windows Batch. It functions as a multi-platform script generator, transforming a single source language into executable scripts compatible with Linux, macOS, and Windows.

What are the main features of batsh-dev-team/batsh?

The main features of batsh-dev-team/batsh are: Bash and Batch Transpilers, Multi-Platform Script Generators, Cross-Platform Compilers, Shell Script Transpilers, Multi-Target Compilers, Cross-Platform Scripting, Transpilers, Build Automation Scripts.

Which projects share features with batsh-dev-team/batsh?

Projects with overlapping indexed features include: script-hub-org/script-hub — Script-Hub is a system for translating proxy rule sets and converting configuration modules between different network… reasonml/reason — Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web… nim-lang/nim — Nim is a statically typed, compiled systems programming language designed for high performance and cross-platform… rust-lang/cargo — Cargo is the official build system and package manager for the Rust programming language. It provides a unified… amber-lang/amber — Amber is a transpiler that translates high-level source code into executable shell scripts for Bash, Zsh, and Ksh. It… dart-lang/sdk — The Dart SDK is a comprehensive development kit for building cross-platform applications using a multi-paradigm…