Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Webchat with API in just ~60 lines of NodeJS (kaerast.info)
33 points by kaerast on April 6, 2011 | hide | past | favorite | 16 comments



Remember twitch.me (node.js realtime chat)? http://news.ycombinator.com/item?id=1840914

Chat.io, new HTML5 / Node.JS-powered social group, launches http://news.ycombinator.com/item?id=2343840

Show HN: Node.js console chat http://news.ycombinator.com/item?id=2391389

The node.js chat server that was posted earlier http://news.ycombinator.com/item?id=980838

Show HN: Meet the new Ajax IM (with Node.js) http://news.ycombinator.com/item?id=1127654

NodeChat http://news.ycombinator.com/item?id=1866401

Ragechat: http://news.ycombinator.com/item?id=1889883

Using node.js, <blah blah>, to make a real time chat app http://news.ycombinator.com/item?id=2306423

Chat system with WebSocket and node.js http://news.ycombinator.com/item?id=1020577

Hey man, doing anything constructive with your free time is a rare and admirable trait. But really, another Node.js chat application? Really?


Sure there's plenty of node.js chat systems out there, but this is quite a nice demo of Faye and how easy it is to build with it.

The Node.JS examples shared previously have been more complete systems from what I can tell, this is a very minimal app designed as basis for you to build something bigger and better. Rather than complaining about needing extra features, fork the code and build something fun and worthwhile.


Can you talk about faye vs other chat options?


The main reason for using Faye is probably the fact that it can run on Node.JS or Rack. This example is running Node.JS, but where Faye really excels is in a Rack environment - adding asynchronous functionality to Rails/Sinatra without needing an extra server running Node.


Talking about "doing anything constructive with your free time" while listing all Node.JS chat apps here.


I wonder just how many hours have been wasted today by people chatting on this. I'd have added metrics if I wanted to do anything other than show a minimal working example of Faye/NodeJS with source code.


You're right, and I have no idea why a thread like this still makes it to the frontpage. It is unfortunate that you need x karma to downvote threads because even us who have been here for a while still don't have the ability to assist with content control.


I'm guessing if I'd only submitted the source code this would have got just one or two upvotes. And it's really the source code I was wanting to share as a way of showing what you can do with Faye/NodeJS.


Heh I made Ragechat :D

I took it down because it was a bit of a time sink, but I am going to put it back up at some point (because everyone loves rage faces :D)


please do.


Heh, you know what, this was not a very nice comment on your part, but I'm bookmarking it right now for when I want to learn more about nodejs.

Thanks for the resource list! :)


You're welcome! I'm always glad to help.

http://lmgtfy.com/?q=node.js+chat+site%3Aycombinator.com


Is it just me, or is Webchat in node.js the new "Hello World"?


xss anyone


lol, yeah, he updated the code to filter out <script> tags and his RegEx is wrong and now won't allow any messages to come through.


yeah, I rather stupidly didn't think to add any XSS protection initially because this was a simple tech demo. And yes, I managed to balls up the regex for a while.

It's working nicely again now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: