
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@answerable-kit/sitemap
Advanced tools
Sitemap builder with smart path-based defaults for the Answerable SEO toolkit.
Sitemap builder for the Answerable SEO toolkit. Takes a list of paths, applies smart defaults inferred from path patterns, and returns a Next.js-compatible MetadataRoute.Sitemap.
v0.1.0.
buildSitemap()andsitemapIndex()ship today with smart path-based defaults for priority and change frequency.
pnpm add @answerable-kit/sitemap
# requires next >= 14
// app/sitemap.ts
import { buildSitemap } from '@answerable-kit/sitemap';
export default function sitemap() {
return buildSitemap(
[
{ path: '/' },
{ path: '/about' },
{ path: '/privacy' },
{ path: '/blog/launch' },
{ path: '/blog/post-1', lastModified: '2026-05-14' },
],
{ baseUrl: 'https://acme.com' },
);
}
Priority and changeFrequency are inferred from path patterns when you don't set them explicitly:
| Path pattern | priority | changeFrequency |
|---|---|---|
/ (home) | 1.0 | daily |
/blog/*, /news/*, /posts/* | 0.7 | weekly |
/docs/* | 0.6 | weekly |
/products/*, /pricing | 0.8 | weekly |
/about, /privacy, /terms, /contact, /faq | 0.3 | yearly |
| Anything else | 0.5 | monthly |
Explicit priority or changeFrequency on a route always wins over inferred defaults.
import { sitemapIndex } from '@answerable-kit/sitemap';
const index = sitemapIndex([
{ url: 'https://acme.com/sitemap-1.xml' },
{ url: 'https://acme.com/sitemap-2.xml', lastModified: new Date() },
]);
MIT © 2026 Anuj Ojha
FAQs
Sitemap builder with smart path-based defaults for the Answerable SEO toolkit.
We found that @answerable-kit/sitemap 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.