npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fairbooks-automation-audit

v0.2.0

Published

Fairbooks Automation Audit: an MCP agent that audits workflow automation exports (n8n, Zapier, Make, Power Automate, Workato) for broken and risky flows: no trigger, disconnected or disabled steps, failing runs, hardcoded secrets (known formats and entrop

Readme

Fairbooks Automation Audit (fairbooks-automation-audit)

Audits workflow automation exports (n8n, Zapier, Make, Power Automate, Workato) and run history for broken and risky flows. Enabling or changing a production flow is one human click.

Part of Fairbooks Machine domain agents: one agent, one process, nothing outside its lane. Built on fairbooks-core. MIT, Node ≥ 20, runs on your machine, no account or API key needed.

What it does

Give Fairbooks Automation Audit exported flow definitions (n8n workflow JSON, a Zapier-style export with zaps[].steps[], a Make blueprint, a Power Automate / Logic Apps flow definition with triggers and actions, or a Workato recipe JSON — one recipe or an array) and, optionally, run history (flow, run_at, status, error). For each flow it reports, by severity:

  • broken: no trigger, steps not connected to any trigger (n8n and Power Automate, from connections and runAfter), disabled steps, failing runs (≥ 20% of at least 3 runs) or a failed last run, active flows that have not run in stale_days (default 30), no error workflow or error route;
  • risky: secrets typed into step settings (values are never shown; expressions and stored credentials are fine), webhooks with no authentication (a Power Automate HTTP trigger restricted to the tenant or specific users is not flagged), plain http:// calls, deletes with no filter or condition before them, steps that can move money (Stripe, PayPal, refunds, payouts…), steps that send email, chat or SMS, shell commands or custom code.

Secret detection uses three signals and reports only the rule and the location, never the value:

  • about 20 known formats (Stripe, Slack tokens and webhook URLs, Discord webhooks, AWS access key ids, GitHub, GitLab, Google API keys, OpenAI- and Anthropic-style keys, SendGrid, Twilio, Mailgun, Shopify, npm, JWTs, private key blocks, passwords in URLs, signed-URL sig=/token= parameters) → hardcoded_secret (high);
  • any value of 8+ characters in a field named like a secret (api_key, Authorization, password, client_secret …) → hardcoded_secret (high);
  • token-like strings with high Shannon entropy (default ≥ 20 characters and ≥ 4.0 bits/char; hex ≥ 32 characters and ≥ 3.0) that are not UUIDs, URLs, paths or prose → possible_secret (medium). Thresholds are set in the policy file, or "entropy": false turns this off.

Dependency map (flows_dependency_map): which stored credentials (n8n credentials, Power Automate connections, Workato accounts, Make connections, Zapier auth ids), hardcoded secrets, webhooks and hosts are shared between flows, and which flow calls another flow's n8n webhook. Equal secret values share a label (secret#1, secret#2 …) so you can see the blast radius without seeing the value. It returns a rotation plan ranked P1–P3 with reasons (shared across flows, active flows depend on it, a flow using it can move money, known format or only high entropy).

Policy file (optional, policy argument, schema policy): allow_http_hosts, fail_rate, stale_days, entropy thresholds, and ignore rules (flow, code, step, a required reason, optional until date). Suppressed findings are still listed under suppressed and in the report; an expired suppression puts the finding back with a note. Check a file with fairbooks-automation-audit validate-config policy flows-policy.json. Hosts in allow_http_hosts are not reported as plain HTTP.

Baseline: pass an earlier findings.csv as baseline and each finding is marked new or existing, and resolved findings are listed.

Flows are ranked by a risk score. It writes flow-audit.md, findings.csv (blank owner and decision columns), findings.sarif (SARIF 2.1.0 for code-scanning dashboards; each result points at the export file and names the flow and step) and, with approval, a proposal per flow plus a redacted copy of each export with secrets replaced by placeholders (in URLs only the secret part is replaced). Report and dependency-map results carry output_sha256, which the audit log records.

Install

npm install -g fairbooks-automation-audit
fairbooks-automation-audit demo        # runs on the bundled fictional sample data

As an MCP server

Claude Code

claude mcp add fairbooks-automation-audit -- npx -y [email protected] mcp --root /path/to/your/exports

Cursor / Claude Desktop / VS Code / Windsurf

{ "mcpServers": { "fairbooks-automation-audit": { "command": "npx", "args": ["-y", "[email protected]", "mcp", "--root", "/path/to/your/exports"] } } }

--root is the only folder the tools can read or write. Paths outside it are refused.

Tools

| Tool | Policy | What it does | |---|---|---| | flows_audit | allow | Findings and risk score per flow; secret values never returned | | flows_write_report | allow | Write flow-audit.md, findings.csv and findings.sarif to fairbooks-out/flows | | flows_dependency_map | allow | Shared credentials, secrets, webhooks and hosts; flow-to-flow calls; secret rotation plan; writes dependency-map.md (with a Mermaid graph) and dependency-map.csv | | flows_draft_changes | ask (Auto-eligible) | Write proposals and <export>.redacted.json copies (nothing applied) | | flows_request_flow_change | ask · one-click | After a named human approves, record an enable, disable or modify request for the flow owner | | automation_update_flow | block | Listed so agents see the refusal. Fairbooks Automation Audit never edits a platform. | | automation_run_flow | block | Listed so agents see the refusal. Fairbooks Automation Audit never runs a flow, so it never orders, sends or pays. |

Any other tool name is blocked. fairbooks_info shows the pinned model, mode, caps and every decision.

MCP prompt

flows_flow_review (arguments exports, optional history, policy, baseline) walks a host model through audit → dependency map and rotation plan → report and SARIF → drafted fixes → the one-click change requests a person approves.

Modes

  • Review (--mode review): read and report only.
  • Assist (default): the policy above. ask returns an approval_id; a person approves once with fairbooks-automation-audit approve <id> --as "Your Name".
  • Auto (--mode auto --auto <tool,...>): off by default, opt-in per action, with step/spend caps (--max-steps, --max-spend) and a kill switch (fairbooks-automation-audit kill).

flows_draft_changes can go on Auto. Enabling, disabling or changing a production flow is a production_deploy: it stays one-click even in Auto, and --auto flows_request_flow_change is refused. Editing or running flows stays blocked.

Go-live, revoking access, deleting personal data, moving money, legally binding sends and production deploys always need a person's click, in every Fairbooks pack.

CLI

fairbooks-automation-audit tools
fairbooks-automation-audit call flows_audit '{"exports":["n8n-orders.json","zapier-export.json","make-blueprint.json"],"history":"run-history.csv"}'
fairbooks-automation-audit eval          # private evals on the bundled fixtures

Every call is written to .fairbooks/audit.jsonl (hash-chained JSONL; arguments stored as a hash). Read it with fairbooks-audit-evidence or npx -y -p fairbooks-core fairbooks-verify-log .fairbooks/audit.jsonl.

What it is not

  • A static review of exported definitions, not a test run. It does not call the platform's API or execute any step.
  • Pattern-based: platform export formats vary, so treat a clean result as "nothing found", not "safe". Power Automate support reads the flow definition (properties.definition or a bare definition); Workato support reads the recipe code tree and its config accounts. Neither reads solution packages (.zip) or platform-side settings such as connection owners.
  • Secret detection can miss secrets in unusual formats and can flag random-looking ids as possible_secret; suppress those with a reason in the policy file. It cannot tell whether a found secret is still valid.
  • Flow-to-flow calls are found for n8n webhook paths only; calls through other platforms' webhook URLs are listed as shared hosts.
  • It never enables, edits or runs a flow, and never handles real payment details.
  • Not fully autonomous: anything risky waits for a named person.

Data

Everything runs locally on files you choose. No network calls, no telemetry. The bundled fixtures are fictional.

License

MIT © 2026 Kurt Francisco. Source: https://github.com/fpavia111-creator/fairbooks-agents/tree/master/packages/fairbooks-automation-audit