Metadata-Version: 2.4
Name: rulestamp-firestore-rules-guard
Version: 1.0.7
Summary: Audits firestore.rules and storage.rules for public access, expired test-mode dates and missing owner checks — 13 rules, line by line, before you deploy. (bundled Node.js runtime)
Author-email: Rulestamp <support@getreadystack.com>
License: Proprietary - see LICENSE.txt
Project-URL: Homepage, https://getreadystack.com/tools/firestore-rules-guard?ref=pypi
Project-URL: Documentation, https://getreadystack.com/tools/firestore-rules-guard?ref=pypi
Project-URL: Support, https://getreadystack.com/support
Keywords: firestore,firebase,security rules,storage rules,linter,cloud firestore
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

# Firestore Rules Guard

> Runs the same checker as our npm package on a Node.js runtime that pip installs for you (`nodejs-wheel-binaries`) - no system Node.js needed. Your files are checked locally.

![Firestore Security Rules Lint - open rules and missing auth — finds the line](https://getreadystack.com/img/promo/firestore-rules-guard_demo.gif)

Audits firestore.rules and storage.rules for public access, expired test-mode dates and missing owner checks — 13 rules, line by line, before you deploy.

## Install

```
firestore-rules-guard file
```

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

## Free

- Audit the .rules file you have open and get every open-access finding with its line number, locally, with no key and no account.
- `--rules` lists every rule

## With a licence ($29 once)

- Audit every .rules file in the workspace in one pass and keep a dated Markdown evidence report you can attach to a review or a customer security questionnaire.

```
firestore-rules-guard --dir ./templates --report html --out report.html
```

A freelance Firebase developer is quoted at $120 an hour, and a manual pass over one project's rules takes about an hour, repeated every time the rules change.

## Use from an AI agent (MCP)

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

```json
{ "mcpServers": { "firestore-rules-guard": { "command": "firestore-rules-guard", "args": ["--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: Firestore Rules Guard
  run: pip install rulestamp-firestore-rules-guard && firestore-rules-guard --dir . --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_g3Qr7cMfa08KRBcujOSVMVHGnBL70yNLs0MuA0ijHo7)


<!-- firestore rules guard -->


## Install (PyPI)

```
pip install rulestamp-firestore-rules-guard
firestore-rules-guard --help
```
