Skip to content
Lab·Code · Agent··12 min read

Next.js SEO agent.

The Next.js SEO agent crawls a site, checks forty-seven on-page signals, validates Schema.org markup, checks llms.txt and estimates AI Overviews readiness. The code is published on GitHub and runs locally with no signup.

The pipeline

How it works, step by step.

  1. 01

    Headless crawl.

    The agent launches Playwright in headless mode to retrieve the rendered HTML with JavaScript executed. This step also captures the tags injected by Next.js on the client side (metadata API, dynamic imports). Twenty to thirty pages per minute in practice.

  2. 02

    On-page checks.

    Forty-seven checks per page: presence and length of the title, presence and length of the description, canonical, hreflang, H1/H2/H3 hierarchy with no skipped levels, text-to-HTML ratio, alt text on every image, internal link markup, accidental noindex.

  3. 03

    Schema.org validation.

    All the JSON-LD tags found are parsed and validated against the Schema.org spec. The agent detects the types present (Article, Person, Organization, FAQPage, BreadcrumbList) and flags the missing required properties for each type.

  4. 04

    llms.txt check.

    Presence of the llms.txt file at the root, structure matching Jeremy Howard's proposals, presence of an llms-full.txt where relevant. It is a key signal for AI Overviews readiness.

  5. 05

    AI Overviews readiness.

    A composite score based on the presence of clear definitions at the top of the page, structured lists, FAQ schema, figures with cited sources, and chunks of one hundred to three hundred words that make sense in isolation. These signals correlate strongly with citations by ChatGPT, Perplexity and Google AI Overviews.

  6. 06

    JSON and Markdown output.

    The agent produces two artifacts: an exhaustive JSON file (for CI) and a readable Markdown report (for the commit message or the pull request). The report ranks priorities: blocking, important, cosmetic.

Key takeaways

  • Eighty percent of the SEO problems found on Next.js sites in practice are basic oversights: a missing canonical, a misconfigured hreflang, or an H1 duplicated by the template.

  • The average AI Overviews readiness score measured on a sample of one hundred French SaaS sites in 2026 is forty-two out of one hundred. The room for improvement is huge.

  • The local, free agent does ninety percent of what a four-hundred-euro-a-month Ahrefs does for this specific scope. It does not replace Ahrefs for backlinks and competitor analysis.

  • Integrated into CI on a pull request, the agent prevents the silent SEO regressions introduced by a front-end refactor.

FAQ

The questions I get asked.

  • Do I need an account to use the agent?

    No. The code runs locally with Node.js 18 or later. No API key is required for the classic SEO checks. An Anthropic key is optional, for Claude to write recommendations in natural language.

  • What is the difference with Sk:vr?

    Sk:vr is a hosted application that serves a ready-to-read report to a founder or a client. The Next.js SEO agent is a developer script, configurable, CI-ready, with no interface. Same core, two uses.

  • Is the code open source?

    Yes, under the MIT license on GitHub. Pull requests are welcome. The AI Overviews scoring logic is documented so it can be challenged or improved.

  • How many pages can be audited in a single pass?

    In practice, up to five hundred pages with a reasonable amount of RAM. Beyond that, you need to configure Playwright throttling or split the audit by sitemap section.

  • Does the agent handle multilingual sites?

    Yes, the agent follows the hreflang tags and audits each language variant separately. The checks are identical per variant, and the report then aggregates by language.

EXCELLENTBased on 10 Google reviews
See all reviews