News for hackers. Stuff that matters.
Re:Shout: The self-hosted web IRC client by Scene_Cast2 on Monday February 01, 2016 @02:23PM (#11014575)
I've switched to Matrix[1] with auto-bridging to freenode. It automatically syncs new notifications across all devices, that way when I read something on the desktop, the notifications on my phone are gone. It has a slew of other cool features, too.

I use vector.im for desktop and matrix console for android.

[1] http://matrix.org/

Re:Shout: The self-hosted web IRC client by mintplant on Monday February 01, 2016 @04:06PM (#11015442)
The homepage says

> Fully distributed persistent chatrooms with no single points of control or failure

but looking at vector.im, channels seem to be based at specific servers, like "#matrix:matrix.org". How does that work? Also, what's the plan to deal with banning spammers and so forth if there's no central control?

Re:Shout: The self-hosted web IRC client by Scene_Cast2 on Monday February 01, 2016 @05:53PM (#11016289)
Disclosure: I'm not a matrix dev.

The API intro page[1] is a good start. Basically, a client authenticates with their homeserver. Multiple homeservers can "access" a single room. There is a server-server API for synchronization. I don't know how this maps onto vector.im / matrix.org

Lots of good discussion by official devs here https://news.ycombinator.com/item?id=8997844 and https://news.ycombinator.com/item?id=8267610

Spammers: each room can have mods / admins, just like in IRC. I don't know how bans are enforced on a technical level.

[1] http://matrix.org/docs/spec/r0.0.1/intro.html

Re:Shout: The self-hosted web IRC client by codemac on Monday February 01, 2016 @03:10PM (#11015003)
Is there an emacs client?
Re:Shout: The self-hosted web IRC client by giancarlostoro on Monday February 01, 2016 @04:06PM (#11015435)
Re:Shout: The self-hosted web IRC client by codemac on Monday February 01, 2016 @05:29PM (#11016112)
Wonderful! Thank you :)
Re:Shout: The self-hosted web IRC client by bphogan on Monday February 01, 2016 @06:20PM (#11016469)
I spent 20 minutes with this the other day and could not get connected to anything on Freenode. The user interface for this is just about as friendly as IRC. Any pointers?
Re:Shout: The self-hosted web IRC client by ValentineC on Monday February 01, 2016 @07:13PM (#11016756)
I was just playing with Matrix too (Vector.im is a decent web interface for it), and managed to connect to Freenode by using #freenode_#channelname:matrix.org as the room name. Hope that helps!
Re:Shout: The self-hosted web IRC client by fiatjaf on Monday February 01, 2016 @02:30PM (#11014653)
I've used this for months. It stops working for no reason. I think it eats up too much memory and keeps increasing memory usage. I don't know, but I know it crashes after a few days.
Re:Shout: The self-hosted web IRC client by olalonde on Monday February 01, 2016 @03:25PM (#11015112)
Yes, I believe it keeps the whole message history in memory. I also used it for a few months and had to reboot it once in a while.
Re:Shout: The self-hosted web IRC client by sbarre on Monday February 01, 2016 @06:23PM (#11016493)
How are you running it?

I've had a shout server running on my DO droplet for 8 months now, and I've never had any issues.

I run it using nginx and Passenger (and the setup was quite simple, I had never set up a node app in production before doing this).

Re:Shout: The self-hosted web IRC client by gravypod on Monday February 01, 2016 @07:02PM (#11016703)
Could you do a blog post or something to show what you did?

I used it until I got the crashes just like parent.

Re:Shout: The self-hosted web IRC client by artursapek on Monday February 01, 2016 @02:56PM (#11014866)
Classic node
Re:Shout: The self-hosted web IRC client by jonursenbach on Monday February 01, 2016 @04:38PM (#11015683)
That's not a Node problem, it's just a bug in the chat software.
Re:Shout: The self-hosted web IRC client by colinbartlett on Monday February 01, 2016 @01:36PM (#11014069)
It's great to see projects have detailed deployment instructions for getting up and running very quickly:

http://shout-irc.com/docs/deployment/docker.html

I've seen some projects now even have "Deploy to Heroku" buttons, which is fantastic. I wish Digital Ocean had something similar. Looks like you should be able to run this on a cheap $5 droplet?

Re:Shout: The self-hosted web IRC client by spdustin on Monday February 01, 2016 @01:44PM (#11014164)
Re:Shout: The self-hosted web IRC client by fiatjaf on Monday February 01, 2016 @02:32PM (#11014671)
A cheap $5 droplet can run 20 instances of this, probably.
Re:Shout: The self-hosted web IRC client by Kihashi on Monday February 01, 2016 @03:20PM (#11015074)
I don't know about 20 instances. It uses up about 173MB of memory on my instance.
Re:Shout: The self-hosted web IRC client by fiatjaf on Monday February 01, 2016 @03:34PM (#11015170)
Yeah, probably not 20. See related comment thread: https://news.ycombinator.com/item?id=11013579
Re:Shout: The self-hosted web IRC client by giancarlostoro on Monday February 01, 2016 @04:01PM (#11015399)
I believe so considering this is just a client for the most part, so long as you don't have 10,000 people trying to use it all at once.
Re:Shout: The self-hosted web IRC client by improv32 on Monday February 01, 2016 @06:07PM (#11016383)
I did in fact run this on a cheap $5 droplet, along with an apache2 server. Worked fine except it crashes about once a week, I think due to memory usage. I switched to weechat in a tmux session
Re:Shout: The self-hosted web IRC client by xena on Monday February 01, 2016 @02:09PM (#11014416)
I run this for PonyChat and run into memory leaking issues. It runs out of memory on a 1 GB node about weekly.
Re:Shout: The self-hosted web IRC client by Kihashi on Monday February 01, 2016 @03:18PM (#11015062)
I've been using it for over 6 months now with multiple users connected to multiple servers with quite a few active channels. I've had it crash from memory leaks (on a 1GB Linode VPS) once in all that time. Maybe PonyChat is just waaaay more active than the channels I'm in? At the moment, HTOP reports it using about 17% of my memory.
Re:Shout: The self-hosted web IRC client by josegonzalez on Monday February 01, 2016 @03:56PM (#11015352)
Not a memory leak. Messages are persisted in-memory. So more messages == more memory usage.
Re:Shout: The self-hosted web IRC client by duaneb on Monday February 01, 2016 @04:03PM (#11015420)
> Messages are persisted in-memory.

Unbounded storage is a leak. What kind of server would one build that would always eventually crash under completely normal usage?

Re:Shout: The self-hosted web IRC client by goldbrick on Monday February 01, 2016 @05:02PM (#11015884)
Lots of them in fact, when you consider logging to disk.
Re:Shout: The self-hosted web IRC client by duaneb on Monday February 01, 2016 @05:05PM (#11015905)
...and I sincerely hope you are using log rotation or your server will eventually become useless, too.
Re:Shout: The self-hosted web IRC client by xena on Monday February 01, 2016 @05:53PM (#11016290)
I have 4 years of IRC logs in about 4 GB of uncompressed text. YMMV but IRC is not bandwidth or disk-intensive.
Re:Shout: The self-hosted web IRC client by duaneb on Monday February 01, 2016 @06:13PM (#11016423)
Sure. It would also be a pretty shitty server if it crashed because nobody had the forethought to realize history uses memory. 4GB of memory will always be enough....
Re:Shout: The self-hosted web IRC client by listic on Monday February 01, 2016 @09:16PM (#11017281)
What is this PonyChat you speak of?
Re:Shout: The self-hosted web IRC client by forbiddenlake on Monday February 01, 2016 @02:58PM (#11014888)
As a (small) network owner, this is not yet ready to use on the network web site, because it does not support WEBIRC and so all web clients appear to come from the same IP. There's an issue open on GitHub about it.
Re:Shout: The self-hosted web IRC client by gmfawcett on Monday February 01, 2016 @02:44PM (#11014779)
What does "self-hosted" mean in this context? Just that you host your own instance of the Web application?
Re:Shout: The self-hosted web IRC client by Kihashi on Monday February 01, 2016 @03:14PM (#11015035)
Pretty much. You would run your own instance of Shout on your own server.
Re:Shout: The self-hosted web IRC client by geostyx on Monday February 01, 2016 @03:09PM (#11014995)
Correct.
Re:Shout: The self-hosted web IRC client by pieterhg on Monday February 01, 2016 @02:20PM (#11014540)
It would be great if you could add some kind of avatar system on top of (or outside of) IRC with this client. Also auto expandable URLs, emoji support and pretty much everything Slack offers.

We need an IRC-based Slack alternative badly!

Re:Shout: The self-hosted web IRC client by xena on Monday February 01, 2016 @02:28PM (#11014639)
Re:Shout: The self-hosted web IRC client by pieterhg on Monday February 01, 2016 @03:54PM (#11015346)
Nice, web client on mobile isn't responsibe though.
Re:Shout: The self-hosted web IRC client by heavenlyhash on Monday February 01, 2016 @04:55PM (#11015821)
There's native mobile clients :)
Re:Shout: The self-hosted web IRC client by mintplant on Monday February 01, 2016 @04:09PM (#11015470)
See the recent story on IRCv3:

https://news.ycombinator.com/item?id=11005999

Re:Shout: The self-hosted web IRC client by scrollaway on Monday February 01, 2016 @04:07PM (#11015447)
I'm going to put this out there because I'm not sure where else to.

Recently I had the need for a better gitter-irc two-way gateway than gitter-irc-bot. Specifically, I wanted to be able to run multiple mirrors off a single bot/account. I started writing a multi-protocol gateway and the goal was to support slack, gitter, mattermost, irc and possibly matrix with a plugin API.

Here's the prototype: https://github.com/jleclanche/gitterway

It's in python. I started rewriting it in Go and then found out toml support in go was lacking, then I sort of gave up... if anyone's interested in picking it up, file an issue on there!

Re:Shout: The self-hosted web IRC client by it33 on Monday February 01, 2016 @08:06PM (#11017031)
Very cool! If it's helpful, here's an existing IRC server for Mattermost: https://github.com/42wim/matterircd
Re:Shout: The self-hosted web IRC client by heavenlyhash on Monday February 01, 2016 @05:06PM (#11015918)
Toml support in go is... lacking? Did you try https://github.com/BurntSushi/toml ?

That author also wrote a test suite in go that compares all the other toml implementations for interoperability. I'd say it's pretty high quality.

Re:Shout: The self-hosted web IRC client by scrollaway on Monday February 01, 2016 @05:22PM (#11016052)
I did! I should have said it's incomplete. I ran across #70[1] which is kind of really needed for the config structure I had in mind. After that I just went back to working on other stuff...

[1] https://github.com/BurntSushi/toml/issues/70

Re:Shout: The self-hosted web IRC client by heavenlyhash on Monday February 01, 2016 @06:24PM (#11016497)
Ah. Bummer. Interesting to know, though.

I'm kind of un-bullish on toml in general, sadly. I tried toml in a couple of projects, and found for structures nested beyond a certain level, it doesn't really seem all that simple anymore. I ended up going back to json or yaml (only with a parser that doesn't implement most of the fancy features of yaml, for conservation-of-sanity reasons, of course).

Re:Shout: The self-hosted web IRC client by scrollaway on Tuesday February 02, 2016 @02:38AM (#11018087)
Have you seen inline tables? It solves what you mention pretty well, which is why I was looking for it for this project.
Re:Shout: The self-hosted web IRC client by ryanlol on Monday February 01, 2016 @11:31PM (#11017644)
Are avatars really that big of a feature of slack?

Emojis work just fine over IRC, https://i.imgur.com/2EeZYpP.png

Not sure what you mean with "auto expandable URLs", but there probably already exists a script for that.

Re:Shout: The self-hosted web IRC client by MaxLeiter on Monday February 01, 2016 @04:17PM (#11015530)
Auto-expandable URL's are supported, they just need to be enabled (by running 'shout configure').
Re:Shout: The self-hosted web IRC client by CompConf on Monday February 01, 2016 @04:57PM (#11015835)
I've used Quassel ( http://www.quassel-irc.org ) for a similar purpose.

An Android client, QuasselDroid ( http://quasseldroid.iskrembilen.com/ ), has been my best IRC experience on Android.

Re:Shout: The self-hosted web IRC client by kuschku on Monday February 01, 2016 @10:44PM (#11017535)
By the way, we are currently rewriting the Android client — with material design, far more features, and hopefully better notifications.

ETA is around April.

Re:Shout: The self-hosted web IRC client by saltspork on Monday February 01, 2016 @05:35PM (#11016161)
You can also get a web UI for Quassel. https://github.com/magne4000/quassel-webserver
Re:Shout: The self-hosted web IRC client by felixrieseberg on Monday February 01, 2016 @02:17PM (#11014502)
If anyone wants to give Shout a try - you can run it in Azure for free (via free web apps). Also, you can deploy it with one click: https://github.com/felixrieseberg/shout-azure

Disclaimer: Love Shout, just made this

Re:Shout: The self-hosted web IRC client by kehrlann on Tuesday February 02, 2016 @03:09AM (#11018177)
Interesting app, I've been using it here and there, mostly with a self-hosted IRC server. More or less a completely self-hosted chat system.

The UI is clean, and once it's up and running the experience is pretty smooth for users. However : - Quite a hassle to install and maintain your own IRC server ... - The server stores everything in memory. Pretty neat the first time you use it, but it tends to leak. - Your user DB is just a bunch of json files, with no extensibility built-in. It could really use a "users" plugin, that connects to an external auth system ...

Re:Shout: The self-hosted web IRC client by rly_ItsMe on Tuesday February 02, 2016 @02:18AM (#11018032)
I use ZNC (http://wiki.znc.in/ZNC) as bouncer for years now. It is stable, fully developed, has support for multiple networks, SSL support, IPv6, a Web interface and lots of other features. Plus its easy installed as 'yum install znc'. I did not read any advantage, neither in comfort nor in features that Shout has compared to ZNC. What reason could one have to switch? Except to be on the bleeding edge?
Re:Shout: The self-hosted web IRC client by hardwaresofton on Monday February 01, 2016 @01:39PM (#11014099)
Thanks for including a demo, I enjoyed getting the preview and using it. It looks like a bunch of people from HN are enjoying it right now as well.
Re:Shout: The self-hosted web IRC client by vertex-four on Monday February 01, 2016 @01:49PM (#11014215)
I've been using this as my primary IRC client for a while now, and am really enjoying it, aside from it being difficult to reconnect to IRC servers when it occasionally disconnects. It's perfect for use with Chromebooks, tablets, and similar.
Re:Shout: The self-hosted web IRC client by M2Ys4U on Monday February 01, 2016 @11:28PM (#11017640)
You can self-host Kiwi IRC,[0] which is also a web-based IRC client.

Disclosure: I'm one of the Kiwi devs.

[0] https://kiwiirc.com

Re:Shout: The self-hosted web IRC client by jfuhrman on Monday February 01, 2016 @05:01PM (#11015878)
I use IRCCloud.com, but this looks very interesting to throw on my Linux server on Google Cloud to play around with.
Re:Shout: The self-hosted web IRC client by pbreit on Monday February 01, 2016 @04:43PM (#11015720)
Love the clean, simple UI.

What utilities were used to build? I see Node, obviously. Socket.io it looks like? Any sort of framework?

Re:Shout: The self-hosted web IRC client by rekoros on Monday February 01, 2016 @03:04PM (#11014953)
Will it work with https://sameroom.io?
Re:Shout: The self-hosted web IRC client by gchokov on Tuesday February 02, 2016 @01:27AM (#11017914)
oh, how I miss the days when everyone was on IRC. Unrelated question, but what is IRC used for nowadays, most often?
Re:Shout: The self-hosted web IRC client by galaktor on Tuesday February 02, 2016 @04:37AM (#11018488)
Similar to mailing lists, IRC might be less mainstream but is still heavily used in niches, i.e. for development and support of open source projects. The simplicity of the protocol makes it easy to use for automation (bots), i.e. CI servers or similar. I've also seen networks dedicated to file sharing.
Re:Shout: The self-hosted web IRC client by gchokov on Wednesday February 03, 2016 @02:28PM (#11028981)
Interesting, would never think of CI use! Thanks for the reply!