# Sitemaps, feeds and llms.txt

Velora keeps `/sitemap.xml`, `/news-sitemap.xml`, `/feed.xml`, `/llms.txt` and `/robots.txt` for your front end on every site, so no content can take those addresses. Serve each from the delivery API, and cache them like pages: when the [revalidate webhook](https://developers.velora.build/caching.md) names the reads they are built from, rebuild them, so a story taken down leaves them at once.

Every entry needs a full URL. Use `/site`'s `url` as the origin, or your own setting when Velora does not have one.

## Sitemap

`/sitemap` lists the site's addresses: the front page, the newest 50,000 live articles, static pages, sections, writers with live articles, entity type indexes, and up to 50,000 entity pages that search engines should index. Articles, static pages and entities carry `updated_at`; the rest have `null`, so leave out `lastmod` for them.

```json
{"items": [{"path": "/", "updated_at": null}, {"path": "/racing/tour-stage-one", "updated_at": "2026-11-22T18:02:11Z"}]}
```

Search engines take up to 50,000 URLs per file. Serve `/sitemap.xml` as a sitemap index of numbered files (`/sitemaps/1.xml`, `/sitemaps/2.xml`, ...), each a slice of the list, with each file's newest `updated_at` as its `lastmod`. An archive of more than 50,000 articles needs the older ones too: walk `/articles` by [cursor](https://developers.velora.build/content.md#paging) for them.

## Google News sitemap

`/news-sitemap.xml` lists stories published in the last 48 hours, up to 1,000. Page through `/articles?limit=50` until an article is older than 48 hours, and write each with its `title`, `published_at` and the site's name and language (`/site`'s `language`).

## RSS feed

`/feed.xml` is RSS 2.0 of `/articles?limit=50`. Use each article's `id` as the `guid` (not a permalink, since addresses can change), `published_at`, `excerpt`, `authors`, `category` and `cover`.

## llms.txt

`/llms.txt` describes the publication for AI agents ([llmstxt.org](https://llmstxt.org)): what it is, its sections and topics, and its latest 50 articles, each linked to its [markdown copy](https://developers.velora.build/routing.md#markdown-copies). Velora writes it:

```bash
curl -H "Authorization: Bearer $VELORA_READ_KEY" "https://delivery.velora.build/$SITE_ID/llms.txt"
```

Serve the answer as it is, with `Content-Type: text/markdown; charset=utf-8`. The webhook does not name it, so keep it for up to an hour.

## robots.txt

Point it at your sitemaps:

```
User-agent: *
Allow: /

Sitemap: https://your-site.com/sitemap.xml
Sitemap: https://your-site.com/news-sitemap.xml
```

Keep preview and search routes out of the index with `noindex` on the pages themselves.
