Take the 2-minute tour ×

I'm trying to add newsfeeds to an node.js application using express.js and I can't find a painless way to take a json model and turn it into an atom or rss feed. Best solutions i've come up with is use an Xml library (also not so hot on node.js) or EJS template and build it up by hand.

There seems to be plenty of code for parsing rss/atom into json, but not for going the other direction. Am I missing something?

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

Searching the NPM registery for RSS

gives rss

See their github page for more details.

As general advice, do search the npm registry for relevant keywords. It'll make your life easier.

share|improve this answer
Both of those are parsers, not generators –  Arne Claassen Sep 1 '11 at 19:20
@ArneClaassen I realised and removed them. I replaced it with node-rss which is a generator. –  Raynos Sep 1 '11 at 19:20
Sweetness! That's precisely what i was looking for. thx! Ok, lesson for next time.. search npm, don't just trust google –  Arne Claassen Sep 1 '11 at 19:33
add comment

You can use Feed for Node.js. It is a very simple wrapper that I created a couple of weeks ago to generate some Atom and RSS feed in no time.

Simply install it using NPM:

$ npm install feed

Then, follow the documentation available there http://projets.jpmonette.net/en/feed !

share|improve this answer
Awesome thanks. –  Akshat Jiwan Sharma Jun 24 '13 at 3:33
add comment

I'm afraid not. The best I can do is recommend you look at wheat, a "complete blogging solution" written in Node. It has a couple of feed supports, but they're mostly just template-driven hand-written XML things.

Or, you could write one and submit it to NPM!

share|improve this answer
I figure if i have to roll my own I might as well release back into the ecosystem. Was just hoping i wouldn't have to :) –  Arne Claassen Sep 1 '11 at 19:20
add comment

Your Answer


