4 ms·
Show HN: Webchat with API in just ~60 lines of NodeJS
- asymptotic 16y agoRemember twitch.me (node.js realtime chat)? http://news.ycombinator.com/item?id=1840914 http://news.ycombinator.com/item?id=1840914 Chat.io, new HTML5 / Node.JS-powered social group, launches http://news.ycombinator.com/item?id=2343840 http://news.ycombinator.com/item?id=2343840 Show HN: Node.js console chat http://news.ycombinator.com/item?id=2391389 http://news.ycombinator.com/item?id=2391389 The node.js chat server that was posted earlier http://news.ycombinator.com/item?id=980838 http://news.ycombinator.com/item?id=980838 Show HN: Meet the new Ajax IM (with Node.js) http://news.ycombinator.com/item?id=1127654 http://news.ycombinator.com/item?id=1127654 NodeChat http://news.ycombinator.com/item?id=1866401 http://news.ycombinator.com/item?id=1866401 Ragechat: http://news.ycombinator.com/item?id=1889883 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 http://news.ycombinator.com/item?id=2306423 Chat system with WebSocket and node.js http://news.ycombinator.com/item?id=1020577 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?
- robinduckett 16y agoHeh 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)
- erik_p 16y agoplease do.
- kaerast 16y agoSure 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.
- DTrejo 16y agoCan you talk about faye vs other chat options?
- kaerast 16y agoThe 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.
- igorgue 16y agoTalking about "doing anything constructive with your free time" while listing all Node.JS chat apps here.
- kaerast 16y agoI 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.
- mrchess 16y agoYou'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.
- kaerast 16y agoI'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.
- malvim 16y agoHeh, 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! :)
- asymptotic 16y agoYou're welcome! I'm always glad to help. http://lmgtfy.com/?q=node.js+chat+site%3Aycombinator.com http://lmgtfy.com/?q=node.js+chat+site%3Aycombinator.com
- pwr 16y agoxss anyone
- robinduckett 16y agolol, 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.
- kaerast 16y agoyeah, 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.
- deleted 16y ago[deleted]
- deleted 16y ago[deleted]
- jamesu 16y agoIs it just me, or is Webchat in node.js the new "Hello World"?