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

seolint-scanner

v0.1.2

Published

The open-source SEO scanner behind seolint.dev. Pure function: URL or HTML → structured issues. Zero-key, fully local, no network calls beyond fetching the target page.

Downloads

211

Readme

seolint-scanner

npm version License: MIT

Pure-function SEO scanner. URL in, structured issues out. No server, no API key, no database.

The scanner that powers the rest of the SEOLint ecosystem — the hosted agent at seolint.dev →, the MCP server, the CLI. Usable directly in your own scripts too.

40+ checks across SEO, accessibility, performance hints, GEO, and AEO. Same engine the hosted service uses.

Install

npm install seolint-scanner

Quick start

import { runScanner } from "seolint-scanner"

const result = await runScanner("https://your-site.com")

console.log(result.issues)
// [
//   {
//     id: "missing-meta-description",
//     severity: "warning",
//     title: "Page is missing a meta description",
//     description: "...",
//     fix: "Add a <meta name=\"description\"> tag...",
//     ...
//   },
//   ...
// ]

Returns a ScanResult with issues, performanceScore, lcp, cls, and the detected framework. Types are exported from the package.

Optional AI fix prompts

Pass an AiHandler to get agent-ready fix prompts (the kind you paste into Claude Code / Cursor / Windsurf) alongside each issue. Bring your own key — the scanner never touches it.

import Anthropic from "@anthropic-ai/sdk"
import { runScanner, type AiHandler } from "seolint-scanner"

const client = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY })

const ai: AiHandler = {
  async call({ system, messages, model, maxTokens }) {
    const res = await client.messages.create({
      model: model ?? "claude-haiku-4-5-20251001",
      max_tokens: maxTokens ?? 3500,
      system,
      messages,
    })
    const block = res.content[0]
    return block && block.type === "text" ? block.text : ""
  },
}

const result = await runScanner("https://your-site.com", { ai })
// Now every critical/warning issue has an agent-optimal `fix` + page-specific `why`.

The AiHandler interface is provider-agnostic — use OpenAI, a local model, or a mock in tests. The scanner only knows how to assemble prompts and parse responses.

Options

runScanner(url, {
  prefetchedHtml?: string          // skip the internal fetch
  skipSiteWideChecks?: boolean     // skip robots.txt / sitemap / llms.txt / feed
  gsc?: GscContext | null | Promise<GscContext | null>  // anchor AI "why" to real traffic
  ai?: AiHandler | null            // opt into AI fix prompts
})

What it checks

Rules live as standalone files in src/checks/. Adding a new rule means dropping a file in the right subfolder, wiring it into src/checks/<category>/index.ts, and adding a test.

  • src/checks/seo/ — meta tags, titles, headings, canonicals, structured data (JSON-LD), Open Graph, social tags, i18n (hreflang), link quality, image attributes.
  • src/checks/accessibility/ — alt text, ARIA hints, contrast tells.
  • src/checks/performance/ — DOM size, resource counts, render-blocking hints. Core Web Vitals pulled via Google PageSpeed Insights API when GOOGLE_PAGESPEED_API_KEY is set.
  • src/checks/geo/ — robots.txt, sitemap health, llms.txt, skills.md, feed presence.
  • src/checks/aeo/ — answer-engine optimisation: thin content, E-E-A-T signals, question headings, FAQ suggestions.

See CONTRIBUTING.md for the rule-file format and PR flow.

When to use the hosted agent instead

The scanner is great for CI, one-off audits, and fully local dev loops. But it doesn't:

  • Remember anything between runs
  • Grade your fixes against Google Search Console
  • Open PRs with the fixes
  • Learn patterns across sites

If you want those, the hosted agent at seolint.dev → is the same scanner with a memory + grading + PR layer on top. 7-day free trial, $99/month, runs on your own Claude key.

License

MIT. GitHub repo →