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 🙏

© 2025 – Pkg Stats / Ryan Hefner

seo-audit-toolkit

v1.1.0

Published

Automated SEO audits with Lighthouse + AI recommendations. Performance scores, meta tags, schema validation, and actionable fixes.

Readme

seo-audit-toolkit 🔍

Automated SEO audits in 60 seconds. Lighthouse + AI = Actionable fixes.

npm version License: MIT

Complete SEO analysis: Lighthouse scores, Core Web Vitals, meta tags, schema validation, and AI-powered recommendations.

🚀 Quick Start

# No install needed
npx seo-audit https://yoursite.com

# Or install globally
npm install -g seo-audit-toolkit
seo-audit https://yoursite.com

💡 What You Get

📊 Lighthouse Scores

  • Performance (0-100)
  • SEO (0-100)
  • Accessibility (0-100)
  • Best Practices (0-100)

⚡ Core Web Vitals

  • LCP (Largest Contentful Paint)
  • CLS (Cumulative Layout Shift)
  • FCP (First Contentful Paint)
  • TTI (Time to Interactive)

🏷️ Meta Tags Analysis

  • Title (length, presence)
  • Description (length, presence)
  • Canonical URL
  • Open Graph tags
  • Twitter Cards

📝 Content Structure

  • Heading hierarchy (H1-H6)
  • H1 optimization
  • Internal/external links
  • Image alt tags

🔖 Schema Markup

  • JSON-LD detection
  • Schema types validation

🤖 AI Recommendations

  • Prioritized action items (HIGH/MEDIUM/LOW)
  • Specific fixes for each issue
  • Search query opportunities
  • Content optimization suggestions

✨ Features

Lighthouse Integration

  • Automated performance auditing
  • Core Web Vitals measurement
  • SEO best practices validation

Deep HTML Analysis

  • Meta tag extraction
  • Schema.org parsing
  • Open Graph validation
  • Image optimization checks

AI-Powered Insights

  • OpenAI GPT-5-mini or Google Gemini 2.0 Flash
  • Context-aware recommendations with savings estimates
  • Prioritized action items (HIGH/MEDIUM/LOW)
  • Failed audit analysis with specific fixes

Multiple Output Formats

  • Beautiful CLI report
  • JSON export for automation
  • Auto-saved reports

📖 Usage

Basic Audit

seo-audit https://example.com

JSON Output

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

With AI Recommendations

# Option 1: OpenAI (default: gpt-5-mini)
export OPENAI_API_KEY='your-key-here'
export AI_PROVIDER='openai'
seo-audit https://example.com

# Option 2: Google Gemini
export GEMINI_API_KEY='your-key-here'
seo-audit https://example.com

🤖 AI Setup (Optional)

OpenAI:

  1. Get API key: https://platform.openai.com/api-keys
  2. export OPENAI_API_KEY='sk-...'
  3. export AI_PROVIDER='openai'

Google Gemini:

  1. Get free API key: https://ai.google.dev
  2. export GEMINI_API_KEY='your-key'

Without AI: Still get Lighthouse + HTML analysis With AI: Get 8-10 prioritized, actionable recommendations with savings estimates

📊 Example Report

══════════════════════════════════════════════════════════════════════
                    SEO AUDIT REPORT
══════════════════════════════════════════════════════════════════════

📊 LIGHTHOUSE SCORES

┌────────────────┬─────────┬──────────┐
│ Category       │ Score   │ Status   │
├────────────────┼─────────┼──────────┤
│ Performance    │ 100/100 │ ✅ Good  │
│ SEO            │ 80/100  │ ⚠️  Fair │
│ Accessibility  │ 100/100 │ ✅ Good  │
│ Best Practices │ 93/100  │ ✅ Good  │
└────────────────┴─────────┴──────────┘

⚡ CORE WEB VITALS

  LCP: 852ms (Good: <2.5s)
  CLS: 0 (Good: <0.1)
  FCP: 852ms (Good: <1.8s)

🏷️  META TAGS

  Title: ⚠️  14 chars (optimal: 50-60)
  Description: ❌ Missing
  Canonical: ❌ Missing

🤖 AI RECOMMENDATIONS

  1. [HIGH] Missing Meta Description
     → Write compelling 150-160 char description with target keywords

  2. [HIGH] Missing Open Graph Tags
     → Implement OG tags for social media sharing

  3. [MED] Add Canonical Tag
     → Prevent duplicate content issues

🎯 Use Cases

For Developers

  • Pre-launch SEO checks
  • CI/CD integration
  • Performance monitoring

For Marketers

  • Content optimization
  • Competitor analysis
  • Quick site audits

For Agencies

  • Client reports
  • Automated monitoring
  • Batch audits

⚙️ Technical Details

Dependencies:

  • Lighthouse (Google's official tool)
  • Chrome Launcher (headless Chrome)
  • Cheerio (HTML parsing)
  • Google Gemini (AI analysis)

What Gets Analyzed:

  • Performance metrics
  • SEO fundamentals
  • Accessibility standards
  • Meta tag completeness
  • Schema markup validation
  • Heading structure
  • Image optimization
  • Link analysis

No Data Sent: All analysis runs locally except optional AI (Gemini API)

🛡️ Privacy

  • Lighthouse runs in local headless Chrome
  • HTML analysis is client-side
  • AI recommendations use Gemini API (optional)
  • No data stored or transmitted (except Gemini API calls)
  • Reports saved locally only

📄 Output Files

Auto-saves JSON reports:

seo-audit-example.com-1234567890.json

Contains:

  • Complete Lighthouse data
  • HTML analysis results
  • AI recommendations
  • Timestamp

🔥 Pro Tips

Monthly Audits

# Track SEO progress over time
seo-audit https://yoursite.com

CI/CD Integration

# Fail build if SEO score < 80
seo-audit https://staging.yoursite.com --json | \
  jq '.lighthouse.scores.seo < 80' && exit 1

Batch Audits

# Audit multiple pages
for url in page1 page2 page3; do
  seo-audit https://site.com/$url
done

👤 Author

Daniel Shashko

📄 License

MIT © Daniel Shashko


🔍 Stop Guessing. Start Optimizing.

npx seo-audit https://yoursite.com