{"id":40548,"library":"afterpack","title":"AfterPack","description":"AfterPack (v0.0.15) is a high-performance JavaScript obfuscator and security audit tool built with a Rust engine for 20-70x speed improvement over JS-based obfuscators. It offers free production-ready obfuscation with irreversible non-linear transforms, deterministic output (same input = same output), and source map generation for error tracking (Sentry/Datadog). The audit command scans live URLs for leaked secrets, exposed source maps, and unprotected resources, providing a security score (0-100) and interactive web reports. It ships TypeScript types, requires Node >=18, and supports dual runtime (native + WASM).","status":"active","version":"0.0.15","language":"javascript","source_language":"en","source_url":"https://github.com/afterpack-dev/afterpack","tags":["javascript","obfuscator","minifier","protection","security","afterpack","typescript"],"install":[{"cmd":"npm install afterpack","lang":"bash","label":"npm"},{"cmd":"yarn add afterpack","lang":"bash","label":"yarn"},{"cmd":"pnpm add afterpack","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CLI tool, primarily used via npx; not imported as a library module.","wrong":"npx afterpack@latest","symbol":"afterpack","correct":"npx afterpack"},{"note":"Audit command is a subcommand, not a flag.","wrong":"npx afterpack --audit <url>","symbol":"afterpack audit","correct":"npx afterpack audit <url>"},{"note":"Obfuscation command also a subcommand (coming soon).","wrong":"npx afterpack --obfuscate <file>","symbol":"afterpack obfuscate","correct":"npx afterpack obfuscate <file>"}],"quickstart":{"code":"npx afterpack audit example.com","lang":"bash","description":"Scans example.com for leaked secrets, source maps, and security issues, then outputs a report URL."},"warnings":[{"fix":"Upgrade Node.js to version 18 or higher.","message":"Node.js 18+ requirement. Older versions will fail with syntax errors or runtime errors.","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"Pin to a specific version and watch changelogs.","message":"Some source map generation options may change in future releases.","severity":"deprecated","affected_versions":">=0.0.1 <1.0.0"},{"fix":"Use the --inflate flag for non-deterministic transforms if needed.","message":"Deterministic output: same input always produces same obfuscated output. This is by design but may surprise users expecting randomness.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Run locally with --no-report flag if available, or audit on a staging environment.","message":"Audit reports are uploaded to afterpack.dev. Sensitive data may be transmitted; ensure compliance.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Always generate and store source maps using the --sourcemap flag.","message":"Obfuscation transforms are irreversible. Ensure you retain original source maps for debugging.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"search_vec":"'-100':78 '-70':22 '0':77 '18':89 '20':21 'afterpack':1,2,101 'audit':13,59 'base':29 'built':15 'command':60 'determinist':44 'dual':92 'engin':19 'error':55 'expos':67 'free':33 'generat':53 'high':7 'high-perform':6 'improv':25 'input':47 'interact':80 'irrevers':39 'javascript':9,96 'js':28 'js-base':27 'leak':65 'linear':42 'live':62 'map':52,69 'minifi':98 'nativ':94 'node':88 'non':41 'non-linear':40 'obfusc':10,30,37,97 'offer':32 'output':45,49 'perform':8 'product':35 'production-readi':34 'protect':99 'provid':73 'readi':36 'report':82 'requir':87 'resourc':72 'runtim':93 'rust':18 'scan':61 'score':76 'secret':66 'secur':12,75,100 'sentry/datadog':57 'ship':84 'sourc':51,68 'speed':24 'support':91 'tool':14 'track':56 'transform':43 'type':86 'typescript':85,102 'unprotect':71 'url':63 'v0.0.15':3 'wasm':95 'web':81 'x':23","created_at":"2026-06-04T18:48:07.015584+00:00","updated_at":"2026-06-04T18:48:07.015584+00:00","problems":[{"fix":"Upgrade Node.js to version 18 or later (e.g., nvm install 18).","cause":"Node version is too old; afterpack requires Node >=18.","error":"Error: The engine \"node\" is incompatible with this module. Expected version \">=18\". Got \"16.x.x\""},{"fix":"Run `npx afterpack` instead of trying to import it.","cause":"AfterPack is a CLI tool, not an npm module to import. Only use via npx or global install.","error":"Cannot find module 'afterpack' or its corresponding type declarations"},{"fix":"Install Node.js and npm (which includes npx) or update npm: `npm install -g npm`.","cause":"npx is not available; usually because npm is outdated or not installed.","error":"command not found: npx"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://afterpack.dev","github":"https://github.com/afterpack-dev/afterpack","docs":null,"changelog":null,"pypi":null,"npm":"afterpack","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}