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

seo-lint-next

v0.2.2

Published

Build-time, App Router-aware SEO linter for Next.js.

Downloads

677

Readme

seo-lint-next catches the SEO bugs that usually escape to production: missing titles, broken canonicals, unsafe metadataBase, bad OG tags, accidental noindex, sitemap gaps, invalid JSON-LD, heading skips, weak image alt text, broken locale metadata, bad App Router patterns, and crawl-blocking config.

Install

npm install --save-dev seo-lint-next

Requires Node.js 18.18+ and works with ESLint 8.57+ or 9.

ESLint

// eslint.config.mjs
import seoLint from 'seo-lint-next/eslint'

export default [...seoLint.configs.recommended]

CLI

npx seo-lint-next
npx seo-lint-next --dir src/app
npx seo-lint-next --format json
npx seo-lint-next --strict

Rule Set

| Rule | Default | Catches | | ---------------------------------------- | ------: | ---------------------------------------------------------------- | | no-missing-title | error | Missing, empty, duplicate, or weak dynamic titles | | no-missing-metadata-base | error | Missing, localhost, or non-HTTPS root metadataBase | | no-missing-description | warn | Missing, duplicate, too short, or too long descriptions | | no-missing-canonical | error | Missing canonicals and hardcoded dynamic-route canonicals | | no-missing-og-tags | warn | Missing Open Graph/Twitter tags | | no-broken-heading-hierarchy | warn | Missing/multiple H1s and skipped heading levels | | no-img-missing-alt | warn | Raw <img>, missing/generic alt text, layout-shifting images | | no-accidental-noindex | error | Public noindex, blanket robots blocks, risky X-Robots headers | | no-missing-sitemap | warn | Missing sitemap, relative URLs, missing robots sitemap reference | | no-invalid-json-ld | error | Invalid JSON-LD syntax, bad context, missing schema fields | | no-missing-lang-attribute | error | Missing or invalid <html lang> in App Router layouts | | no-missing-viewport | error | Broken viewport overrides and disabled user zoom | | no-use-client-on-page | warn | Top-level client pages and ignored metadata exports | | no-missing-hreflang | warn | Locale routes without alternates.languages | | no-generic-anchor-text | warn | Empty or generic link text | | no-missing-404-page | warn | Missing or weak app/not-found.tsx recovery pages | | no-missing-og-image-dimensions | warn | OG images without width, height, or alt text | | no-blocking-next-static | error | Robots rules blocking /_next/ rendering assets | | no-missing-breadcrumb-schema | warn | Deep pages without BreadcrumbList JSON-LD | | no-title-in-pages-head | error | next/head metadata patterns inside app/ | | no-dynamic-import-ssr-false-on-content | warn | dynamic(..., { ssr: false }) around likely content | | no-missing-next-font | warn | External Google Fonts instead of next/font | | no-redirect-chain-in-next-config | warn | Redirect chains and temporary redirects in next.config | | no-missing-article-dates | warn | Article pages missing freshness metadata | | no-missing-error-boundary-metadata | warn | Missing error boundaries or weak recovery links |

Configuration

import seoLint from 'seo-lint-next/eslint'

export default [
  ...seoLint.configs.recommended,
  {
    rules: {
      'seo-lint-next/no-missing-description': ['warn', { descriptionLength: { min: 120, max: 160 } }],
      'seo-lint-next/no-accidental-noindex': [
        'error',
        { privateRoutes: ['/admin', '/api', '/auth', '/private'] },
      ],
    },
  },
]

CI

- run: npm ci
- run: npm run check

The package has no production bundle impact. It statically inspects App Router source files, JSX, metadata exports, generateMetadata() returns, next.config.*, app/robots.ts, public/robots.txt, and app/sitemap.ts.