$ cd ..
$ cat ~/writing/til/hashnode-rss-instead-of-graphql.md

Hashnode's GraphQL API is paid now; the RSS feed isn't

The blog booth reads my Hashnode posts from RSS, because the GraphQL API moved behind the Pro plan.

written
tags
hashnode · rss · nextjs

I wanted the blog booth to list my Hashnode posts. The obvious route, gql.hashnode.com, now answers with a redirect to an announcement: the API is Pro-only.

The RSS feed at /rss.xml is still free and has everything a preview needs: title, brief, date, tags and the cover image.

Two parser settings mattered with fast-xml-parser:

const parser = new XMLParser({
  // the cover lives in <enclosure url="…">, an attribute
  ignoreAttributes: false,
  attributeNamePrefix: "",
  // keep values as strings: a tag called "2024" must not become a number
  parseTagValue: false,
});

The feed has no read time, so I estimate it from the post's word count at 200 words a minute.

-- INSERT --