5 ms·
Show HN: An Etherpad clone in Node.js and Socket.io
- colbyaley 13y agoThis is so cooool
- sethish 13y agoEtherpad is open source already. As is EtherpadLite (EPL), its node.js rewrite.
- JacksonGariety 13y agoGood point, editing title.
- petercooper 13y agoI had this opened in a tab and initially forgot what it was.. I thought it was some sort of artificial intelligence or ASCII movie, because it seems 1001 griefers are copy/pasting trash into it right now :-) Perhaps try a different URL of http://yugentext.com/hn http://yugentext.com/hn or whatever if you want to see it without it going at 30 fps..
- stbullard 13y agoI am always amazed by what people do when they're given anonymity and collaborative text editors - rarely positively. But this seems particularly bad. Is HN really so many twelve year olds (behaviorally, if not in calendar years)?
- lolcatsrfun 13y agolol u so old
- worldsayshi 13y agoIt kind of shows that it's not really about anonymity (I interpret it as that anyway). When there are enough amount of connected users it really favors destructive edits. And we are (mostly) anonymous here on hacker news as well but comments are mostly well behaved. And yes, some people are probably partly twelve year olds inside.
- JacksonGariety 13y agoQuestion for moderators... I made a mistake by linking directly to an editor. A mod should change the URL to just yugentext.com without the /0a9617. Would save this post from the spammers.
- JacksonGariety 13y agoThank you mods!
- javis 13y agoYou should wrap your JS in an anonymous function. People can just emit sockets from the console. e.g. socket.emit('msg', "text here");
- JacksonGariety 13y agoabout to push some changes, will include this
- deleted 13y ago[deleted]
- restlessdesign 13y agoWelp. That didn't take very long.
- worldsayshi 13y agoGame idea: Number of grammatically correct sentences times the amount of connected users = points.
- 5vforest 13y agoetherpad-lite is node.js and socket.io
- JacksonGariety 13y agoToo bad this aint: http://etherpad.org http://etherpad.org
- Sayter 13y ago"Etherpad is an Open Source online editor providing collaborative editing in really real-time powered by Node.js" (from your link)
- akanet 13y agoJackson: your solution is a bit too trusting. Too easy to do HTML injection of any sort: http://yugentext.com/adsfasdf http://yugentext.com/adsfasdf
- dopamean 13y agoIf I click the link and wait a few minutes I start to see someone else's message. It last for only a second and then vanishes.
- asperous 13y agoShare.js is pretty cool too
- Johnyma22 13y agoWhen it doesn't change under you every 5 minutes....
- edtechdev 13y agoFrom https://github.com/JacksonGariety/Yugen/blob/master/routes.js https://github.com/JacksonGariety/Yugen/blob/master/routes.j... res.redirect(crypto.randomBytes(3).toString('hex')) You probably already know this, but you'd probably want to replace that with a unique id generator, like perhaps MongoID or a timestamp or something.
- JacksonGariety 13y agoYeah I wanted to try out crypto. There are a number of things about this app I want to change. Namely getting your cursor to stay in place when other people edit. No clue how to tackle that one.