What is the best way to generate an atom or rss feed in node.js application
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 !