# @nuxtjs/sitemap

> Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.

Latest version **9.1.0** (published 2026-10-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nuxtjs/sitemap
pnpm add @nuxtjs/sitemap
yarn add @nuxtjs/sitemap
bun add @nuxtjs/sitemap
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 9.1.0 |
| Published | 2026-10-13 |
| First published | 2017-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^22.22.3 \|\| ^24.15.0 \|\| >=26.0.0 |
| Dependencies | 13 |
| Unpacked size | 301.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 440 |
| Author | Harlan Wilton |
| Maintainers | pi0, atinux, danielroe, antfu, nicopennec, harlan_zw |

## Links

- npm: https://www.npmjs.com/package/@nuxtjs/sitemap
- Repository: https://github.com/nuxt-modules/sitemap
- Homepage: https://github.com/nuxt-modules/sitemap#readme
- Issues: https://github.com/nuxt-modules/sitemap/issues
- Funding: https://github.com/sponsors/harlan-zw
- npm.io page: https://npm.io/package/@nuxtjs/sitemap

## Dependencies (13)

- [ufo](https://npm.io/package/ufo.md) ^1.6.4
- [defu](https://npm.io/package/defu.md) ^6.1.7
- [ohash](https://npm.io/package/ohash.md) ^2.0.11
- [ofetch](https://npm.io/package/ofetch.md) ^1.5.1
- [radix3](https://npm.io/package/radix3.md) ^1.1.2
- [consola](https://npm.io/package/consola.md) ^3.4.2
- [sitemapd](https://npm.io/package/sitemapd.md) ^0.2.3
- [@nuxt/kit](https://npm.io/package/@nuxt/kit.md) ^4.6.0
- [ultrahtml](https://npm.io/package/ultrahtml.md) ^1.7.0
- [oxc-parser](https://npm.io/package/oxc-parser.md) ^0.153.0
- [oxc-walker](https://npm.io/package/oxc-walker.md) ^1.1.1
- [nuxtseo-shared](https://npm.io/package/nuxtseo-shared.md) ^6.0.0
- [nuxt-site-config](https://npm.io/package/nuxt-site-config.md) ^5.0.0

## Recent versions

- 9.1.0 (latest) — 2026-10-13
- 7.6.2 (latest-7) — 2026-10-12
- 8.6.2 (latest-8) — 2026-10-12
- 9.0.3 — 2026-10-13
- 9.0.2 — 2026-10-13
- 9.0.1 — 2026-10-12
- 9.0.0 — 2026-10-12
- 8.6.1 — 2026-09-30
- 8.6.0 — 2026-09-29
- 8.5.1 — 2026-09-12
- 8.5.0 — 2026-08-21
- 8.4.0 — 2026-08-20
- 8.3.4 — 2026-08-09
- 8.3.3 — 2026-08-04
- 8.3.2 — 2026-07-30
- … 110 more at https://npm.io/package/@nuxtjs/sitemap/versions

## README

<h1><a href="https://nuxtseo.com"><img src=".github/assets/icon.svg" width="40" height="40" alt="Nuxt SEO" align="top"></a> @nuxtjs/sitemap</h1>

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
[![Skill repository on skilld.dev][skilld-src]][skilld-href]

Nuxt Sitemap is a module for generating best-practice XML sitemaps that are consumed by the robots crawling your site.

New to XML sitemaps or SEO? Check out the [Controlling Web Crawlers](https://nuxtseo.com/learn-seo/nuxt/controlling-crawlers) guide to learn more about why you might
need these.

<p align="center">
<table>
<tbody>
<td align="center">
<sub>Made possible by my <a href="https://github.com/sponsors/harlan-zw">Sponsor Program 💖</a><br> Follow me <a href="https://twitter.com/harlan_zw">@harlan_zw</a> 🐦 • Join <a href="https://discord.gg/275MBUBvgP">Discord</a> for help</sub><br>
</td>
</tbody>
</table>
</p>

## Features

- 🌴 Single `/sitemap.xml` or multiple `/posts-sitemap.xml`, `/pages-sitemap.xml`
- 📊 Fetch your sitemap URLs from anywhere
- 😌 Automatic `lastmod`, image discovery and best practice sitemaps
- 🔄 SWR caching, route rules support
- 🎨 Debug using the Nuxt DevTools integration or the XML Stylesheet
- 🤝 Integrates smoothly with [Nuxt I18n](https://github.com/nuxt-modules/i18n) and [Nuxt Content](https://github.com/nuxt/content)

## Installation

💡 Using Nuxt 2? Use the [nuxt-community/sitemap-module](https://github.com/nuxt-community/sitemap-module) docs.

Install `@nuxtjs/sitemap` dependency to your project:

```bash
npx nuxt module add sitemap
```

> [!TIP]
> Using an AI agent? Get the @nuxtjs/sitemap Skill on [skilld.dev/gh/nuxt-modules/sitemap](https://skilld.dev/gh/nuxt-modules/sitemap).

💡 Generated your sitemap? Check which URLs Google has indexed with the free [Sitemap Validator](https://nuxtseo.com/tools/xml-sitemap-validator), or monitor indexing continuously with [Nuxt SEO Pro](https://nuxtseo.com/pro).

## Documentation

[📖 Read the full documentation](https://nuxtseo.com/sitemap) for more information.

## Demos

- [Dynamic URLs](https://stackblitz.com/edit/nuxt-starter-dyraxc?file=server%2Fapi%2F_sitemap-urls.ts)
- [i18n](https://stackblitz.com/edit/nuxt-starter-jwuie4?file=app.vue)
- [Manual Chunking](https://stackblitz.com/edit/nuxt-starter-umyso3?file=nuxt.config.ts)

## Sponsors

<p align="center">
  <a href="https://raw.githubusercontent.com/harlan-zw/static/main/sponsors.svg">
    <img src='https://raw.githubusercontent.com/harlan-zw/static/main/sponsors.svg' alt="Sponsors"/>
  </a>
</p>

## License

Licensed under the [MIT license](https://github.com/nuxt-modules/sitemap/blob/main/LICENSE.md).

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/sitemap/latest.svg?style=flat&labelColor=16152b&color=00a63e
[npm-version-href]: https://npmjs.com/package/@nuxtjs/sitemap

[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/sitemap.svg?style=flat&labelColor=16152b&color=00a63e
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/sitemap

[license-src]: https://img.shields.io/github/license/nuxt-modules/sitemap.svg?style=flat&labelColor=16152b&color=00a63e
[license-href]: https://github.com/nuxt-modules/sitemap/blob/main/LICENSE.md

[nuxt-src]: https://img.shields.io/badge/Nuxt-16152b?logo=nuxt&style=flat
[nuxt-href]: https://nuxt.com

[skilld-src]: https://skilld.dev/b/nuxt-modules/sitemap?style=flat&labelColor=16152b&color=00a63e&logoColor=ffffff
[skilld-href]: https://skilld.dev/gh/nuxt-modules/sitemap

---
_Source: https://npm.io/package/@nuxtjs/sitemap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
