Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How to Pull Your Hashnode Blog Into Your Portfolio (No Paid API Needed) 🚀

Описание и применение

Получите посты из Hashnode через RSS‑фид и отобразите их на портфолио без платного API, используя fast‑xml-parser и серверный рендеринг.

Задача

Integrating Hashnode blog posts into a personal portfolio site without paying for the GraphQL API.

Результат

A lightweight, free solution that pulls Hashnode posts into a portfolio, improving content visibility and SEO without extra costs.

Рабочий процесс

  • Fetch the RSS feed from https://<subdomain>.hashnode.dev/rss.xml
  • Parse XML using fast-xml-parser, unwrapping CDATA
  • Map items to typed post objects (title, slug, publishedAt, brief, coverImage, tags, html)
  • Estimate read time by word count in HTML
  • Wrap fetching logic in a getBlogPosts service function
  • Render posts server‑side for SEO

Доказательства

Every Hashnode publication ships a free, public RSS feed

Источник

  • Дата записи: 2026-09-09T13:30:20.596Z