brosck/mantra
brosck/mantra has 947 GitHub stars and 98 forks. GitHot measured +1 stars in 24 hours and 0 in 7 days. Last checked 2026-11-09 23:59 UTC. Last push 2026-03-12.
「🔑」A tool used to hunt down API key leaks in JS files and pages
Measured star growth
- in 24h
- +1
- in 7 days
- 0
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original「🔑」 About Mantra

The tool in question was created in Go and its main objective is to search for API keys in JavaScript files and HTML pages.
It works by checking the source code of web pages and script files for strings that are identical or similar to API keys. These keys are often used for authentication to online services such as third-party APIs and are confidential and should not be shared publicly.
By using this tool, developers can quickly identify if their API keys are leaking and take steps to fix the problem before they are compromised. Furthermore, the tool can be useful for security officers, who can use it to verify that applications and websites that use external APIs are adequately protecting their keys.
In summary, this tool is an efficient and accurate solution to help secure your API keys and prevent sensitive information leaks.
Help

Usage

Install
From go:
go install github.com/Brosck/mantra@latest
From source code:
git clone https://github.com/brosck/mantra
cd mantra
make
./build/mantra-amd64-linux -h
Results
Firebase API Key Leak:
Buy me a coffee?
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
257,509 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,103 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,542 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
78,935 stars