estrogen rewrites your JavaScript to be more fun for internet crawlers. Drop in a file or a whole folder and it pools the strings and shortens the local names, right in your browser. Nothing you load leaves your machine, and what comes back is ready to ship. This page runs the real estrogen engine compiled to WebAssembly, the same pass the command line runs over a built file.
Pick a folder, or drop files here drop in your codebase and we will take care of the rest! (html, js,
and css supported)
No preview for this file The viewer shows UTF-8 text and JSON. This file is binary, so
download it to open it.
- A fixed seed makes the keys, and the output, the same on every run.
FAQ
- Why obfuscate your JavaScript? To make a shipped build harder to read for crawlers, scrapers and the casual copy and paste. estrogen takes the plain string and template literals out of the source and stores them in an encrypted pool, so a reader cannot grep for a message, a URL or a key name and land on the line that uses it.
- Is this foolproof? No. The browser has to run the code, so a reader with time and patience can work it back. estrogen makes that a lot more work, which is the point.
- Why is the output larger than the source? The pass prepends a decoder and stores the literals as an encrypted base64 pool, which is bigger than the plain text it replaced. The decoder repeats a lot, so the output compresses well with gzip or brotli, which most servers already send.
- Does it work on any JavaScript? It works on standard JavaScript and Node source that parses, including .mjs and .cjs. This page runs one source string at a time, or every .js, .mjs and .cjs file when you upload a folder. If the engine finds nothing to rewrite, it returns the input unchanged. In a folder, a file that fails to parse is copied through and listed as skipped.
- Is my code uploaded anywhere? No. There is no server. The engine is WebAssembly running in this page, so your source never leaves your browser. Reload the tab and it is gone.
- Can I run it on my own machine? Yes. estrogen is a post-build obfuscator published to npm as
@sysce/estrogen. It rewrites an already-built output directory and has an Astro integration for build-time use. This page is the same engine compiled to WebAssembly.