Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” SEO Audit CLI

Fast, beautiful, AI-powered SEO audits from the command line. Scan any website and get an actionable score, specific fixes generated by Claude, and a shareable HTML report β€” all from one command.

Node.js License npm AI


What's new in v2.0

  • πŸ€– AI-powered fix recommendations β€” Claude reads your page content + the issues found and generates concrete, page-specific fixes. Not "write a better title" β€” the actual suggested title for your page.
  • πŸ“„ Self-contained HTML report β€” share with clients, attach to emails, or use as your sales asset. One file, no external dependencies, beautifully designed.
  • --open flag β€” auto-opens the HTML report in your default browser after generation.

What it checks

Category Checks
Meta Title tag (length, exists), Meta description (length, exists)
Content H1 tag (single, exists), H2 structure, Image alt text, Internal linking
Technical HTTPS/SSL, Mobile viewport, Canonical URL, Schema markup
Social Open Graph tags (title, description, image)
Performance Page load time

Install

npm install -g @softangeles/seo-audit

Usage

Basic scan

seo-audit https://example.com

Verbose (show all check details + AI fixes when key is set)

seo-audit https://example.com --verbose

Generate a shareable HTML report

seo-audit https://example.com --html report.html --open

The --open flag launches the report in your default browser. The HTML file is fully self-contained β€” no external CSS or scripts β€” so you can email it, host it anywhere, or save it as a client artifact.

AI-powered fix recommendations

Set an Anthropic API key (free credits available at anthropic.com):

export ANTHROPIC_API_KEY=sk-ant-...
seo-audit https://example.com --ai

You get specific fixes per issue. Example:

πŸ€– AI-Powered Fixes:
   [HIGH] Meta Description
         Current page is missing it. Suggested: "Custom CRM, e-commerce stores,
         and AI workflows for small businesses in Los Angeles. Built in days,
         not weeks. Free consultation available." (158 chars, hits primary
         keywords.)

   [MED] Image Alt Text
         3 of 8 images missing alt text. Based on context, add: "Custom CRM
         dashboard mockup" to the hero image and "Client testimonial portrait β€”
         John Doe, ABC Corp" to the testimonial photos.

Cost: one Claude Haiku call per audit (~$0.001). Use --no-ai to disable even when the key is set. AI is auto-enabled when you use --html or --verbose.

JSON output (for scripts / CI)

seo-audit https://example.com --json

Use in CI/CD

SCORE=$(seo-audit https://mysite.com --json | jq '.score')
if [ "$SCORE" -lt 70 ]; then
  echo "SEO score too low: $SCORE/100"
  exit 1
fi

Use as a library

const { auditUrl, generateFixes, generateHtmlReport } = require('@softangeles/seo-audit');

const result = await auditUrl('https://example.com');
const fixes = await generateFixes(result); // requires ANTHROPIC_API_KEY
const html = generateHtmlReport(result, fixes);

require('fs').writeFileSync('report.html', html);

Example terminal output

  ╔══════════════════════════════════════╗
  β•‘    πŸ” SEO Audit Tool by SoftAngeles   β•‘
  β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

  URL: https://example.com

  🟑 SEO Score: 62/100 β€” Good
  ⏱  Load time: 847ms

  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘

  β”Œβ”€ Meta
  β”‚  βœ“ Title Tag           10/10
  β”‚  ⚠ Meta Description    5/10
  β”‚     Too short (45 chars) β€” aim for 150-160
  β”‚
  β”Œβ”€ Content
  β”‚  βœ“ H1 Heading          10/10
  β”‚  βœ“ H2 Headings         5/5
  β”‚  βœ— Image Alt Text      3/10
  β”‚     7/10 images missing alt text
  β”‚
  β”Œβ”€ Technical
  β”‚  βœ“ HTTPS               10/10
  β”‚  βœ“ Mobile Viewport     10/10
  β”‚  ⚠ Canonical URL       0/5
  β”‚  ⚠ Schema Markup       0/5

  Summary
  βœ“ 6 passed  ⚠ 3 warnings  βœ— 1 failed

  πŸ€– AI-Powered Fixes:
     [HIGH] Image Alt Text
           Hero image needs alt="Custom software development team in LA".
           Testimonial photos should describe person + role.

     [MED] Meta Description
           Add: "We build custom CRMs, e-commerce stores, and AI workflows
           for LA small businesses. Free consultation." (149 chars.)

  ─────────────────────────────────────────
  Want help improving your SEO score?
  β†’ Free consultation: https://softangeles.com/book

Contributing

Pull requests welcome. Good first issues:

  • Add new checks (hreflang, robots.txt, sitemap validation)
  • Add additional output formats (Markdown, PDF)
  • Improve scoring weights
  • Add tests
  • Add multi-page crawl mode

About

Built by SoftAngeles β€” a custom-software shop in Los Angeles, CA.

We build custom CRMs, e-commerce stores, and AI workflows for small businesses across LA.

Get a free website audit β†’

License

MIT Β© SoftAngeles

About

πŸ” Fast, beautiful SEO audit tool for the command line. Scan any website and get an actionable score with 12 checks across meta tags, content, performance, security, and social.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages