sitemap.js
Use sitemap.js when your application already knows the URLs that should be listed and needs to serialize them into sitemap XML.
Community support
Upvotes come from SearchEngineAnswer members. GitHub stars and reader reviews are counted separately.
Claim this tool if you maintain it.
- Best for
- Publishing
- Setup required
- Node.js
- Costs to check
- Hardware/hosting, integration and maintenance time; optional services are separate
- License in catalog
- MIT
GitHub repository
- GitHub stars
- 1,710
- Forks
- 156
- Last push
- 2026-11-01
- Primary language
- TypeScript
GitHub snapshot from . Stars count GitHub bookmarks. Reader ratings appear separately below.
How to install sitemap.js
-
Install the sitemap package in your Node.js project.
npm install --save sitemap - Prepare a canonical public URL inventory and choose the production hostname. Connect the generator to the build or request handler described in the README.
First tutorial for sitemap.js
- Build a fixture containing a public page, a redirect and a draft. Feed only the eligible URL to the generator.
- Open the XML and confirm the correct host and one intended URL. Fetch that URL to verify its status and canonical.
Where sitemap.js fits
Generate XML sitemaps from a Node.js build or a controlled URL inventory.
- When to choose another tool
- Use your CMS sitemap when it already reflects canonical public URLs. A custom generator helps when the inventory comes from several sources.
- First evaluation
- Generate a sitemap from a fixture containing a canonical page, a redirect and a draft. Verify that only the intended public URL is emitted and that it returns the expected status and canonical.
- How to interpret the result
- Filter and deduplicate before generation. Valid sitemap XML does not establish crawlability or indexing.
Reviews and discussion
Reader reviews
Be the first to share your experience with this tool.
Discussion
Ask a question or share a setup tip.
Flag an outdated detail
Include the field that needs updating and a source link. Copy your draft, then use the corrections policy to contact the editorial team.
Write a review or join the discussion