webpro-nl

webpro-nl / unbash

Public

Fast 0-deps bash parser written in TypeScript

15
0
100% credibility
Found Mar 01, 2026 at 15 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Shell
AI Summary

unbash is a lightweight TypeScript library that parses Bash scripts into a structured tree and can regenerate formatted Bash code from it.

How It Works

1
🔍 Discover unbash

While building a web tool that needs to understand shell scripts, you stumble upon unbash, a speedy helper that breaks down Bash code into simple building blocks.

2
📦 Pick it up

With one quick action, you bring unbash into your project, ready to make sense of any Bash script.

3
⚙️ Break down a script

You hand over a Bash script, and unbash instantly maps out every command, loop, condition, and detail like a clear recipe.

4
🔄 Rebuild neatly

Tell unbash to put the pieces back together, and it crafts a clean, pretty version of your original script.

5
đź§Ş Test and tweak

Play around with the map—check logic, spot issues, or reshape parts—everything feels smooth and intuitive.

🚀 Scripts unlocked

Your app now effortlessly handles, analyzes, and improves Bash scripts, saving time and headaches forever.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 15 to 15 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is unbash?

unbash unabashedly delivers a fast 0-deps bash parser in TypeScript, turning shell scripts into a typed AST with support for Bash 5.3 features like command substitutions and extglobs. It solves the pain of analyzing bash in JS environments—think GitHub Actions validators or script linters—without WASM bloat or crashes, plus a printer for basic code gen. Tolerant parsing collects errors instead of throwing, keeping your fast GitHub workflows humming.

Why is it gaining traction?

Speed crushes alternatives: up to 2000x faster than sh-syntax on large scripts, 10x over tree-sitter-bash, all in 13KB gzipped. Zero deps mean instant anywhere—Node, browsers, fast GitHub Actions—no setup hassles. Developers love the structured AST for expansions, arithmetic, and tests, unabashedly enabling quick script search, scheduling, or fast-forward merges.

Who should use this?

CI/CD engineers optimizing fast GitHub Actions or timetables. Tool builders for bash linters, VS Code extensions, or GitHub apps parsing downloads/past papers. Anyone bashing unbashful prototypes needing lightweight parsing over full-featured heavies.

Verdict

Solid pick for speed-focused bash analysis in JS; try the playground for fast GitHub search/font tweaks. 1.0% credibility and 13 stars signal early maturity—docs shine, benchmarks convince, but watch for broader testing before production.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.