# Install mantra with Homebrew, Nix

Tool to hunt down API key leaks in JS files and pages. Version 3.1 via Homebrew; verified 2026-07-29. Also installable with nix: nix profile install nixpkgs#mantra.

## Install

```sh
sudo av install brew:mantra
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mantra
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mantra
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ma/mantra/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mantra
- **Package manager:** Homebrew
- **Version:** 3.1
- **Source summary:** Tool to hunt down API key leaks in JS files and pages
- **Homepage:** <https://amolo.com.br>
- **Repository:** <https://github.com/brosck/mantra>
- **Last updated:** 2026-07-29T17:04:50+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- mantra (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.1
## Project history and usage

mantra is a Go command-line security tool for finding API-key leaks in JavaScript files and HTML pages.

### Project history

The public repository was created in January 2023. Its README describes a tool built in Go whose main objective is to inspect web page source and script files for strings that are identical or similar to API keys.

### Adoption history

The project is distributed as a Go install target, source build, and Homebrew formula. Its GitHub topics and README position it for bug bounty, pentest, JavaScript, leaked-secret, and web security workflows.

### How it is used

Users install with `go install github.com/Brosck/mantra@latest` or build from source, then run the `mantra` CLI against pages or JavaScript files to identify possible exposed API keys.

### Why package nerds care

mantra is part of the small, fast Go CLI ecosystem around web reconnaissance and secret scanning, where package-manager availability matters because tools are often chained in scripts.

### Timeline

- 2023: Public GitHub repository created.
- 2023: v1.0 release published.
- 2024: v2.0 release published.
- 2025: v3.1 release published.

### Related projects

- The README does not name direct related projects; it fits the broader secret-scanning and web reconnaissance tool category.

### Sources

- <https://github.com/brosck/mantra>
- <https://github.com/brosck/mantra#readme>
- <https://github.com/brosck/mantra/releases/tag/v3.1>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Nix - mantra: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mantra/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mantra.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mantra.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
