4 min read
RSS Feeds in 2025: Still Relevant and How to Implement Them
RSS is not dead. It powers podcast apps, news readers, and content aggregators. Learn how to implement RSS for your blog.
R
ruben
RSS Is Not Dead
RSS powers more of the internet than most people realize: podcast distribution (every podcast is an RSS feed), news aggregators (Feedly, Inoreader), email newsletters (many tools pull from RSS), and content syndication. If you have a blog, you should have an RSS feed.
Implementation
// app/feed.xml/route.ts (Next.js)\nexport async function GET() {\n const posts = await getPosts({ limit: 50 });\n const xml = `<?xml version="1.0" encoding="UTF-8"?>\n <rss version="2.0">\n <channel>\n <title>Your Blog</title>\n <link>https://yoursite.com/blog</link>\n ${posts.map(p => `\n <item>\n <title>${p.title}</title>\n <link>https://yoursite.com/blog/${p.slug}</link>\n <description>${p.excerpt}</description>\n <pubDate>${new Date(p.publishedAt).toUTCString()}</pubDate>\n </item>`).join(')}\n </channel>\n </rss>`;\n return new Response(xml, { headers: { 'Content-Type': 'application/xml' } });\n}Auto-Discovery
Add this to your HTML head so feed readers can find your RSS automatically:
<link rel="alternate" type="application/rss+xml" title="Blog" href="/feed.xml" />