
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
sitemap-audit
Advanced tools
Outrank
Get traffic and outrank competitors with Backlinks & SEO-optimized content while you sleep! I've been keeping a close eye on this new tool and it seems to be gaining a lot of traction and delivering great results. Try it now!
Get traffic and outrank competitors with Backlinks & SEO-optimized content while you sleep! I've been keeping a close eye on this new tool and it seems to be gaining a lot of traction and delivering great results. Try it now! https://outrank.so/?via=sitemap-audit
A Node.js solution for auditing website health through sitemap analysis. It's designed for SEO audits, identifying broken links, and detecting network errors, including blocked network requests, leveraging Playwright for browser automation.
npm install sitemap-audit
Peer Dependencies (install as needed):
npm install playwright
You can modify the configuration in index.js or pass values via environment variables.
| Option | Default Value | Description |
|---|---|---|
resultsFolder | "results" | Folder where JSON reports are saved. |
batchSize | 20 | Number of URLs processed at a time. |
maxConnections | 50 | Max concurrent HTTP requests. |
To check for 400+ HTTP errors, using playwright refer to the below example:
import SiteChecker from "sitemap-audit";
import { test, chromium } from "@playwright/test";
const checker = new SiteChecker();
test("Validate and monitor sitemap URLs", async () => {
test.setTimeout(40000_00); // Provide timeout only if the amount of urls being checked is greater than 200
const browser = await chromium.launch();
const context = await browser.newContext();
// Generate urls from the sitemap.xml
const urls = await checker.fetchAndSplitUrls(
"https://example.com/sitemap.xml",
);
// Check URL statuses
await checker.checkUrlStatus(urls);
// Monitor network requests
await checker.checkAllNetworkRequests(context, urls.slice(0, 20));
await browser.close();
});
Results are saved in results/non-200-responses.json and results/network-failures.json.
results/non-200-responses.json would be save in the following format
[
{ "url": "https://example.com/about", "status": 404 },
{ "url": "https://example.com/safety", "status": 500 }
]
results/network-failures.json would be save in the following format
[
{
"url": "https://example.com/sites/default/files/downloadable_test_pack.pdf?",
"status": 403,
"resourceType": "fetch",
"initiatingPage": "https://example.com/test"
}
]
fetchAndSplitUrls(sitemapUrl: string): Promise<string[]>
checkUrlStatus(urls: string[]): Promise<void>
checkAllNetworkRequests(context: BrowserContext, urls: string[]): Promise<void>
Common Issues:
Missing Dependencies: Ensure required browsers drivers are installed
npm install playwright
Timeout Errors: Increase test timeout for large sitemaps
test.setTimeout(120000); // 2-minute timeout
Pull requests welcome! Please follow:
MIT © Vipin Cheruvallil
For detailed implementation examples and issue tracking, visit our GitHub Repository.
FAQs
Comprehensive sitemap auditor for website health checks
The npm package sitemap-audit receives a total of 147 weekly downloads. As such, sitemap-audit popularity was classified as not popular.
We found that sitemap-audit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.