Javascript decompiler for modern frontend
Run without a global install:
npx wakaru input.js -o output.js # decompile a file
npx wakaru bundle.js --unpack -o out/ # unpack and decompile a bundle
npx wakaru dist/ --unpack -o out/ # scan a bundle output directorySee the CLI reference for rewrite levels, source maps, and more options.
For regular use, install the CLI globally:
npm install -g wakaru@latestStandalone binaries are available from GitHub Releases.
Wakaru rewrites the JavaScript AST to recover modern syntax, remove recognized runtime helpers, and split supported bundles into modules.
Minified Babel output:
…Wakaru output:
import _api from "./api";
export const loadProfile = async (e)=>{
const t = await _api.fetchUser(e);
const name = t.name ?? "anonymous";
return {
name,
avatar: t.profile?.avatar
};
};The helpers become async/await, the null checks become ?? and ?., and
CommonJS imports and exports become ESM. Some names, such as e and t, stay
short because the input does not provide their original names.
See supported inputs for the full list and format-specific limits.
We test both behavior and recovery against real compiler and minifier output:
Wakaru focuses on minifier and transpiler recovery. For supported obfuscation patterns, a deobfuscator such as webcrack can prepare the input before Wakaru processes it. Heavy control-flow or VM-based obfuscation needs a dedicated approach.
For AI-assisted identifier naming, see humanify. Inferred names are reading aids; source maps are the source of original names when available.
Give your coding agent readable modules to search and inspect. With the Wakaru skill, it can unpack a bundle and focus on the files relevant to your question, keeping unrelated code out of context.
Install via skills.sh:
npx skills add pionxzh/wakaruPackage inventory is under development: identify which npm packages and versions a production bundle contains. It is not part of the current release.
Share your use case to help shape its scope and priority, or contact [email protected].
Small fixes, missing recovery patterns, and correctness reports are welcome. For a bug report, include the input, command, current output, and expected behavior. A clear issue is useful even without a proposed fix.
See CONTRIBUTING.md for setup and PR guidance, and docs/README.md for the development documentation.
Usage of Wakaru for attacking targets without prior mutual consent is illegal. End users are responsible for complying with all applicable laws.
No open issues yet, or sync has not completed.