
NextSEO is the popular open-source next-seo npm package by Gary Meehan that adds SEO markup to Next.js sites. Version 7 focuses on typed JSON-LD structured data components for the App Router. Page titles and meta tags now come from the Next.js Metadata API. Pages Router projects use its next-seo/pages helpers.
Last updated: November 2026.
This hub page answers what developers search for most. How do you install the next-seo npm package? Does it work with the App Router in 2026? And how does it compare with the built-in Next.js Metadata API and Power-SEO, the open-source toolkit our team builds? For meta tags only, read our Power-SEO Meta vs Next-SEO comparison. For structured data in depth, see our next-seo JSON-LD guide.
Table of Contents
Key Takeaways
What Is NextSEO (next-seo)?
How Do You Install the next-seo npm Package?
How Do You Use NextSEO in 2026?
Does next-seo Work with the App Router and Next.js 15 and 16?
Which JSON-LD Components Does next-seo Include?
NextSEO vs Next.js Metadata API vs Power-SEO
Power-SEO: A Modular next-seo Alternative for Next.js
When Should You Keep next-seo, and When Should You Switch?
How Do You Migrate from next-seo to Power-SEO?
FAQs About NextSEO
Sources
Final Thoughts on NextSEO
Key Takeaways
next-seo is actively maintained. next-seo 7.3.0 shipped on July 29, 2026. The GitHub repository has about 8.5k stars, and npm logged about 611,000 downloads in the week of November 7 to 13, 2026.
Version 7 changed the API. The old meta tag components are gone from the main import. App Router apps use Next.js generateMetadata for meta tags. Pages Router apps call helper functions from next-seo/pages.
It works with Next.js 15 and 16. The peer range is next 13.4.0 or newer and react 18.2.0 or newer. The JSON-LD components ship without a "use client" directive, so they render in Server Components.
The Metadata API now owns meta tags. Next.js handles titles, canonicals, Open Graph, robots tags, sitemap.ts and robots.ts natively. It has no JSON-LD helper, which is where next-seo still earns its place.
Power-SEO covers what next-seo leaves out. Power-SEO is an MIT-licensed set of 17 packages for meta tags, JSON-LD, sitemaps, redirects and CI-ready SEO audits in Next.js, React, Remix and Node.
Keep next-seo if it works for you. Switch, or mix tools, when you need typed metadata across frameworks, schema validation, sitemaps or audits that run in CI.
If Power-SEO helps you, please ⭐ star it on GitHub. It helps other Next.js developers find it.
What Is NextSEO (next-seo)?
Direct answer: NextSEO, published on npm as next-seo, is an MIT-licensed SEO plugin for Next.js maintained by Gary Meehan on GitHub at garmeeh/next-seo. Since version 7, it mainly provides typed React components that output JSON-LD structured data. Older versions also managed title, meta and Open Graph tags through meta components that v7 removed.
You will see the name written three ways: NextSEO, next-seo and Next SEO. They all point to the same package. The README calls it Next SEO and describes it as a plugin that makes SEO easier to manage in Next.js projects.
One naming trap: nextseo.net is an unrelated digital marketing agency. If you want the code library, the official sources are the npm package page and the GitHub repository at github.com/garmeeh/next-seo.
Here are the key facts, checked against npm and GitHub on November 15, 2026:
Latest version: 7.3.0, released July 29, 2026. It added an optional nonce prop to every JSON-LD component for Content Security Policy setups.
Adoption: 8,545 GitHub stars, 468 forks and 611,174 npm downloads in the week of November 7 to 13, 2026.
License and dependencies: MIT, with no runtime dependencies. The peer dependencies are next 13.4.0 or newer and react 18.2.0 or newer.
Entry points: next-seo for JSON-LD components, and next-seo/pages for Pages Router meta tag helpers.
What changed between next-seo v6 and v7?
Direct answer: Version 7.0.0, released on October 17, 2025, was a full rewrite with breaking changes. The NextSeo and DefaultSeo components became generateNextSeo and generateDefaultSeo functions in next-seo/pages. JSON-LD components no longer need useAppDir in the App Router, and most props were renamed to match Google's structured data documentation.
This is why so many next-seo tutorials fail today. Most of them, including older ones on large dev blogs, show v6 code. The v7 release notes even recommend staying on v6 unless you need the new JSON-LD components or are starting a fresh project. They also say v6 will keep getting bug fixes and security updates.
Task | next-seo v6 (legacy) | next-seo v7 (current) |
|---|---|---|
Last or latest release | 6.8.0, May 20, 2025 | 7.3.0, July 29, 2026 |
Page meta tags (Pages Router) | NextSeo component | generateNextSeo() inside next/head |
Site-wide defaults (Pages Router) | DefaultSeo component in _app | generateDefaultSeo() inside next/head in _app |
Meta tags (App Router) | README recommends generateMetadata | README says to use generateMetadata |
JSON-LD in the app directory | Add useAppDir={true} to each component | Use the component directly |
ArticleJsonLd props | title, images, authorName | headline, image, author |
FAQ component | FAQPageJsonLd with mainEntity | FAQJsonLd with questions |
RecipeJsonLd props | ingredients, instructions, authorName | recipeIngredient, recipeInstructions, author |
How Do You Install the next-seo npm Package?
Direct answer: Run npm install next-seo, or the yarn, pnpm or bun equivalent. The official next-seo npm package is published from the garmeeh/next-seo GitHub repository. It has no runtime dependencies and lists next 13.4.0 or newer and react 18.2.0 or newer as peers, so the range covers Next.js 15 and 16.
Pick the command for your package manager:
npm install next-seo
yarn add next-seo
pnpm add next-seo
bun add next-seo
Searches for "next seo npm" also surface forks and copies with similar names. Before you install, confirm that the package page links to github.com/garmeeh/next-seo as its repository. Then use the right import path for your router: next-seo for JSON-LD components, and next-seo/pages for Pages Router meta tags.
How Do You Use NextSEO in 2026?
Direct answer: In the App Router, set titles and meta tags with the Next.js metadata export or generateMetadata, then render next-seo JSON-LD components such as ArticleJsonLd inside your page. In the Pages Router, call generateNextSeo inside next/head on each page, and call generateDefaultSeo in _app for site-wide defaults.
next-seo with the App Router (Next.js 15 and 16)
This blog post page sets meta tags through the Metadata API and adds Article structured data with next-seo. In Next.js 15 and 16, params is a Promise, so you await it:
// app/blog/[slug]/page.tsx
import type { Metadata } from "next";
import { ArticleJsonLd } from "next-seo";
import { getPost } from "@/lib/posts";
type Props = { params: Promise<{ slug: string }> };
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug } = await params;
const post = await getPost(slug);
return { title: post.title, description: post.excerpt, alternates: { canonical: "https://example.com/blog/" + slug } };
}
export default async function Page({ params }: Props) {
const { slug } = await params;
const post = await getPost(slug);
return (
<>
<ArticleJsonLd headline={post.title} description={post.excerpt} datePublished={post.publishedAt} author={post.authorName} image={post.coverImage} url={"https://example.com/blog/" + slug} />
<article>{/* post content */}</article>
</>
);
}
The Next.js docs suggest wrapping getPost in React's cache function when both generateMetadata and the page need the same data. Fetch requests are memoized automatically.
Site-wide defaults move to your root layout. This replaces the job DefaultSeo used to do:
// app/layout.tsx
export const metadata: Metadata = { metadataBase: new URL("https://example.com"), title: { template: "%s | MySite", default: "MySite" }, description: "Welcome to MySite", openGraph: { siteName: "MySite", type: "website", locale: "en_US" } };
If titles or canonicals still look wrong after this, our post on a Next.js meta tags mistake that cost three weeks of traffic walks through the common traps.
next-seo with the Pages Router
In v7, Pages Router meta tags come from functions, not components. Wrap the output in the next/head Head component, as the next-seo Pages Router README instructs:
// pages/about.tsx
import Head from "next/head";
import { generateNextSeo } from "next-seo/pages";
export default function AboutPage() {
return (
<>
<Head>{generateNextSeo({ title: "About Us", description: "Learn more about our company", canonical: "https://example.com/about" })}</Head>
<h1>About Us</h1>
</>
);
}
For defaults, call generateDefaultSeo once in _app:
// pages/_app.tsx
import type { AppProps } from "next/app";
import Head from "next/head";
import { generateDefaultSeo } from "next-seo/pages";
const DEFAULT_SEO = { titleTemplate: "MySite | %s", defaultTitle: "MySite", description: "Welcome to MySite" };
export default function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<Head>{generateDefaultSeo(DEFAULT_SEO)}</Head>
<Component {...pageProps} />
</>
);
}
Both functions accept the familiar props: title, titleTemplate, defaultTitle, description, canonical, noindex, nofollow, openGraph, twitter, additionalMetaTags and additionalLinkTags.
What about the old NextSeo and DefaultSeo components?
Direct answer: NextSeo and DefaultSeo were the v6 way to add meta tags in the Pages Router. The v7 Pages Router README lists them as deprecated and replaces them with generateNextSeo and generateDefaultSeo. If your code still imports them from the main next-seo entry, you are on v6 or copying a v6 tutorial. Pin v6, or migrate.
Does next-seo Work with the App Router and Next.js 15 and 16?
Direct answer: Yes. next-seo v7 was rewritten for modern Next.js, and its JSON-LD components render directly in App Router pages without the old useAppDir flag. The package contains no "use client" directive and accepts any Next.js version from 13.4.0 up, including 15 and 16. Meta tags, though, should come from the Next.js Metadata API.

The current stable Next.js release on npm is 16.4.6, and the next-seo peer range accepts it. A few details matter for next-seo App Router setups:
Metadata stays on the server. The Next.js docs say the metadata object and generateMetadata exports are only supported in Server Components. If a page needs hooks, keep page.tsx as a Server Component and move the interactive part into a separate "use client" file.
JSON-LD renders in the body. next-seo components print a script tag where you place them in the page. Google's documentation says JSON-LD can sit in the head or the body.
Streaming metadata is normal. Since Next.js 15.2, metadata from generateMetadata can stream after the first UI on dynamic pages. The docs say HTML-limited bots still get it in the head, and that Googlebot reads streamed metadata correctly.
Strict CSP is supported. Since 7.3.0, every JSON-LD component accepts a nonce prop that you can read from request headers.
On v6, the story was different. You had to add useAppDir={true} to every JSON-LD component inside the app directory. The v6 README also pointed App Router users to generateMetadata for meta tags, because its meta components were built for the pages directory.
Which JSON-LD Components Does next-seo Include?
Direct answer: next-seo 7.3.0 exports 27 JSON-LD components, from ArticleJsonLd and ProductJsonLd to RecipeJsonLd, FAQJsonLd, JobPostingJsonLd and VideoJsonLd. Each one renders a script tag of type application/ld+json. For any other schema.org type, you build a custom component with the exported JsonLdScript and processors helpers.
Here is the full list from the package's type definitions:
Content: ArticleJsonLd, CreativeWorkJsonLd, RecipeJsonLd, HowToJsonLd, CourseJsonLd, EventJsonLd, FAQJsonLd, ImageJsonLd, QuizJsonLd, DatasetJsonLd, VideoJsonLd, DiscussionForumPostingJsonLd and ClaimReviewJsonLd.
Business and commerce: OrganizationJsonLd, LocalBusinessJsonLd, MerchantReturnPolicyJsonLd, ProductJsonLd, ReviewJsonLd, AggregateRatingJsonLd, SoftwareApplicationJsonLd, VacationRentalJsonLd, EmployerAggregateRatingJsonLd, JobPostingJsonLd and ProfilePageJsonLd.
Navigation and lists: BreadcrumbJsonLd, CarouselJsonLd and MovieCarouselJsonLd.
next-seo RecipeJsonLd example
A common search is the next-seo RecipeJsonLd component on GitHub, usually because v6 examples break. In v7, the props follow schema.org names:
import { RecipeJsonLd } from "next-seo";
<RecipeJsonLd name="Chicken Biryani" image="https://example.com/biryani.jpg" author="Chef Karim" datePublished="2026-03-10T08:00:00+06:00" recipeIngredient={["Basmati rice", "Chicken", "Spices"]} recipeInstructions={["Soak the rice", "Cook the chicken", "Layer and steam"]} />
The v6 version used ingredients, instructions, authorName and images instead. TypeScript will reject those names on v7.
What happened to FAQPageJsonLd in next-seo?
Direct answer: FAQPageJsonLd was the v6 component. It took a mainEntity array of questionName and acceptedAnswerText objects. Version 7 replaced it with FAQJsonLd, which takes a questions array of question and answer pairs. Google has also stopped showing FAQ rich results in Search, so treat FAQ markup as descriptive data only.
The v7 version looks like this:
<FAQJsonLd questions={[{ question: "How long does delivery take?", answer: "3 to 5 business days." }]} />
According to Google's FAQPage documentation, the FAQ rich result stopped appearing in Google Search on May 7, 2026. The markup is still valid schema.org data if it matches visible content. For CarouselJsonLd, CollectionPage, @graph output and testing, read our deep dive on next-seo JSON-LD.
NextSEO vs Next.js Metadata API vs Power-SEO
The table compares next-seo 7.3.0, the Metadata API in Next.js 16.4.6 and Power-SEO 1.0.19. Stars and downloads were checked on GitHub and npm on November 15, 2026.
Feature | next-seo 7.3.0 | Next.js Metadata API | Power-SEO (1.0.19) |
|---|---|---|---|
License | MIT | MIT (part of Next.js) | MIT |
What it is | One package: JSON-LD components plus Pages Router meta helpers | Built into Next.js since v13.2.0 | 17 modular packages under @power-seo |
App Router and Server Components | Yes, JSON-LD components render in Server Components | Yes, native; metadata exports work only in Server Components | Yes; createMetadata() returns a Metadata-shaped object for generateMetadata |
Pages Router | Yes, via next-seo/pages | No; Pages Router uses next/head | Yes, SEO and DefaultSEO components in @power-seo/react |
Meta tags (title, canonical, Open Graph, Twitter, robots) | Pages Router only; App Router uses generateMetadata | Yes, full field set | Yes, one SEOConfig for Next.js, Remix and generic SSR |
JSON-LD types | 27 components plus JsonLdScript | None built in; docs recommend a native script tag | 23 builders, 22 React components, schemaGraph() and validateSchema() |
XML sitemap | No; teams often add next-sitemap | Yes, app/sitemap.ts | Yes, @power-seo/sitemap with 50,000-URL splitting and image, video and news tags |
robots.txt file | No | Yes, app/robots.ts | No file generator; robots meta directives only |
Redirects | No | redirects() in next.config.js | @power-seo/redirects with toNextRedirects() |
SEO audits and CI checks | No | No | @power-seo/audit with 0 to 100 scores and auditSite() |
TypeScript | Built-in types | Built-in Metadata type | Built-in types, TypeScript-first |
Runtime dependencies | None (peers: next, react) | Not applicable | Only other @power-seo packages |
Maintenance | Latest release July 29, 2026; v6 still gets fixes | Ships with every Next.js release | Latest release July 27, 2026; launched 2026 |
GitHub stars (Nov 15, 2026) | 8,545 (garmeeh/next-seo) | 143,519 (vercel/next.js) | 17 (CyberCraftBD/power-seo) |
npm weekly downloads (Nov 7 to 13, 2026) | 611,174 | Part of the next package | About 1,300 for @power-seo/core |
The fair reading: next-seo has the widest set of ready-made Google rich result components and a much larger community. The Metadata API is the right default for meta tags in any App Router project, and it costs nothing extra. Power-SEO is young and small, but it is the only option of the three with built-in schema validation and SEO audits.
Bundle size matters less than many comparisons suggest. When these tools run in Server Components or at build time, most or all of their code stays on the server.
Power-SEO: A Modular next-seo Alternative for Next.js
Power-SEO is our open-source answer to the gaps above. It replaces both halves of next-seo. @power-seo/meta turns one typed SEOConfig into a Next.js Metadata object, and @power-seo/schema builds JSON-LD with typed functions and escaping built in. On top of that, it adds sitemaps, redirects and audits that next-seo leaves to other packages.

Here is the same App Router blog post with Power-SEO:
// app/blog/[slug]/page.tsx
import { createMetadata } from "@power-seo/meta";
import { article, toJsonLdString } from "@power-seo/schema";
import { getPost } from "@/lib/posts";
type Props = { params: Promise<{ slug: string }> };
export async function generateMetadata({ params }: Props) {
const { slug } = await params;
const post = await getPost(slug);
return createMetadata({ title: post.title, description: post.excerpt, canonical: "https://example.com/blog/" + slug, openGraph: { type: "article", images: [{ url: post.coverImage, width: 1200, height: 630 }] } });
}
export default async function Page({ params }: Props) {
const { slug } = await params;
const post = await getPost(slug);
const schema = article({ headline: post.title, datePublished: post.publishedAt, author: post.authorName, image: post.coverImage });
return (
<>
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: toJsonLdString(schema) }} />
<article>{/* post content */}</article>
</>
);
}
createMetadata() maps canonical to alternates.canonical for you. Open Graph title, description and URL fall back to the top-level values when you leave them out.
And this CI gate fails a build when the average audit score drops below 75. It uses auditSite() from @power-seo/audit:
// scripts/seo-audit.ts
import { auditSite } from "@power-seo/audit";
import { pages } from "./pages-to-audit";
const report = auditSite({ pages });
if (report.score < 75) { console.error("SEO audit failed: " + report.score); process.exit(1); }
Honest limits matter on a comparison page. Power-SEO launched in 2026 and has about 17 GitHub stars, so community answers are still thin. It has no builders for some types next-seo covers, such as ClaimReview, Dataset, VacationRental and ProfilePage. It also has no robots.txt file generator, so keep using Next.js robots.ts for that.
Key Power-SEO features
@power-seo/meta: createMetadata() for the App Router, createMetaDescriptors() for Remix v2 and createHeadTags() for any SSR runtime, all from one SEOConfig.
@power-seo/schema: 23 JSON-LD builder functions such as article, product, faqPage, recipe, localBusiness and jobPosting, plus 22 React components, schemaGraph() and validateSchema().
@power-seo/react: SEO and DefaultSEO components for the Pages Router and other React apps, with site-wide title templates.
@power-seo/sitemap: XML sitemaps with automatic splitting at 50,000 URLs, image, video and news extensions, and toNextSitemap() for app/sitemap.ts.
@power-seo/redirects: one typed rule list for Next.js, Remix and Express, with toNextRedirects() for next.config.js.
@power-seo/audit: page and site audits with 0 to 100 scores across meta, content, structure and performance rules, ready for CI.
Get started: Run npm i @power-seo/meta @power-seo/schema, return createMetadata() from generateMetadata, and render toJsonLdString() output in a script tag. All 17 packages are at version 1.0.19, MIT licensed and installable one by one. Docs and examples live on the Power-SEO product page.
Disclosure: Power-SEO is built by our team at CyberCraft Bangladesh.
Found Power-SEO useful? Please ⭐ star the repo on GitHub. Every star helps more Next.js developers discover it.
When Should You Keep next-seo, and When Should You Switch?
Direct answer: Keep NextSEO if it already works, you mainly need JSON-LD, or you rely on types only it covers, such as VacationRental or ClaimReview. Switch, or add Power-SEO beside it, for one typed config for meta tags. It also suits teams that want schema validation, sitemaps and redirects in one toolkit, or SEO audits that fail a CI build.
Keep next-seo when
You run a blog, portfolio or marketing site and only need a few schema types.
Your team knows the component API and the setup already passes the Rich Results Test.
You are on the Pages Router and want the next-seo/pages helpers with minimal change.
You use components with no Power-SEO builder, such as DatasetJsonLd or MerchantReturnPolicyJsonLd.
You value a large community with years of answers behind it.
Consider switching when
You share SEO config across Next.js and Remix or another SSR framework.
You want missing schema fields to fail a build instead of reaching Google.
You need sitemaps over 50,000 URLs, or redirects for a large URL migration. Our post on a Next.js redirect library covers that case.
You want scored SEO audits in pull requests. See our JavaScript SEO audit tool guide for the workflow.
You would rather install several small packages than stitch five unrelated tools together.
A middle path also works. Use the Metadata API for meta tags, keep next-seo for its JSON-LD components, and add single Power-SEO packages such as @power-seo/sitemap or @power-seo/audit where they help.
How Do You Migrate from next-seo to Power-SEO?
Direct answer: Migrate in small steps. Install @power-seo/meta and @power-seo/schema, move meta tags from next-seo into createMetadata inside generateMetadata, then swap each next-seo JSON-LD component for the matching builder. Compare the rendered HTML and Rich Results Test output before you remove next-seo. Both libraries can run side by side meanwhile.
Inventory your usage. Search the codebase for imports from "next-seo" and "next-seo/pages". List each page, component and prop.
Install the packages. Run
npm i @power-seo/meta @power-seo/schema. Add @power-seo/react if you stay on the Pages Router.Move site defaults. Replace DefaultSeo or generateDefaultSeo with createMetadata() in app/layout.tsx, using titleTemplate and defaultTitle.
Move page meta tags. Return createMetadata() from each page's generateMetadata function.
Swap JSON-LD one type at a time. Use the mapping table below, starting with high-traffic templates.
Validate. Run validateSchema() in CI, view the page source and test key URLs in the Rich Results Test.
Remove next-seo last. Uninstall it only when no imports remain, and never print the same entity from both libraries on one page.
next-seo | Power-SEO | Notes |
|---|---|---|
DefaultSeo (v6) or generateDefaultSeo (v7) | createMetadata() in app/layout.tsx, or DefaultSEO from @power-seo/react | titleTemplate uses the same %s placeholder. |
NextSeo (v6) or generateNextSeo (v7) | createMetadata() in generateMetadata, or SEO from @power-seo/react | canonical, openGraph and noindex keep the same names. For Twitter, use cardType, site and creator. |
ArticleJsonLd | article() with toJsonLdString(), or ArticleJsonLd from @power-seo/schema/react | headline, author, datePublished and image match the v7 names. |
BreadcrumbJsonLd items={[{ name, item }]} | breadcrumbList([{ name, url }]) | Rename item to url. Positions are added for you. |
FAQJsonLd or FAQPageJsonLd | faqPage([{ question, answer }]) | Same shape as v7 FAQJsonLd. |
RecipeJsonLd | recipe() | recipeIngredient and recipeInstructions keep their names. |
ProductJsonLd, OrganizationJsonLd, LocalBusinessJsonLd, EventJsonLd, JobPostingJsonLd, VideoJsonLd | product(), organization(), localBusiness(), event(), jobPosting(), videoObject() | Run validateSchema() to confirm required fields. |
ClaimReviewJsonLd, DatasetJsonLd, VacationRentalJsonLd, ProfilePageJsonLd | No builder | Keep next-seo or write a native script tag. |
next-sitemap (separate package) | @power-seo/sitemap | toNextSitemap() feeds app/sitemap.ts. |
Site defaults are a one-liner after the move. createMetadata() turns titleTemplate and defaultTitle into the Next.js title template object:
// app/layout.tsx
import { createMetadata } from "@power-seo/meta";
export const metadata = createMetadata({ titleTemplate: "%s | MySite", defaultTitle: "MySite", description: "Welcome to MySite" });
FAQs About NextSEO
What is NextSEO used for?
NextSEO is used to add SEO markup to Next.js websites. In version 7, its main job is JSON-LD structured data through components like ArticleJsonLd, ProductJsonLd and RecipeJsonLd. Pages Router sites can also generate title, meta and Open Graph tags with the next-seo/pages helpers. App Router sites handle meta tags with the Next.js Metadata API.
Is next-seo still maintained in 2026?
Yes. next-seo released 7.1.0 in January 2026, 7.2.0 in February 2026 and 7.3.0 on July 29, 2026. The repository is not archived, has about 8.5k stars and showed nine open issues and pull requests on November 15, 2026. The maintainer also says v6 will keep receiving bug fixes and security updates.
What is the latest next-seo npm version?
The latest next-seo npm version is 7.3.0, published on July 29, 2026. It added an optional nonce prop to all JSON-LD components for Content Security Policy support. Version 7.0.0 arrived on October 17, 2025, and the final v6 release was 6.8.0 on May 20, 2025. The package is MIT licensed.
Does next-seo support the App Router?
Yes. In next-seo v7, JSON-LD components work directly in App Router pages and Server Components, with no useAppDir prop. The README tells you to use the Next.js generateMetadata function for title and meta tags. The next-seo App Router setup is therefore Metadata API for meta tags plus next-seo for structured data.
Why does import { NextSeo } from "next-seo" fail?
It fails because NextSeo is a v6 component. Version 7 removed it from the main entry point. On the Pages Router, import generateNextSeo from next-seo/pages and render its output inside next/head. On the App Router, use generateMetadata instead. If you cannot migrate yet, pin next-seo to version 6.8.0.
Is there a withNextSeo function in next-seo?
No. withNextSeo is not part of the documented next-seo API in v6 or v7, and the v7.3.0 type definitions do not export it. For site-wide defaults, v6 used the DefaultSeo component in _app. In v7, use generateDefaultSeo on the Pages Router, or a metadata export in app/layout.tsx on the App Router.
What is FAQPageJsonLd in next-seo?
FAQPageJsonLd is the next-seo v6 component for FAQPage structured data, using mainEntity with questionName and acceptedAnswerText. In v7 it is called FAQJsonLd and takes questions with question and answer fields. Google says FAQ rich results no longer appear in Search, so expect no visual change in results from either component.
Can I use generateMetadata in a "use client" component?
No. The Next.js docs say the metadata object and generateMetadata function are only supported in Server Components, because metadata must resolve on the server first. Keep page.tsx as a Server Component that exports metadata, and move hooks or event handlers into a child component marked with "use client".
Does next-seo generate a sitemap or robots.txt?
No. next-seo focuses on structured data and Pages Router meta tags. For sitemaps and robots.txt, use the Next.js app/sitemap.ts and app/robots.ts file conventions, or a separate package such as next-sitemap. Power-SEO's @power-seo/sitemap adds automatic splitting at 50,000 URLs and image, video and news extensions.
Is Power-SEO a good next-seo alternative?
Power-SEO is a good fit if you want more than JSON-LD. It adds typed meta tags, schema validation, sitemaps, redirects and CI audits across 17 MIT-licensed packages. It is newer, with a much smaller community and fewer schema types than next-seo. Many teams run both side by side during a gradual move.
Is Next.js better than WordPress for SEO?
Neither is better by default. When people compare Next JS vs WordPress SEO, the real difference is workflow. WordPress relies on plugins for meta tags and schema. Next.js gives developers full control in code, but you must set metadata, sitemaps and structured data yourself. In most cases, content quality and crawlable HTML matter far more.
Where is the official next-seo GitHub repository?
The official next-seo GitHub repository is github.com/garmeeh/next-seo. The main branch holds the v7 code and docs, with a Pages Router guide in src/pages/README.md. The master branch keeps the v6 documentation. Release notes, including the full v7 migration guide, live on the repository's Releases page.
Sources
Final Thoughts on NextSEO
NextSEO is still a solid, maintained choice in 2026, as long as you use it the v7 way. Let the Next.js Metadata API handle meta tags, use next-seo for JSON-LD, and stop copying v6 tutorials. When you need typed metadata across frameworks, schema validation, sitemaps, redirects or SEO audits in CI, try Power-SEO. It is free, MIT licensed and works next to next-seo.
If Power-SEO saves you time, please ⭐ star it on GitHub. It helps other Next.js developers find it.
Need help with SEO on a large Next.js site? Contact the CyberCraft Bangladesh team for a technical SEO review.



