SEOJS

Integration takes 30 seconds

No complex config files or heavy providers. Just import the standard Next.js API.

1

Install the package

Terminal
npm install @seojs/sdk
2

Add to your Page or Layout

Zero Latency
app/blog/[slug]/page.tsx
import { generateSEO } from "@seojs/sdk";

export async function generateMetadata({ params }) {
  // 1. Fetch your content as usual
  const post = await getPost(params.slug);

  // 2. Let SEOJS infer metadata from the body
  return await generateSEO(
    {
      apiKey: process.env.SEOJS_KEY,
      projectId: "proj_123"
    },
    {
      title: post.title,
      body: post.content // AI Context
    },
    // 3. Fail-Open Fallback (Recommended)
    { title: post.title }
  );
}

Note: SEOJS automatically handles caching, character limits, and JSON-LD schema generation.