Skip to main content
Version: 1.4.2

Installation

JS Recon is a Node.js-based, security-focused JavaScript analysis tool built for modern recon workflows.

Prerequisites​

Homebrew users

If you install via Homebrew, Node.js is installed automatically as a dependency — no manual setup required. Skip to the Installation methods section.

  • Node.js 22 or higher (npm install only)

  • Browsers

    • JS Recon internally uses Puppeteer to automate Chromium-based browsers. Puppeteer installs automatically for npm installs, no manual setup required. Homebrew installs require a separate browser setup — see the Homebrew section below.

Installation methods​

Homebrew (macOS and Linux)​

brew tap js-recon/tap
brew install js-recon

This always installs the latest stable release. For the latest alpha or beta prerelease instead:

brew install js-recon/tap/js-recon-alpha
brew install js-recon/tap/js-recon-beta

To update:

brew update && brew upgrade js-recon
Upgrading from the old tap

If you installed JS Recon before the project moved to the js-recon GitHub organization, you may still have the old shriyanss/tap tapped locally. Because that repository was renamed (not deleted), Homebrew still resolves it — leaving you with two taps that both serve a formula named js-recon. This ambiguity is what causes errors like Formulae found in multiple taps or Refusing to load formula ... from untrusted tap .... Remove the stale tap, then install from the new one:

brew untap shriyanss/tap
brew tap js-recon/tap
brew install js-recon/tap/js-recon
note

After installing via Homebrew, the lazyload subcommand (and run pipelines that use it) requires a Chromium-based browser at runtime. Run brew info js-recon for setup instructions.

Subcommands that work without a browser: strings, map, analyze, report, endpoints, mcp, cs-mast, refactor, sourcemaps.

npm (all platforms)​

Install the command-line tool globally using NPM:

npm i -g @js-recon/js-recon@latest
tip

You can try the alpha and beta builds as well. They are updated more often than the stable version, often daily, but are not as stable.

To download the alpha build, use the following command:

npm i -g @js-recon/js-recon@alpha

To download the beta build, use the following command:

npm i -g @js-recon/js-recon@beta

Test the installation:

js-recon -V

Shell completion (optional)​

Enable tab completion for subcommand names and flags:

Bash​

echo 'eval "$(js-recon completion bash)"' >> ~/.bashrc
source ~/.bashrc

Zsh​

echo 'eval "$(js-recon completion zsh)"' >> ~/.zshrc
source ~/.zshrc

Fish​

js-recon completion fish > ~/.config/fish/completions/js-recon.fish

See the Completion command reference for more options.

API keys setup​

JS Recon can optionally use API access to a couple of external services for enhanced analysis. Neither is required — the tool works fine without them.

AWS API Gateway (used to rotate IP address; optional)​

The proxy module's aws method can rotate the source IP across requests via throwaway AWS API Gateway REST APIs, which is useful against rate-limited targets. This is entirely optional — JS Recon runs normally without an AWS key. See the full proxy module reference for setup and the AWS example.

OpenAI API (to generate function descriptions; optional)​

The map module's --ai flag can use an AI provider to generate descriptions for mapped functions. This is optional and off by default. Supported providers are openai (default, requires an API key) and ollama (no key required, runs locally), selected via --ai-provider. The OpenAI key is read from the $OPENAI_API_KEY environment variable, or passed directly with --openai-api-key <key>. See the full AI-powered analysis docs for provider options and examples.