Metadata-Version: 2.4
Name: readystack-view-in-browser-leak-audit
Version: 1.0.3.post1
Summary: 24 rules read the .html file you are about to open in the browser and flag every line that behaves differently once the page has a public URL: live API keys, localhost and file:// paths, http:// resou (bundled Node.js runtime)
Author-email: ReadyStack <support@getreadystack.com>
License: Proprietary - see LICENSE.txt
Project-URL: Homepage, https://getreadystack.com/tools/view-in-browser-leak-audit?ref=pypi
Project-URL: Documentation, https://getreadystack.com/tools/view-in-browser-leak-audit?ref=pypi
Project-URL: Support, https://getreadystack.com/support
Keywords: view in browser,html,preview,api key,secret,localhost,publish,static site,audit,leak
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: nodejs-wheel-binaries>=20
Dynamic: license-file

# View in Browser — Publish Leak Audit (HTML)

> Runs the same checker as the npm package `@readystack/view-in-browser-leak-audit` on a Node.js runtime that pip installs for you (`nodejs-wheel-binaries`) - no system Node.js needed. Your files are checked locally.

![View in Browser — Publish Leak Audit (HTML)](https://getreadystack.com/img/promo/sku128294_result_card.jpg)

24 rules read the .html file you are about to open in the browser and flag every line that behaves differently once the page has a public URL: live API keys, localhost and file:// paths, http:// resources, a leftover noindex.

## Install

```
view-in-browser-leak-audit file
```

Node 18+. The same 24 rules as the VS Code extension, from a terminal or CI.

## Free

- Audit the HTML file you are about to open in the browser: all 24 rules, every finding with its severity, line number and fix. The clean fixture returns 0 findings, the dirty one returns 27. No key, no watermark, no locked answers.
- `--rules` lists every rule

## With a licence ($29 once)

- Scope: one command sweeps every HTML file in the workspace instead of the one in front of you, and writes a dated LEAK-AUDIT.md you keep as evidence — forty pages in one pass instead of forty passes.

```
@readystack/view-in-browser-leak-audit --dir ./templates --report html --out report.html
```

In February 2026 a developer reported an $82,000 Google Cloud bill after a key embedded in client-side Google Maps code was taken from the page source; their normal spend was $180 a month.

## Use from an AI agent (MCP)

Claude Code · Cursor · Windsurf · any MCP client - add to your MCP config:

```json
{ "mcpServers": { "view-in-browser-leak-audit": { "command": "npx", "args": ["-y", "@readystack/view-in-browser-leak-audit", "--mcp"] } } }
```

Tools: `check_text` and `check_file` (free) · `check_dir` (licence). The agent gets every finding with the line number.

## Use in CI

```yaml
- name: View in Browser — Publish Leak Audit (HTML)
  run: npx -y @readystack/view-in-browser-leak-audit --dir . --ci
```

(container: `docker run --rm -v "$PWD:/work" getreadystack/view-in-browser-leak-audit --dir /work --ci`)

The folder sweep, reports and CI mode need one licence — one payment, no subscription. Set `READYSTACK_LICENSE=<key>` or run `--license <key>` once.

[Get a licence](https://getreadystack.com/api/buy/cl/polar_cl_CwvLDIxujtAKjVYNswBmnY71CVpJXNzshSaBQ2RDuKe)


<!-- view in browser leak audit -->


## Install (PyPI)

```
pip install readystack-view-in-browser-leak-audit
view-in-browser-leak-audit --help
```
