cd /news/ai-tools/bun-standalone-binaries-recompiled-b… · home › topics › ai-tools › article
[ARTICLE · art-166435] src=reversedwithai.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Bun standalone binaries: Recompiled Bun standalone binaries into readable source code with Claude

The bun-demincer project, developed with contributions from Claude Opus 4.6, extracts, deobfuscates and reorganizes JavaScript source code from Bun standalone binaries and supports round-trip reassembly of modified modules into functional executables, tested on output from Bun 1.3.10. The pipeline splits embedded JavaScript into individual modules, classifies them as vendor or application code using a fingerprint database (vendor-fingerprints-1000.json), recovers identifiers via MR() export mappings and class name pattern matching, and offers AI-assisted renaming with LLMs for remaining identifiers. The author reports the extracted code is runnable, and the tool also generates dependency graphs and applies Louvain community detection to organize modules into semantic directories.

by read1 min views19 publishedNov 5, 2026
Bun standalone binaries: Recompiled Bun standalone binaries into readable source code with Claude
Image: Reversedwithai (auto-discovered)

Evidence at a glance #

source evidence…

What was done #

The bun-demincer tool extracts, deobfuscates, and reorganizes JavaScript source code from Bun standalone binaries, enabling round-trip reassembly into functional executables.

The bun-demincer project provides a pipeline to decompile, deminify, and deobfuscate standalone JavaScript binaries produced by the Bun runtime. The tool extracts embedded JavaScript from the binary format, splits the code into individual modules, and classifies them as either vendor or application code using a fingerprint database. The deobfuscation process includes structural transforms, identifier recovery via MR() export mappings, and class name pattern matching. Claude Opus 4.6 contributed to the development of the pipeline, including the implementation of round-trip reassembly, which allows modified modules to be rebuilt into a functional binary. For remaining identifiers, the tool supports AI-assisted renaming using LLMs to infer semantic names from context. The pipeline also includes dependency graph generation and Louvain community detection to organize modules into semantic directories. The author reports that the extracted code is runnable, and the tool has been tested on output from Bun 1.3.10. Detailed documentation is available at https://raw.githubusercontent.com/vicnaum/bun-demincer/HEAD/README.md.

Reproduce it #

npm install
node src/extract.mjs /path/to/bun-binary extracted/
node src/resplit.mjs extracted/bundle.js resplit/
node src/match-vendors.mjs resplit/ --db data/vendor-fingerprints-1000.json --classify
node src/deobfuscate.mjs --dir decoded/

Community #

Ask a question, share what worked, or follow the next milestone.

Your library

── more in #ai-tools 4 stories · sorted by recency
── more on @bun 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/bun-standalone-binar…] indexed:0 read:1min 2026-11-05 · —