🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More β†’
Socket
Book a DemoSign in
Socket

aurora-seo

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurora-seo

The fastest way to add SEO to your Next.js project. Automatically generates sitemaps, robots.txt, metadata, and Google Search Console verification.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
15
150%
Maintainers
1
Weekly downloads
Β 
Created
Source

AuroraSEO

The fastest way to add SEO to your Next.js project.

AuroraSEO automatically generates sitemaps, robots.txt, metadata, and Google Search Console verification for Next.js applications. No configuration needed, works with both App Router and Pages Router.

npm version Downloads License: MIT

Features

  • Automatic Sitemap Generation - Discovers your routes and creates XML sitemaps
  • Smart Robots.txt - Generates SEO-friendly robots.txt with sensible defaults
  • Metadata Injection - Adds title, description, Open Graph, and Twitter meta tags
  • Google Search Console Integration - One-click GSC verification setup
  • Next.js 13+ App Router Support - Works with the latest Next.js features
  • Pages Router Compatible - Full backward compatibility
  • Template Titles - Automatic page-specific titles with site branding
  • Zero Configuration - Works out of the box, customize when needed

Quick Start

Installation

# Using npx (recommended)
npx aurora-seo init

# Or install globally
npm install -g aurora-seo
aurora-seo init

Initialize SEO for your project

cd your-nextjs-project
npx aurora-seo init

Generate SEO assets

npx aurora-seo generate

That's it!

What Gets Generated

After running aurora-seo generate, you'll have:

your-project/
β”œβ”€β”€ .seo-config.json          # Your SEO configuration
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ sitemap.xml          # Auto-generated sitemap
β”‚   └── robots.txt           # SEO-friendly robots.txt
└── app/                     # (App Router)
    β”œβ”€β”€ layout.tsx           # Enhanced with metadata + GSC verification
    β”œβ”€β”€ about/
    β”‚   └── layout.tsx       # "About | Your Site"
    └── blog/
        └── layout.tsx       # "Blog | Your Site"

Usage Examples

Basic Setup

$ npx aurora-seo init
βœ… AuroraSEO init running...
βœ” Enter your site URL: https://example.com
βœ” Which SEO features would you like to enable?
  β—‰ Sitemap
  β—‰ Robots.txt
  β—‰ Meta Tags Generator
βœ” Do you want to set up Google Search Console verification? Yes
βœ” Paste your verification content: content="ABC123..."
βœ… SEO setup initialized! Config saved to .seo-config.json

Generation with Pre-flight Checks

$ npx aurora-seo generate
[1/4] Reading configuration...
[2/4] Running pre-flight checks...
βœ… All pre-flight checks passed!
[3/4] Planning generation...
Generation Plan:
   Sitemap Generation: βœ“ Enabled
      Output: ./public/sitemap.xml
   Metadata Injection: βœ“ Enabled
      Target: App/Pages Router layouts
βœ” Continue with generation? Yes
[4/4] Generating SEO assets...
Successfully generated 4 SEO feature(s)!

Generated Sitemap Example

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://example.com/blog</loc>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
  </url>
</urlset>

Generated App Router Layout

// app/layout.tsx
import type { Metadata } from "next";

export const metadata: Metadata = {
  title: {
    template: "%s | Your Site",
    default: "Your Site",
  },
  description: "Your site description",
  verification: {
    google: "your-gsc-verification-token",
  },
  openGraph: {
    title: "Your Site",
    description: "Your site description",
    url: "https://example.com",
    siteName: "Your Site",
    images: [
      {
        url: "https://example.com/og-image.jpg",
      },
    ],
    type: "website",
  },
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <body>{children}</body>
    </html>
  );
}

Configuration

AuroraSEO creates a .seo-config.json file that you can customize:

{
  "siteUrl": "https://example.com",
  "features": {
    "sitemap": true,
    "robots": true,
    "meta": true
  },
  "sitemap": {
    "changefreq": "weekly",
    "priority": 0.7,
    "exclude": ["/admin/*", "/api/*"]
  },
  "robots": {
    "userAgent": "*",
    "disallow": ["/admin", "/api"]
  },
  "metadata": {
    "title": "Your Site",
    "description": "Your site description",
    "keywords": ["nextjs", "react", "seo"]
  },
  "googleSearchConsole": {
    "enabled": true,
    "method": "meta",
    "value": "your-verification-token"
  }
}

Advanced Usage

Custom Sitemap Configuration

# Edit .seo-config.json
{
  "sitemap": {
    "include": ["/custom-page", "/special-route"],
    "exclude": ["/admin/*", "/api/*", "/private/*"],
    "changefreq": "daily",
    "priority": 0.8
  }
}

Force Generation (Skip Confirmations)

npx aurora-seo generate --force

HTML File GSC Verification

# During init, choose "HTML file upload" method
βœ” Choose your Google Search Console verification method:
  β—― Meta tag (recommended)
  β—‰ HTML file upload
βœ” Enter your HTML filename: google12345abcdef.html

This creates public/google12345abcdef.html ready for upload.

Commands

CommandDescription
aurora-seo initInitialize SEO configuration for your project
aurora-seo generateGenerate all SEO assets based on your config
aurora-seo generate --forceGenerate without confirmation prompts

Requirements

  • Node.js 16+
  • Next.js 11+ (App Router features require Next.js 13+)
  • File system access to your project directory

Google Search Console Setup

  • Go to Google Search Console
  • Add your property (your website URL)
  • Choose verification method:
    • Meta tag (recommended): Copy the content="..." value
    • HTML file: Note the filename Google provides
  • Run aurora-seo init and paste the verification details
  • Generate with aurora-seo generate
  • Deploy your site
  • Return to GSC and click "VERIFY"

Next.js Compatibility

Next.js VersionApp RouterPages RouterMetadata APIStatus
15.xβœ…βœ…βœ…Full Support
14.xβœ…βœ…βœ…Full Support
13.xβœ…βœ…βœ…Full Support
12.xβŒβœ…βŒPages Router Only
11.xβŒβœ…βŒPages Router Only

Contributing

We love contributions! Please see our Contributing Guide for details.

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Built for the Next.js community
  • Inspired by the need for simpler SEO tooling
  • Thanks to all contributors and users

Made by Aurora Software Labs

Give us a ⭐ if AuroraSEO helped you!

Report Issues β€’ Request Features β€’ Documentation

Keywords

nextjs

FAQs

Package last updated on 02 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts