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

@seolful/nextjs-connector

v4.2.0

Published

Seolful metadata injection helpers for Next.js — reads seolful.overrides.json (published via the Seolful GitHub App) into generateMetadata, image alt text, structured data, and H1 tags. No API routes, no auth, no site-side crawling — auditing happens exte

Downloads

1,888

Readme

@seolful/nextjs-connector

Runtime helpers that apply Seolful's published SEO fixes to a Next.js site. This package does not crawl your site and does not write anything at request time — both of those happen elsewhere:

  • Auditing — Seolful crawls your site's public URLs directly from its own servers, the same way a search engine would. Nothing runs on your site to make this work.
  • Fixes — when you publish a fix from the Seolful dashboard, it opens a pull request against your repo that edits seolful.overrides.json. You review and merge it like any other PR; the fix goes live on your next deploy.

This package's only job is what happens after that: reading seolful.overrides.json (bundled into your deployment because it's a committed file, not written at runtime — required on Vercel's read-only filesystem) and applying it to what actually gets rendered.

Install

npx @seolful/nextjs-connector init

Run once, from your project root. This:

  • creates seolful.overrides.json (empty {}) if it doesn't exist yet — commit this file, it's what the Seolful GitHub App opens pull requests against
  • tries to auto-wire withSeolfulMetadata into your root layout's metadata
  • scans app/ for other pages with no metadata setup at all (no generateMetadata, no static metadata export) and wires those up too, deriving each page's route straight from its own file location
  • writes seolful.wiring.json, a manifest of exactly which pages it couldn't auto-wire and why — commit this file too

A page that already has its own generateMetadata (or a re-exported one), a client component, or a route this can't confidently pattern-match (catch-all segments, more than one dynamic segment) is left untouched — init prints exactly which pages fall into that bucket so you know what needs the manual setup below, rather than finding out later when a published fix doesn't show up. Once your GitHub repo is connected from Site Settings, Seolful reads seolful.wiring.json to flag those same pages on your dashboard immediately, instead of only after a published fix fails to appear live.

Commit the result and deploy. If you add new pages later, re-run npx @seolful/nextjs-connector init to wire those up too and refresh the manifest.

Update

npm install @seolful/nextjs-connector@latest

What it exports

| Export | Applies | | --- | --- | | withSeolfulMetadata(pathname, baseMetadata) | Title / meta description overrides, merged into a page's generateMetadata result | | <SeolfulSchema pathname="..." /> | Structured data (JSON-LD) fixes, rendered as <script type="application/ld+json"> | | <SeolfulH1 pathname="..." isSecondary> | Demotes a duplicate H1 to <h2> when a "Duplicate H1 Tag" fix has been published | | <SeolfulImage seolfulAlts={...} src={...} alt={...} /> | Swaps in the published alt text for a specific image, by src |

Every helper reads the same seolful.overrides.json, keyed by URL path — none of them talk to Seolful's servers, so there's no API call, no auth, and no added latency beyond a local file read.

Example

// app/products/[slug]/page.tsx
import { withSeolfulMetadata, SeolfulSchema, SeolfulH1 } from '@seolful/nextjs-connector'

export async function generateMetadata({ params }) {
  const { slug } = await params
  return withSeolfulMetadata(`/products/${slug}`, {
    title: 'Default title',
    description: 'Default description',
  })
}

export default async function ProductPage({ params }) {
  const { slug } = await params
  return (
    <>
      <SeolfulH1 pathname={`/products/${slug}`} isSecondary>Related products</SeolfulH1>
      <SeolfulSchema pathname={`/products/${slug}`} />
    </>
  )
}

SeolfulImage and SeolfulH1 are opt-in — you have to actually use them in place of next/image and a raw <h1> for their fixes to take effect. withSeolfulMetadata and SeolfulSchema don't require any markup changes beyond wiring them in once, per route.