# @astrojs/sitemap

> Generate a sitemap for your Astro site

Latest version **3.7.4** (published 2026-08-31) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.7.4 |
| Published | 2026-08-31 |
| First published | 2022-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 27.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 62494 |
| Author | withastro |
| Maintainers | fredkschott, matthewp |
| Keywords | astro-integration, astro-component, seo, sitemap |

## Links

- npm: https://www.npmjs.com/package/@astrojs/sitemap
- Repository: https://github.com/withastro/astro
- Homepage: https://docs.astro.build/en/guides/integrations-guide/sitemap/
- Issues: https://github.com/withastro/astro/issues
- npm.io page: https://npm.io/package/@astrojs/sitemap

## Dependencies (2)

- [zod](https://npm.io/package/zod.md) ^4.3.6
- [sitemap](https://npm.io/package/sitemap.md) ^9.0.0

## Recent versions

- 3.7.4 (latest) — 2026-08-31
- 3.6.1-beta.3 (beta) — 2026-02-04
- 3.6.1-alpha.1 (alpha) — 2025-12-16
- 0.0.0-env-override-20241016131627 (experimental--env-override) — 2024-10-16
- 0.0.0-edge-middleware-regression-20241003093448 (experimental--edge-middleware-regression) — 2024-10-03
- 0.0.0-toolbar-improvements-20240420123233 (experimental--toolbar-improvements) — 2024-04-20
- 0.0.0-vite-runtime-api-20240221174846 (experimental--vite-runtime-api) — 2024-02-21
- 0.0.0-extra-logging-20231030194239 (experimental--extra-logging) — 2023-10-30
- 0.0.0-fragments-20231017161931 (next--fragments) — 2023-10-17
- 3.0.0-rc.1 (rc) — 2023-08-22
- 0.0.0-redirects-20230511203938 (next--redirects) — 2023-05-11
- 0.0.0-middleware-20230405160200 (next--middleware) — 2023-04-05
- 0.0.0-vercel-json-20230313201834 (next--vercel-json) — 2023-03-13
- 0.0.0-experimental-assets-20230307131344 (next--experimental-assets) — 2023-03-07
- 0.0.0-cloudcannon-fix-20230306211609 (next--cloudcannon-fix) — 2023-03-06
- … 69 more at https://npm.io/package/@astrojs/sitemap/versions

## README

# @astrojs/sitemap 🗺

This **[Astro integration][astro-integration]** generates a sitemap based on your pages when you build your Astro project.

## Documentation

Read the [`@astrojs/sitemap` docs][docs]

## Support

- Get help in the [Astro Discord][discord]. Post questions in our `#support` forum, or visit our dedicated `#dev` channel to discuss current development and more!

- Check our [Astro Integration Documentation][astro-integration] for more on integrations.

- Submit bug reports and feature requests as [GitHub issues][issues].

## Contributing

This package is maintained by Astro's Core team. You're welcome to submit an issue or PR! These links will help you get started:

- [Contributor Manual][contributing]
- [Code of Conduct][coc]
- [Community Guide][community]

## License

MIT

Copyright (c) 2023–present [Astro][astro]

[astro]: https://astro.build/
[docs]: https://docs.astro.build/en/guides/integrations-guide/sitemap/
[contributing]: https://github.com/withastro/astro/blob/main/CONTRIBUTING.md
[coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md
[community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md
[discord]: https://astro.build/chat/
[issues]: https://github.com/withastro/astro/issues
[astro-integration]: https://docs.astro.build/en/guides/integrations/

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