• Verified
  • Free plan

sitemap.js

Listed under GitHub repos

sitemap.js is an open source Node.js library and command line tool that generates sitemap XML files and indexes from a list of URLs. The CLI can also parse, update and validate existing sitemaps.

Used for

  • sitemap xml generation
  • sitemap index creation
  • sitemap validation

What sitemap.js does

sitemap is an open source TypeScript package published on npm as sitemap. It generates sitemap XML files by streaming entries rather than building a full document in memory, so a large list of URLs can be written out incrementally. It installs with npm install --save sitemap and requires Node.js 22.22.1 or later. The package is ESM-only and is loaded with import; require works only where Node supports require of ES modules.

The same package ships a command line interface. Running npx sitemap with a list of URLs on standard input produces sitemap files, and the CLI can also parse, update and validate existing sitemaps. For programmatic use, SitemapStream takes a hostname option, accepts entries with url, changefreq and priority fields, and streamToPromise resolves when the output is complete. Entries can be filtered or deleted during parsing.

Key features

Streaming sitemap generation
Writes sitemap XML incrementally through SitemapStream instead of holding the whole document in memory.
Command line interface
Run npx sitemap with a URL list on standard input to produce sitemaps without writing code.
Parse and validate sitemaps
The CLI can parse, update and validate existing sitemap files, not only create new ones.
Sitemap index files
Splits one large URL list across multiple sitemap files plus an index that references them.
URL, changefreq and priority fields
Each entry accepts a url plus optional changefreq and priority values written into the XML.
Filtering during parsing
Items can be filtered out or deleted while an existing sitemap is being parsed.
Express server example
The repository documents serving a sitemap from an Express route and updating it periodically.
ESM-only Node package
Ships as an ES module requiring Node.js 22.22.1 or later and is loaded with import.
TypeScript source, MIT licence
Written in TypeScript and released under the MIT licence, with the code hosted on GitHub.

How it works

  1. Install the package with npm install --save sitemap on Node.js 22.22.1 or later.
  2. Import SitemapStream and streamToPromise from the sitemap module.
  3. Create a SitemapStream with the hostname of the site being mapped.
  4. Write entries containing url, changefreq and priority into the stream.
  5. End the stream and await streamToPromise to get the finished XML.
  6. For large lists, emit several sitemaps plus an index file referencing them.

Plans and pricing

The package is installed from npm under the MIT licence at no cost; the material lists no paid edition.

Integrations and platforms

Works with

  • Express

Available as

  • CLI
  • API

Repository facts

  • Repositoryekalinin/sitemap.js
  • LanguageTypeScript
  • Stars1710
  • Forks157
  • LicenceMIT
  • Created2011-06-29
  • Last commit2026-11-01
  • Open issues27
  • nodejs
  • sitemap
  • sitemap-generator
  • sitemap-xml

Services and details

  • Does SEO work itself

    Yes
  • Free plan or free tools

    Yes
  • API or MCP server

    Yes

No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.

Compare with other SEO tools:

About the company

Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.