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

@cooperco/nuxt-layer-seo

v0.0.1

Published

SEO Nuxt layer for cooperco projects

Readme

Nuxt SEO Layer

A Nuxt layer that provides essential SEO configuration for Nuxt projects, including sitemap generation, robots.txt, and automated linting.

Features

  • Sitemap generation via @nuxtjs/sitemap
  • Robots.txt configuration via @nuxtjs/robots
  • ESLint integration with stylistic rules
  • Optimized for search engine visibility

Configuration

The SEO layer includes the following modules:

// nuxt.config.ts in the seo layer
export default defineNuxtConfig({
  modules: ["@nuxtjs/sitemap", "@nuxtjs/robots", "@nuxt/eslint"],
  eslint: {
    config: {
      stylistic: true
    }
  }
})

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Run ESLint
npm run lint

# Fix linting issues automatically
npm run lint:fix

# Run TypeScript type checking
npm run typecheck

Usage

To use this layer in your Nuxt project:

// nuxt.config.ts
export default defineNuxtConfig({
  extends: [
    '@cooperco/nuxt-layer-seo'
  ]
})

This will automatically include the SEO layer features.

Dependencies

The SEO layer includes:

  • @nuxtjs/sitemap
  • @nuxtjs/robots
  • @nuxt/eslint

These provide a solid SEO foundation for your Nuxt application.


Publishing to npm (tag-based)

This layer is published using GitHub Actions when you push a tag that matches the seo-vX.Y.Z pattern.

High-level flow:

  • Bump the version in layers/seo/package.json (SemVer).
  • Commit and push your changes to main (or ensure the commit is on main).
  • Create and push a tag named seo-vX.Y.Z (matching the package.json version).
  • The Publish SEO Layer workflow installs deps, checks if that exact version already exists on npm, and if not, publishes to npm.

Important notes:

  • Do NOT rely on npm version creating a tag for you (it will create vX.Y.Z). We use a custom tag prefix seo-v.
  • The workflow will skip if the version already exists.

Step-by-step

  1. Bump the version in layers/seo/package.json
  • Option A (recommended): use npm version without creating a tag
    • Bash:
      cd layers/seo
      npm version patch --no-git-tag-version  # or minor | major
    • PowerShell:
      Set-Location layers/seo
      npm version patch --no-git-tag-version  # or minor | major
  • Option B: manually edit the version field in layers/seo/package.json (SemVer: MAJOR.MINOR.PATCH)
  1. Commit and push the change (from repo root or layers/seo)
git add layers/seo/package.json
git commit -m "chore(seo): bump version"
git push origin main
  1. Create and push the tag using the new version
  • Get the new version value:
    • Bash:
      cd layers/seo
      VERSION=$(node -p "require('./package.json').version")
      cd ../..
      git tag "seo-v$VERSION"
      git push origin "seo-v$VERSION"
    • PowerShell:
      Set-Location layers/seo
      $version = node -p "require('./package.json').version"
      Set-Location ../..
      git tag "seo-v$version"
      git push origin "seo-v$version"
  1. GitHub Actions will publish
  • Workflow: .github/workflows/publish-seo.yml
  • Auth: uses NPM_TOKEN configured as a GitHub secret
  • Behavior: installs, checks npm view @cooperco/nuxt-layer-seo@<version>, publishes if not found

Troubleshooting

  • Version already exists: bump the version again (patch/minor/major) and push a new tag.
  • Auth errors (401/403): ensure NPM_TOKEN is set in repo secrets and org access is correct.