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

seo-assist

v0.1.1

Published

CLI tool for automatic SEO setup in web projects with AI-powered meta tags, robots.txt and sitemap generation

Readme

seo-assist

npm version license

CLI tool for automatic SEO setup in web projects: AI-powered meta tag generation, robots.txt with AI bot blocking, and sitemap.xml.

Installation

npx seo-assist init

Or install globally:

npm install -g seo-assist

Quick start

# 1. Initialize configuration
npx seo-assist init

# 2. Generate SEO files
npx seo-assist generate

# 3. Validate the result
npx seo-assist validate

Commands

init

Creates seo.config.json in the project root. Interactively asks for:

  • Site type (e-commerce, blog, portfolio, landing page)
  • Primary domain
  • Language
  • Whether to block AI crawlers (default: yes)

generate

The main command. It:

  1. robots.txt — writes to public/ (or static/), blocks AI bots when blockAiBots: true
  2. sitemap.xml — scans routes from config and the file system
  3. AI meta tags — via the OpenRouter API, saved to seo-meta.json
  4. Code integration — Next.js (Metadata API), React (SEO.tsx), Vite (index.html)

Creates a .bak backup before modifying any files.

validate

Checks for robots.txt, sitemap.xml, meta tags, and prints a report.

OpenRouter API key

AI meta tag generation requires an API key:

  1. Sign up at openrouter.ai
  2. Get a key at openrouter.ai/keys (free up to $5)
  3. On the first generate run, the key is prompted and saved to seo.config.json

Without a key or without internet, only robots.txt and sitemap.xml are generated.

Configuration example

{
  "siteType": "blog",
  "domain": "https://example.com",
  "language": "ru",
  "blockAiBots": true,
  "routes": ["/", "/about", "/contact", "/blog/*"],
  "aiProvider": "openrouter",
  "aiModel": "gpt-3.5-turbo"
}

Supported frameworks

| Framework | Detection | Integration | |-----------|-----------|-------------| | Next.js | next.config.* | app/layout.tsx — Metadata API | | Vite | vite.config.* | index.html | | React | src/index.html | src/components/SEO.tsx |

Development

git clone https://github.com/AVPletnev/seo-assist.git
cd seo-assist
npm install
npm run build

# Quick demo test with a Next.js blog example (no API key needed)
npm run test:demo

# Or run manually
node bin/index.js init
node bin/index.js generate
node bin/index.js validate

Demo project: examples/next-blog/ — a minimal Next.js App Router setup with a ready-made seo.config.json.

Publishing to npm (maintainers)

# 1. Check package contents
npm run publish:dry-run

# 2. Log in (if not already)
npm login

# 3. Publish (prepublishOnly: build + test:demo)
npm publish

# Verify after publishing
npx seo-assist@latest --version

License

MIT — see LICENSE