Hi all, I am excited to introduce you to Srain: A modern IRC client written in GTK.

Srain is my personal project since 2016. I released its first stable version recently. This project originated when I was new to IRC. At that time, I was active on #[email protected], learned how to live with Arch Linux. There are many relay bots in the channel (from XMPP, telegram, Tox and etc). At first I felt the channel was full of chaos:

In fact, none of thes are problems for experienced IRC users, but in another way, The inconveniences of IRC actually exists, improving the experience of IRC chatting is always good.

– So I wrote a client, and now introduce to you:

Free and Cross-Platform

Srain is fully open source under GPLv3 license. You can get software and source code for free. Srain supports both Linux, Windows, BSD and macOS, please checkout Installation Guide for more details.

For Linux user, Srain is available on offical repository of flathub, fedora and openSUSE.

Modern UI

Srain provides a modern graphical user interface which contains:

Themes

Srain’s theme is built on the top of GTK CSS system, so users can easily customize the theme by writing CSS.

By default, Srain provides two builtin themes: default-bubble and default-bubble-dark which works well with most popular GTK themes.

Features

URL Preview

Srain is able to parse the URL in IRC message, detect its content type and show you a preview.

For now, only HTTP URL which points to image can be previewed.

For convenience, the URL preview function is enabled by default. Note that it may leaks your client IP, you can disable it in configuration.

Command System

Like most IRC clients, Srain provides a command system. Most operations can be done through both GUI and commands. Please refers to Commands Manual for more details.

Message Filter and Renderer

Srain provdes regex based message render and filter mechanisms.

Message filter allows ignore one’s message by regular expression match. (Ignore by nickname is supported of course). Please refers to /filter.

Message renderer allows user modify one’s message by regular expression group capture. Please refers to /render.

One of the application of message renderer is “relay message transform”.

There are many relay bots forward messages from other IM to IRC network, “relay message transform” makes these messages easier to read. For example, there is a telegram bot named “telegram”, the words in brackets is the named of the telegram user.

Run command /pattern add normal-relay \[(?<sender>[^:]+?)\] (?<content>.*) and /render telegram normal-relay. \[(?<sender>[^:]+?)\] (?<content>.*) is a regular expression, which has two named group sender and content, when an IRC message matched by this expression:

The meaning of first command is creating a pattern(regular expression) named “normal-relay”, the second command applies this pattern to the bot “telegram”: all message sent by this bot will be rendered by the aboved pattern.

So, after running the commands, the message from “telegram” looks like the following figure:

Next development

The two main aims of next development are: use experience improvement and plugin system.

Use Experience Improvement

In most cases, Srain has better user experience than previous clients, but still has some shortcomings – which will be improved the future.

The improvement of use experience is strongly based on user’s feedback. If you have any suggestion, please file an issue or disscuss in channel #srain.

Plugin System

Traditional IRC protocol is too simple to meet the needs of modern IM users. So client should do more, plugin system is a good idea to provide extra functions.

As Srain is a GTK application, I plan to use Libpeas to construct Srain’s plugin system and provide at least tow kind of plugin: auto-pastebin(paste your file/image and return URL to your input entry) and message renderer(render IRC message as as you wish).

You can trace the progress of plugin system at #199 .

Energy and Time

In fact, I am quite busy with both my work and my life, so I can only develop Srain in my free time. The progress of development may not be too fast, but it will continue. If anyone wants to get involved, feel free to contcat me, you can find contact details on my homepage.