{"library":"express-sitemap-xml","type":"library","category":null,"description":"express-sitemap-xml is an Express.js middleware designed to automatically generate and serve sitemap.xml files based on a dynamic list of URLs provided by an async function. It intelligently handles large sitemaps, automatically splitting them into multiple files and generating a sitemap index (sitemap.xml) when more than 50,000 URLs are present, adhering to the sitemap protocol. The current stable version is 3.1.0, with recent updates indicating active maintenance and feature additions, such as image support and base URL fixes. It differentiates itself by its automatic handling of large sitemaps, caching mechanisms for performance, and a flexible API that can also be used independently of Express for pure sitemap generation. The package calls the URL-fetching function at most once every 24 hours, caching the results to optimize performance for subsequent requests.","language":"javascript","status":"active","version":"3.1.0","tags":["javascript","express","google","serve sitemap","serve sitemap.xml","site map","site map xml","sitemap","sitemap generator"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-sitemap-xml","imports":["import expressSitemapXml from 'express-sitemap-xml'","import { buildSitemaps } from 'express-sitemap-xml'","await getUrlsFromDatabase(); return [{ url: '/page', lastMod: new Date(), changeFreq: 'weekly' }];"]},{"cmd":"yarn add express-sitemap-xml","imports":[]},{"cmd":"pnpm add express-sitemap-xml","imports":[]}],"homepage":null,"github":"https://github.com/feross/express-sitemap-xml","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-sitemap-xml","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-sitemap-xml/compatibility"}}