TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I made a browser-based chat app. Based on node.js and nodechat.

112 pointsby isaacsualmost 15 years ago

25 comments

keylealmost 15 years ago
That was fantastic and fast, but it definitely needs Flood control <a href="http://www.irchelp.org/irchelp/mirc/flood.html" rel="nofollow">http://www.irchelp.org/irchelp/mirc/flood.html</a> and <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat_flood" rel="nofollow">http://en.wikipedia.org/wiki/Internet_Relay_Chat_flood</a>
评论 #1590516 未加载
dprice1almost 15 years ago
I got a series of "lol" popup dialogs, then was pushed out of the room and returned to Hacker News. I was fairly frightened by this turn of events and won't return using my normal browser without some assurances that I'm not going to be victimized. I guess I'll fire up a virgin firefox profile and try some more.<p>On the user interface side, it would make sense if any line starting with "/" was interpreted as a command (legit or not). Otherwise, you'll have a lot of "/help" and so forth in the channels. Especially since "/print" <i>is</i> a valid command.<p>Update: Not sure, but I think someone has now injected some JS which causes everyone else in the channel to continuously spam it with the word "crash". Good times...
davialmost 15 years ago
wow too bad it tanked so quickly with spammer types<p>very cool and thought provoking. BTW, I was "foo". :)<p>Feature request: When I log out &#38; come back to a room, the conversation should still be there.<p>edit: interesting, someone just downvoted a bunch of comments here. HN has grown large and attractive to idjits. I upvoted the zeros back to ones.
评论 #1590515 未加载
isaacsualmost 15 years ago
You can spawn your own twich room by just linking to<p><a href="http://twich.me/any_room_name" rel="nofollow">http://twich.me/any_room_name</a> or <a href="http://2wi.ch/any_room_name" rel="nofollow">http://2wi.ch/any_room_name</a><p>Works on iOS and Android too.<p>Comments and feedback appreciated.
评论 #1590272 未加载
评论 #1590385 未加载
rksprstalmost 15 years ago
Bug (or feature I guess): if I scroll up and someone posts, it autoscrolls me down to the page.
评论 #1590440 未加载
carbocationalmost 15 years ago
If someone types an extended string of unbroken characters, you should break that string for them. If you don't, the horizontal autoscroll bar appears and actually blocks the 1 most recent comment.
jerfalmost 15 years ago
Unless you've fixed a XSS bug in the hour since it was posted here, kudos on being the first Node.js chat site I've seen like this that was not vulnerable to XSS discoverable within ten seconds.
评论 #1590375 未加载
评论 #1590373 未加载
heyadayoalmost 15 years ago
Open sourced code or it didn't happen.
评论 #1590378 未加载
akkartikalmost 15 years ago
How's it different from <a href="http://github.com/ry/node_chat" rel="nofollow">http://github.com/ry/node_chat</a>?<p>Here's my clone with a shared jukebox: <a href="http://github.com/akkartik/node_chat" rel="nofollow">http://github.com/akkartik/node_chat</a>
评论 #1590300 未加载
KingOfBalmost 15 years ago
Great work, was fun till the spammers showed up.<p>You leaning towards open sourcing it or selling access to chat servers?
评论 #1590505 未加载
mike-cardwellalmost 15 years ago
Beautiful.<p>However, your restrictions on names are too strict. I should be able to use the name 話筒. Nice that I can use chinese characters in the chat room name though.<p>Do you have any intention to monetise this? If so, do you have any ideas you'd be willing to share?
mike-cardwellalmost 15 years ago
Also, do you intend on making it possible to use without javascript enabled? An iframe for the chat input and one for the output each doing long polls with meta refreshes should do it. Considerably less efficient of course, but opens the app to more users...
RiderOfGiraffesalmost 15 years ago
Can't read the dark grey on black.
isaacsualmost 15 years ago
hi everyone. suggestion: start your own twich by just linking to <a href="http://twich.me/[roomname]" rel="nofollow">http://twich.me/[roomname]</a><p>and post the link to get others chatting with you. it's getting too crowded in the main room.
statictypealmost 15 years ago
Interesting because injecting script tags shows them properly escaped but also seems to be evaluating them. Not sure how both can happen at the same time.
denikalmost 15 years ago
here's another long polling chat, in Python and with source code: <a href="http://chat.gevent.org" rel="nofollow">http://chat.gevent.org</a>
d0malmost 15 years ago
Really out of subject; but those colors are pretty cool. I wish I had a theme like that for Textmate or IRC.
评论 #1590519 未加载
chegraalmost 15 years ago
Love it, I'm at <a href="http://twich.me/chegra" rel="nofollow">http://twich.me/chegra</a>
jarinalmost 15 years ago
I love the embedded YouTube :)
woogleyalmost 15 years ago
I think I would be more impressed if this used WebSockets or something. How many Node chat apps have we seen? .. Actually, how many AJAX chat apps have we seen? I'd like to see a different network project, or at least one that uses sockets instead of AJAX polling ..
评论 #1590656 未加载
kwamenum86almost 15 years ago
Still vulnerable to XSS...
lalalalaalmost 15 years ago
for (i=0;i&#60;=500;i++) { $('input#entry').val('kjhjkh' + i); $('input#entry-btn').click(); } or you could just push it to the url<p>heaps of people have injected js too
评论 #1590669 未加载
isaacsualmost 15 years ago
hmm... someone's stress testing <a href="http://2wi.ch/hackernews" rel="nofollow">http://2wi.ch/hackernews</a> atm. let's adjourn someplace else. suggestions?
评论 #1590396 未加载
Mpdreamzalmost 15 years ago
Love the BitchX inspired theme :)
butualmost 15 years ago
I love this one!!! I can start the group chat in a second!!!