{"slug": "bun-standalone-binaries-recompiled-bun-standalone-binaries-into-readable-source", "title": "Bun standalone binaries: Recompiled Bun standalone binaries into readable source code with Claude", "summary": "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.", "body_md": "## Evidence at a glance\n\nLoading source evidence…\n\n## What was done\n\nThe bun-demincer tool extracts, deobfuscates, and reorganizes JavaScript source code from Bun standalone binaries, enabling round-trip reassembly into functional executables.\n\nThe 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](https://raw.githubusercontent.com/vicnaum/bun-demincer/HEAD/README.md).\n\n## Reproduce it\n\n```\nnpm install\nnode src/extract.mjs /path/to/bun-binary extracted/\nnode src/resplit.mjs extracted/bundle.js resplit/\nnode src/match-vendors.mjs resplit/ --db data/vendor-fingerprints-1000.json --classify\nnode src/deobfuscate.mjs --dir decoded/\n```\n\n## Community\n\nAsk a question, share what worked, or follow the next milestone.\n\n[Your library](https://reversedwithai.com/library)", "url": "https://wpnews.pro/news/bun-standalone-binaries-recompiled-bun-standalone-binaries-into-readable-source", "canonical_source": "https://reversedwithai.com/p/bun-standalone-binaries-5b41ffd4", "published_at": "2026-11-05 11:40:16+00:00", "updated_at": "2026-11-09 19:19:50.810981+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["Bun", "bun-demincer", "Claude Opus 4.6", "Anthropic", "GitHub"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/bun-standalone-binaries-recompiled-bun-standalone-binaries-into-readable-source", "markdown": "https://wpnews.pro/news/bun-standalone-binaries-recompiled-bun-standalone-binaries-into-readable-source.md", "text": "https://wpnews.pro/news/bun-standalone-binaries-recompiled-bun-standalone-binaries-into-readable-source.txt", "jsonld": "https://wpnews.pro/news/bun-standalone-binaries-recompiled-bun-standalone-binaries-into-readable-source.jsonld"}}