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

strapi-sitemap-generator

v0.2.0

Published

Plugin to generate sitemap in Strapi V5 Project

Readme

Strapi Sitemap Generator

Generate and serve XML sitemaps in Strapi v5 with a simple admin UI.

Features

  • Admin UI for selecting content types with slug
  • Custom URL patterns, priority and change frequency per type
  • Live URL preview for custom paths
  • One-click Generate with live toast feedback
  • Preview XML in a new tab
  • Public endpoint: /api/strapi-sitemap-generator/sitemap.xml
  • Robust service with logging and safe fallbacks

Quick Start

  1. Enable plugin in Strapi (already enabled in config/plugins.ts)
  2. Open the plugin in Strapi Admin → "Sitemap Generator"
  3. Set Base URL (e.g., https://yourdomain.com)
  4. Select content types to include
  5. Configure custom paths (optional)
  6. Click "Generate Sitemap" and "Preview XML"

Custom URL Configuration

For each selected content type, you can customize how URLs are generated:

Default Behavior

If no custom path is specified, URLs use the plural name:

  • Content type: articles → URL: https://yourdomain.com/articles/[slug]
  • Content type: pages → URL: https://yourdomain.com/pages/[slug]

Custom Path Examples

  • Root URLs (no prefix): Set custom path to /

    • Result: https://yourdomain.com/[slug]
    • Use case: Top-level pages like "About", "Contact"
  • Different prefix: Set custom path to /blog (when content type is articles)

    • Result: https://yourdomain.com/blog/[slug]
    • Use case: Aligning with frontend routes that differ from Strapi collection names
  • Nested paths: Set custom path to /resources/guides

    • Result: https://yourdomain.com/resources/guides/[slug]

SEO Settings

  • Priority (0.0 - 1.0): Indicates importance relative to other URLs (default: 0.7)
  • Change Frequency: How often content updates (default: monthly)

Notes

  • Only content types with a slug field are available
  • Only entries with a slug value are included in the sitemap
  • Generation saves config, then builds the sitemap from selected content types
  • Search engines fetch the XML via the public endpoint (no download button needed)

Endpoints

  • Public sitemap: /api/strapi-sitemap-generator/sitemap.xml
  • Admin preview data: GET /strapi-sitemap-generator/data
  • Admin config: GET/PUT /strapi-sitemap-generator/config
  • Admin content types: GET /strapi-sitemap-generator/content-types