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

open-local-audit

v0.20.0

Published

Open-source website and local presence auditor for small businesses.

Readme

Open Local Audit

Open Local Audit is an open-source website and local presence auditor for small businesses. It turns public website signals into practical reports for outreach, customer education, and implementation work.

Current stage

Published CLI. The project can run a single URL audit, an opt-in Playwright-rendered audit with screenshot evidence, optional Lighthouse category scoring, branded customer-facing reports, public contact readiness extraction, a plain-text batch URL list, or a profile-aware CSV batch file, optionally check same-origin links, and produce JSON, Markdown, HTML, PDF, or all standard report formats. Batch runs can use controlled concurrency, write per-site reports, add aggregate insight sections and contact/outreach rollups to the top-level index, and optionally export prospect CSV data for triage. Discovery runs can control Google Places result counts, cap website audits, write summary JSON, merge local review CSVs, explain opportunity scores, enrich outreach and public-contact columns, select a preferred manual outreach channel, and report exact duplicate lead groups plus advisory fuzzy duplicate review candidates. CRM-ready CSV exports can be validated locally before import.

Business purpose

Open Local Audit produces evidence-backed mini audits for local businesses. The tool should be useful as open-source software while keeping paid value in implementation, redesign, maintenance, and custom reporting.

Product principles

  • Evidence first: every recommendation should point to a concrete finding.
  • Ethical scanning: only scan user-provided public URLs and avoid Google Maps scraping.
  • Small-business language: reports should be readable by non-technical owners.
  • Developer quality: deterministic checks, clear CLI output, tests, and release notes.
  • Commercial clarity: the open-source scanner is useful; paid work is execution and support.

Proposed first stack

  • Runtime: Node.js with TypeScript.
  • CLI framework: commander or cac.
  • Validation: zod.
  • HTML parsing: cheerio.
  • Browser rendering: Playwright where static parsing is not enough.
  • Storage: no persistence by default; optional JSON/Markdown outputs.
  • Test runner: Vitest.
  • Package manager: npm unless implementation chooses pnpm before first commit.

Documents

Local development

Install dependencies and run the checks:

npm install
npm test
npm run lint
npm run build
npm run release-check

Run the CLI locally:

npm start -- https://example.com --format markdown

After building, run the compiled CLI:

node dist/cli.js https://example.com --format json --pretty

Run the published package:

npx open-local-audit https://example.com --format markdown

Run with an industry profile:

open-local-audit https://example.com --profile dental --format markdown

Supported profiles are generic, dental, beauty, restaurant, contractor, lawyer, clinic, gym, hotel, and auto-service.

Render the page before auditing when static HTML is not enough:

open-local-audit https://example.com --render --format markdown

Capture a rendered homepage screenshot and add it as visual evidence:

open-local-audit https://example.com --screenshot --format all --out-dir reports

--render loads Playwright from the current project. Install it alongside the CLI when needed:

npm install -D playwright

Run Lighthouse category scoring:

open-local-audit https://example.com --lighthouse --format html --out report.html

--lighthouse runs Chrome through Lighthouse and adds performance, accessibility, best-practices, and SEO category scores to the report. It requires a local Chrome or Chromium runtime that Lighthouse can launch.

Write standard report formats to a directory:

open-local-audit https://example.com --format all --out-dir reports

Write an HTML report:

open-local-audit https://example.com --format html --out report.html

Write a branded PDF report:

open-local-audit https://example.com --format pdf --out report.pdf

Apply report branding:

open-local-audit https://example.com --brand-config brand.json --format pdf --out report.pdf

Minimal brand.json:

{
  "name": "Example Audit Studio",
  "primaryColor": "#123456",
  "accentColor": "#2f7d5f",
  "footerText": "Prepared for outreach review",
  "contact": "[email protected]"
}

Brand colors must use six-digit hex values. Branding applies to Markdown, HTML, and PDF reports.

Run a batch audit from a text file:

open-local-audit --input sites.txt --format all --out-dir reports

Run a labeled CSV batch audit:

open-local-audit --input sites.csv --format all --out-dir reports

Run a profile-aware batch audit and write a prospect CSV export:

open-local-audit --input sites.csv --profile dental --export-csv prospects.csv --format all --out-dir reports

Run a focused batch triage index:

open-local-audit --input sites.csv --format all --out-dir reports --segment dental --sort score-asc --top 25

Run a controlled parallel batch audit:

open-local-audit --input sites.csv --format all --out-dir reports --concurrency 3

Capture screenshots during batch audits:

open-local-audit --input sites.csv --screenshot --format all --out-dir reports

Batch triage supports --segment <segment>, --min-score <score>, --top <count>, --sort score-asc|severity-desc, and --concurrency <count>. Batch runs can also write --export-csv <path> for prospect triage. Batch index reports include aggregate average score, profile breakdown, segment breakdown, frequent finding sections, contact rollups, and advisory outreach channel rollups. Batch CSV exports include contact confidence, preferred contact channel, and contactability reason when reports were audited successfully. Use --export-preset crm with --export-csv to write a CRM-ready local import CSV instead of the standard operator CSV.

Supported CSV columns:

url,label,segment,profile
example.com,Example Clinic,dental,dental
https://example.org/path,Example Salon,beauty,beauty

Manual CSV lead discovery:

open-local-audit discover --input places.csv --provider manual-csv --profile dental --out-dir reports/dental --export-csv leads.csv

The manual-csv provider reads an operator-prepared CSV, resolves supplied website URLs, audits website-present rows through the existing batch pipeline, and writes leads.csv with hasWebsite, websiteUrl, priority, and nextAction. Use --dry-run to create the prospect CSV without auditing websites.

Google Places lead discovery:

GOOGLE_MAPS_API_KEY=your-key open-local-audit discover "guzellik salonu Umraniye" --provider google-places --profile beauty --out-dir reports/umraniye-beauty --export-csv leads.csv

Control discovery cost and audit volume:

GOOGLE_MAPS_API_KEY=your-key open-local-audit discover "dis klinigi Kadikoy" --provider google-places --limit 20 --max-audits 5 --summary-json discovery-summary.json --out-dir reports/kadikoy-dental --export-csv leads.csv

Skip previously reviewed leads and keep only stronger opportunities:

open-local-audit discover --input places.csv --provider manual-csv --suppression-list reviewed-leads.csv --min-opportunity-score 90 --dry-run --export-csv leads.csv

Maintain a review queue and duplicate review report across reruns:

open-local-audit discover --input places.csv --provider manual-csv --review-csv review.csv --duplicates-json duplicates.json --dry-run --export-csv leads.csv

Write a CRM-ready local import CSV:

open-local-audit discover --input places.csv --provider manual-csv --dry-run --export-csv crm-leads.csv --export-preset crm

Validate a CRM-ready local import CSV:

open-local-audit validate-export --input crm-leads.csv --preset crm
open-local-audit validate-export --input crm-leads.csv --preset crm --format json

validate-export checks the local CSV shape before a manual import. It reports missing CRM columns, missing companyName, missing website, missing leadKey, duplicate leadKey values, low or empty contact confidence, and rows that still need manual contact review. Markdown output is the default; JSON is available for automation. Any issue returns exit code 1, while a clean file returns exit code 0.

The google-places provider is opt-in and requires GOOGLE_MAPS_API_KEY. It uses the official Places Text Search API and requests only places.id, places.displayName, and places.websiteUri. It does not scrape Google Maps, collect reviews/photos/ratings, send outreach, or store raw Places responses. Google Maps Platform billing and quota limits apply to API use, and the CLI prints a billing warning when this provider is selected.

Discovery CSV exports include leadKey, opportunityScore, opportunityReasons, pitchAngle, recommendedOffer, estimatedNeed, outreachPriorityReason, website-derived public contact columns, manual outreach handoff columns, and review columns for local triage. Contact columns are populated only from audited public website HTML and include publicEmail, publicPhone, whatsappUrl, contactPageUrl, socialProfiles, contactConfidence, and contactSource. Handoff columns include preferredContactChannel, outreachAction, and contactabilityReason; they are advisory only and do not send outreach. Duplicate review JSON includes exact duplicateGroups and advisory fuzzyDuplicateGroups with confidence and matching reasons for local operator review. Fuzzy duplicate candidates do not auto-suppress leads, change review status, send outreach, or sync to a CRM. The CRM export preset writes companyName, website, segment, profile, priority, score, opportunityScore, topFinding, contactConfidence, preferredContactChannel, contactabilityReason, publicEmail, publicPhone, contactPageUrl, source, leadKey, and reportPath; it is a local import file only and does not call CRM APIs. A suppression list can reuse a prior discovery CSV or a smaller CSV with leadKey, sourceId, websiteUrl, or label plus optional reviewStatus, reviewReason, and lastReviewedAt columns. Rows marked rejected, contacted, not-fit, do-not-contact, or suppressed are skipped before audits run. --review-csv preserves prior operator decisions and adds new leads as pending. Spreadsheet formula-like cell values are neutralized before export, so values such as phone numbers starting with + may be prefixed for spreadsheet safety.

See Google Maps API key setup for local environment setup.

Check same-origin links and fail CI when high-severity issues are found:

open-local-audit https://example.com --check-links --max-pages 10 --fail-on high --format all --out-dir reports

First implementation milestone

The first implementation milestone is a CLI that accepts one URL and outputs:

  • JSON report.
  • Markdown report.
  • HTML report.
  • PDF report.
  • Executive Summary section in customer-facing reports.
  • Contact Readiness section in customer-facing reports.
  • Optional report branding with --brand-config.
  • Combined JSON, Markdown, and HTML report output with --format all --out-dir.
  • Batch input files with per-site report folders.
  • CSV batch input with optional labels and segments.
  • Aggregate batch index reports for prospect triage.
  • Batch index filtering, sorting, and top-N triage controls.
  • Controlled parallel batch audits with --concurrency.
  • Batch index insights for average score, profile breakdown, segment breakdown, and frequent findings.
  • Batch contact and outreach rollups for audited public website contact readiness.
  • CRM-ready local CSV export preset for batch and discovery exports.
  • Local CRM export validation with Markdown and JSON issue reports.
  • Industry profiles for generic, dental, beauty, restaurant, contractor, lawyer, clinic, gym, hotel, and auto-service audits.
  • Profile-specific findings for dental, beauty, restaurant, and contractor conversion/trust signals.
  • Prospect CSV export with profile, score, top finding, contact handoff, report path, and error columns.
  • Discovery CSV contact enrichment from audited public website HTML.
  • Discovery CSV outreach handoff fields for manual next-channel selection.
  • Advisory fuzzy duplicate lead review candidates for discovery reruns.
  • Duplicate review output remains local operator guidance and does not auto-suppress, send outreach, or sync to CRM systems.
  • Optional rendered DOM audits with --render.
  • Optional rendered screenshot evidence with --screenshot.
  • Optional Lighthouse category scoring with --lighthouse.
  • Score summary.
  • Evidence table.
  • Optional same-origin link checks.
  • Terminal summary when reports are written to files.
  • CI-friendly exit codes with --fail-on.
  • Clear owner-readable recommendations.
  • Structured-data quality, address, opening-hours, service-location, CTA, and placeholder-copy checks.
  • Trust and conversion checks for current date signals, review cues, service detail depth, brand icons, and placeholder social links.

Example target command:

open-local-audit https://example.com --format markdown --out report.md

Example report artifacts are available under examples/reports.

Known limits

  • --render requires Playwright in the calling project and a working browser runtime.
  • --screenshot uses the rendered audit path, requires --out-dir, and also requires Playwright.
  • --lighthouse requires a local Chrome or Chromium runtime that Lighthouse can launch.
  • --format pdf is supported for single URL audits and requires --out or --out-dir.
  • --brand-config reads local JSON only; it does not fetch remote assets or upload report data.
  • Batch triage options apply to the aggregate batch index, not individual per-site report contents.
  • Batch contact and outreach rollups are advisory local triage metadata; they do not send outreach or sync to a CRM.
  • --export-preset crm changes CSV columns only; it does not create, update, or sync CRM records.
  • validate-export checks local CSV files only; it does not create, update, or sync CRM records.
  • --export-csv is supported for batch audits and discovery exports.
  • discover --provider google-places requires GOOGLE_MAPS_API_KEY and may incur Google Maps Platform billing.
  • --limit caps Google Places candidates at 50; it does not paginate beyond one Text Search request.
  • --max-audits limits website audits only; all discovered candidates still appear in leads.csv.
  • --suppression-list uses exact lead identity matching; source IDs are preferred, then normalized website URLs, then normalized labels.
  • --review-csv is local operator state only; it does not send outreach or sync to a CRM.
  • --duplicates-json reports exact duplicate lead groups and advisory fuzzy duplicate candidates for manual review; it does not auto-suppress rows or update review decisions.
  • Batch input requires --out-dir and cannot be combined with a positional URL.
  • Industry profiles are deterministic vertical heuristics, not a replacement for a human review of each business model.
  • Higher --concurrency values can increase network load against audited sites; use conservative values for prospect batches.
  • Rule checks are deterministic heuristics, so they can miss or over-flag site-specific markup.

GitHub and npm release intent

The project should be prepared for:

  • Public GitHub repository.
  • Clear README and examples.
  • MIT license, unless maintainers choose a different license before the first public release.
  • GitHub Actions for lint, tests, build, and release checks.
  • npm package after the CLI has real tests and example reports.

Release work should follow the checklist in docs/release/release-readiness.md.