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

@webbycrown/strapi-advanced-sitemap

v1.0.6

Published

Flexible sitemap tooling for Strapi: build manual or dynamic XML files, publish sitemap indexes, and control access per role.

Readme

🚀 Strapi Advanced Sitemap

npm version License: MIT Strapi

SEO-ready XML sitemaps for Strapi CMS. Create manual URL sets or sitemap indexes, generate dynamic feeds from collection types, and expose every endpoint behind role-based permissions—no external services required.

📦 NPM Package: @webbycrown/strapi-advanced-sitemap
💻 Repository: GitHub – webbycrown/strapi-advanced-sitemap

🎥 Overview & Usage Demo

A short introduction and quick overview of Strapi Advanced Sitemap, showcasing how to build manual or dynamic XML sitemaps, publish sitemap indexes, and control access per role inside the Strapi admin panel.

▶️ Watch Full Video on YouTube


✨ Features

🗂️ Manual Sitemap Builder

  • Single sitemap (<urlset>): curate individual URLs with optional priority values
  • Sitemap index (<sitemapindex>): reference other sitemap files (internal or external)
  • Automatic URL resolution: combine relative paths with your site base URL
  • UI hints & validation: friendly helper text, required field checks, URL previews

🔁 Dynamic Collection Sitemaps

  • Pattern-based URLs: use tokens like /blog/[slug] (supports nested fields)
  • Entry prefix & base path: compose clean URLs without extra middleware
  • Frequency, priority, lastmod: configure crawl metadata per sitemap
  • Draft filtering: includes only published entries from Draft & Publish collections

🔒 Permission-Aware Delivery

  • Role gating: every endpoint maps to an action (plugin::strapi-advanced-sitemap.controller.*)
  • Public crawler control: enable only the endpoints you want search engines to reach
  • API token support: respect token-bound permissions for programmatic access

🛠️ Admin-First Workflow

  • Inline editing: manage everything from Settings → Strapi Advanced Sitemap
  • Frontend base URL control: store the live site origin once and reuse it across manual and collection previews
  • Instant feedback: clear success/error messages plus live URL previews for every manual entry
  • No redeploys: sitemap definitions are stored in Strapi entities

📸 Feature Screens

Configure Sitemap Page

Configure Sitemap Page

Permissions in Public Role Screen

Permissions in Public Role Screen

Manual Sitemap Settings (Sitemap Index)

Manual Sitemap Settings (Sitemap Index)

Manual Sitemap Settings (URL Set)

Manual Sitemap Settings (Url Set)

Collection Sitemap Settings

Collection Sitemap Settings

Collection Sitemap Entry

Collection Sitemap Entry


🛠️ Installation

Via npm

npm install @webbycrown/strapi-advanced-sitemap

Via yarn

yarn add @webbycrown/strapi-advanced-sitemap

Enable the plugin

Update config/plugins.js:

module.exports = {
  'strapi-advanced-sitemap': {
    enabled: true,
  },
};

Restart Strapi and rebuild the admin panel:

npm run build
npm run develop

⚡ Quick Start

  1. Open the admin panelSettings → Strapi Advanced Sitemap
  2. Add a manual sitemap (single or index) and configure filename/base path
  3. Add entries
    • Single sitemap: supply URLs (relative or absolute) + optional priorities
    • Index sitemap: supply links to other sitemap files
  4. Add a collection sitemap: pick a collection type, define a pattern (e.g. /articles/[slug]), and adjust metadata
  5. Grant permissions: Settings → Users & Permissions → Roles → Public (or another role) → enable the sitemap actions:
    • serveRootSitemap
    • serveManualSitemapIndex
    • serveManualSitemapFile
    • serveCollectionSitemapFile

Available Endpoints

  • /sitemap.xml – root sitemap index (manual + collection entries)
  • /sitemaps/manual-sitemaps – manual sitemap index (if configured)
  • /sitemaps/{filename}.xml – individual manual sitemap files
  • /api/strapi-advanced-sitemap/collection-sitemaps/{id}.xml – collection XML (also linked from the root)

🧭 Manual Sitemap Types

| Type | Emits | When to use | Entry expectations | |------|-------|-------------|--------------------| | Single sitemap | <urlset> | Hand-curated URLs (blogs, landing pages) | Each entry is a path or absolute URL; optional priority | | Sitemap index | <sitemapindex> | Aggregate internal/external sitemap files | Each entry points to another sitemap file |

Relative paths are automatically combined with your configured base URL and per-sitemap base path.


🧱 Collection Sitemap Patterns

  • Use [fieldName] tokens (nested allowed: [author.slug]) to build URLs
  • Combine with “Entry prefix” or “Base path” to match your routing strategy
  • lastmod draws from updatedAt, publishedAt, or createdAt
  • Draft entries are excluded when Draft & Publish is enabled

Example pattern:

/articles/[slug]

🔐 Permissions & Security

  • Actions live under plugin::strapi-advanced-sitemap.*
  • Denied roles receive 401 Unauthorized responses
  • API tokens respect the same action mapping
  • Manual sitemaps store relative paths only—final URLs are resolved server side

🧪 Troubleshooting

| Symptom | Fix | |---------|-----| | Sitemap returns 401 | Enable the corresponding plugin actions for that role | | Manual sitemap URL 404s | Check filename + base path, ensure “Save changes” was clicked | | Collection sitemap empty | Verify entries are published and the pattern resolves without leftover tokens | | Admin UI stale | Run npm run build and restart Strapi |


📦 Publishing Notes

When submitting to the Strapi Marketplace include:

  • Summary: “Configure manual and dynamic XML sitemaps from the Strapi admin.”
  • Feature bullets (manual vs index, collection patterns, permissions)
  • Screenshots of the Settings UI
  • Compatibility (Strapi version, Node version)
  • Link to this README for docs

📣 Changelog

v1.0.6

  • 📝 Updated the README to properly display the YouTube preview image in Any documentation.

v1.0.5

  • 📝 Updated README to include Youtube Image

v1.0.4

  • 📝 Updated README to include Demo Video section
  • ⚡ Improved documentation clarity for plugin setup and usage

v1.0.3

  • 🐛 Fixed bugs.
  • 🛠️ Resolved minor issues affecting

v1.0.2

  • 📝 README documentation updates

v1.0.1

  • 📝 README documentation updates
  • ✨ Improved helper text and UI hints in admin settings

v1.0.0

  • ✨ Initial release of Strapi Advanced Sitemap
  • 🧭 Manual sitemap builder supporting URL sets and sitemap indexes
  • ⚙️ Dynamic collection sitemaps powered by pattern tokens
  • 🔐 Role-based access control for each sitemap endpoint
  • 🌍 Configurable frontend base URL with live preview inside the admin panel
  • 📦 Easy integration and management from Strapi settings
  • 🚀 Published to NPM: @webbycrown/strapi-advanced-sitemap

📝 License

MIT – see LICENSE for details.