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

@shipseo/init

v0.1.0

Published

One-shot CLI that scaffolds SEO files (sitemap.ts, robots.ts, metadata) for AI-built Next.js projects

Downloads

142

Readme

@shipseo/init

One-shot CLI that seeds a Next.js 15 App Router project with the SEO files an AI-scaffolded starter usually forgets: app/sitemap.ts, app/robots.ts, and metadata inside app/layout.tsx.

Zero-config. Interactive. Backs up before it overwrites.

Usage

npx @shipseo/init

Runs a short prompt, detects your framework, scaffolds the missing files, and prints a snippet for any file it doesn't own (like app/layout.tsx).

Flags

-f, --force      Overwrite existing files (originals go to .shipseo-backup/)
-n, --dry-run    Print what would change without writing anything
-y, --yes        Skip prompts, take default answers
    --sdk        Use @shipseo/next dynamic metadata (default: static)
-h, --help       Show help
-v, --version    Show version

What it creates

| File | Content | |---|---| | app/sitemap.ts | Next.js sitemap route — serves /sitemap.xml with a BASE_URL from NEXT_PUBLIC_APP_URL | | app/robots.ts | Next.js robots route — serves /robots.txt, points at the sitemap, disallows /api/ + /admin/ | | app/layout.tsx | Only if missing. Minimal layout with metadata export |

If app/layout.tsx exists, the CLI:

  • Detects whether you already export metadata or generateMetadata
  • If yes → says "no changes needed"
  • If no → prints a snippet you can paste (--sdk toggles between static metadata and @shipseo/next dynamic metadata)

We deliberately don't do AST surgery on your files — too many false positives on non-trivial layouts.

Idempotent by design

Run it twice, get the same result the second time. Existing files are skipped unless you pass --force, in which case the previous version is copied to <project>/.shipseo-backup/<name>.<ISO-timestamp>.bak before being overwritten. Nothing is ever destroyed.

Supported today

  • Next.js 15 App Router (app/ at root or under src/)

Coming next:

  • Next.js Pages Router
  • Astro
  • Nuxt
  • SvelteKit

The CLI detects these frameworks today but exits early with a clear message + link to the roadmap.

After running

  1. Set NEXT_PUBLIC_APP_URL=https://your-domain.com in .env so the sitemap/robots URLs are correct.
  2. Optional: install @shipseo/next for runtime-editable metadata + Core Web Vitals from real users.

License

MIT