How Syndicator Builds Its Atom Feed, and Why Each Entry ID Is the Article Link
Every Syndicator build writes /feed.xml, an Atom 1.0 feed of the newest items from all 119 sources in feeds.json. It's the one-subscription way to follow the whole network in a reader. The code that writes it is under 30 lines in lib/render.mjs, and it follows RFC 4287 closely. Three choices in it are worth knowing about if you read the feed, or if you publish one of the feeds it reads: where each entry's ID comes from, which date becomes updated, and what happens to items that carry no date at all.
The code
The build sorts every collected item newest first, keeps up to 1,000, and hands them to atomFeed(). Each entry is a fixed template:
`<entry>
<title>${esc(item.title)}</title>
<link href="${esc(item.link)}"/>
<author><name>${esc(item.siteName)}</name><uri>${esc(item.siteUrl)}</uri></author>
<updated>${esc(item.published)}</updated>
<id>${esc(item.link)}</id>
<summary type="text">${esc(item.summary)}</summary>
</entry>`
The feed head carries a title, a subtitle, a rel="self" link to https://syndicator.net/feed.xml, an alternate link to the home page, a feed-level author and https://syndicator.net/ as the feed ID. The feed's own updated is the date of the newest entry.
What RFC 4287 asks for
Here is how the output lines up with the required parts of the spec:
| RFC 4287 rule | What Syndicator writes |
|---|---|
Feed has exactly one id, title and updated | Yes, all three |
Feed SHOULD have a rel="self" link | Yes |
| Author on the feed, or on every entry | Both. Entries name the source site |
Each entry has exactly one id, title and updated | Yes |
| Dates are RFC 3339 date-times | toISOString() output, like 2026-11-25T10:00:00.000Z |
The entry <link> has no rel attribute. That's fine: the spec says a link without rel "MUST be interpreted as if the link relation type is alternate". Summaries are plain text, cut at a word boundary near 200 characters, so a reader shows a short excerpt and sends you to the original site. There's no <content> element and no <published>.
A sample feed built from the test fixtures parses cleanly in Python's XML parser and in the feedparser library, which read every ID, date and author as expected.
The entry ID is the link
This is the choice with the most consequences. RFC 4287 section 4.2.6 says atom:id is "a permanent, universally unique identifier", and that when a document is "syndicated, republished, exported, or imported, the content of its atom:id element MUST NOT change."
Syndicator doesn't carry the source's identifier through. Its parser in lib/xml.mjs reads a link first and falls back to guid only when there's no link. Whatever URL it finds becomes both <link href> and <id>. An Atom source entry like this:
<entry>
<id>tag:example.org,2026:post-42</id>
<link rel="alternate" href="https://example.org/post-42/"/>
...
</entry>
comes out of Syndicator with <id>https://example.org/post-42/</id>. The tag: ID is gone. An RSS item with <guid isPermaLink="false">b-1001</guid> loses its guid the same way.
The W3C feed validator's documentation is blunt about IDs you pass along from other feeds: "Do not canonicalize ids that you are resyndicating from other sources. Those must be character by character identical to the original." Syndicator doesn't canonicalize anything, but it doesn't keep the original either.
Is that wrong? Strictly, yes. In practice it's a defensible trade for an aggregator. Every entry points off-site, and the link is what a reader opens. As long as a source's URLs hold still, the ID holds still. The spec even has a proper tool for this case, the atom:source element, which lets a copied entry keep its original feed's metadata. Syndicator doesn't use it.
The risk is concrete, though. Readers decide "have I seen this?" by ID, and RFC 4287 says processors "MUST compare atom:id elements on a character-by-character basis". If a source changes a post's slug, or starts adding ?utm_source=rss to item links, every affected post gets a new ID in Syndicator's feed and shows up as unread again.
There's no deduplication step either. If two sources link to the same URL, the feed has two entries with the same ID and different authors. A test feed with that case parsed fine, and feedparser kept both entries. The spec allows it: entries with the same ID "represent the same entry", and processors "MAY choose to display all of them or some subset of them". So what you see depends on your reader.
Updated means published
The parser looks for a date in this order: pubDate, published, updated, date, dc:date, issued. The first one present wins. For an Atom source that sends both, that's published.
Run through the parser, an entry with <published>2026-11-01T09:00:00Z</published> and <updated>2026-11-26T15:30:00Z</updated> comes out with updated set to November 1. Edits never move an entry in Syndicator's feed.
The spec leaves room for this. It defines atom:updated as the last change "the publisher considers significant", and adds that "not all modifications necessarily result in a changed atom:updated value." For a stream of headlines, holding the original date is the calmer behavior: a typo fix on the source site doesn't push the post back to the top of everyone's reader.
Undated items get a new date every build
Items with no parseable date get the build time instead, through the fallbackDate option. The feed is parsed fresh on every build, so the fallback is fresh too.
Parsing the same undated item for builds at 02:00 and 14:00 UTC gave two different values, 2026-11-27T02:00:00.000Z and 2026-11-27T14:00:00.000Z. Each time the item sorts to the top of the stream, and because the feed's own updated comes from the newest entry, the whole feed reports the build time too. A reader that tracks updated sees that item as changed after every rebuild. The post on feed date formats covers how a date that fails to parse lands in the same place.
Size and caching
config.mjs sets feedLength to 1,000 and perFeed to 5. With 119 sources that's at most 595 entries, so nothing is cut today. The cap starts to matter past 200 sources. The _headers file gives /feed.xml a Cache-Control: public, max-age=1800, so a reader that polls more often than every 30 minutes can be served a cached copy. An entry whose source sends no description gets an empty <summary type="text"></summary>, which the spec allows but advises against.
What publishers can do
If your site is one of the sources, three things keep your posts behaving well in Syndicator's feed and in any other aggregator that works the same way:
- Keep post URLs stable once published. A slug change is a new entry.
- Leave tracking parameters off item links in your feed.
- Give every item a date. An undated item is the one that keeps jumping to the top.
The rest of the pipeline is covered in how Syndicator keeps one broken feed from emptying the front page and in the look at the OPML export that sits next to the Atom feed in the same file. For why the output is Atom when every source is RSS, see RSS vs Atom vs JSON Feed.