v0.x · open source · written in Go

Stay on IRC.
Forever.

evrd is an IRC bouncer: it stays on your networks while you're away, saves everything you miss, and lets HexChat, irssi, WeeChat or its own web client pick up where you left off. Run it for a whole community across several machines, or just for yourself on one small one.

Your clients come and go. evrd stays connected.

Sample data 3 attached 1 reconnecting
Clients
evrdnode-a · bnc.example.org
Networks
Attached / connected Reconnecting Detached / off
Illustrative sample · one upstream connection per network, shared by every client

Run it for a whole community.

Give everyone on your shell, network or project a bouncer of their own. You get roles, limits, and a cluster that carries on when a node doesn't.

Accounts and roles
Users and admins, signing in with a password or OpenID Connect. Suspending someone signs them out everywhere.
oidc_admin_role
Limits per user
Networks, attached clients and backlog, from server defaults you override per user.
max_networks · max_clients · backlog_lines
Their own address
Spread users over source addresses, give each one an IPv6 address of their own, or let them pick a bind host.
upstream_bind · upstream_prefix6 · bindhost
Polite reconnects
Each node paces its connects to every server, so a takeover reconnects people in a steady trickle, not all at once.
connect_rate 5
Cluster 3 nodes · 205 users · Postgres + ScyllaDB
Load balancer205 users
node-a0 usersDown
node-b105 usersOwner
node-c100 usersOwner
  1. node-astops answering. Its 68 users' networks and clients drop.
  2. balancertakes node-a out of rotation
  3. clientsretry through node-b and node-c
  4. node-ano heartbeat for 15 s, no longer live
  5. leases68 expire. node-b takes 34 users, node-c takes 34.
  6. node-b/creconnect their networks at 5 per second per server
  7. clusterevery network connected again. 205 users on 2 nodes.
Sample failover · 27 s replayed in about 9 s · cluster_lease 20s Back on node-b and node-c

What users notice. Their networks quit and rejoin, because a connection to an IRC server can't move between machines. Clients with auto-reconnect come back on their own, and saved history and settings are all there.

Upgrades. A node you stop on purpose hands its users over within 5 seconds instead of 20, and their networks still reconnect. On a single node, the connection holder keeps everyone on IRC while evrd restarts.

Watch every network.

evrd exports OpenTelemetry metrics (lines per network, lag, disconnects and attached clients) and draws traffic and link history back from VictoriaMetrics. Here's a sample day: hackint became unreachable at 03:12, evrd kept retrying with backoff, and it was back at 07:00.

Lines per hour, sample day

Libera.Chat OFTC hackint Sample data
evrd_irc_lines_totalevrd_upstream_upevrd_upstream_lag_secondsevrd_upstream_disconnects_totalevrd_irc_clients

Open the laptop.
Everything's still there.

When you attach, you get the welcome burst, your channels with their topics, the backlog with original timestamps, and then live traffic.

  • server-time and echo-message for clients that support them
  • Channel events in the backlog for clients that ask (draft/event-playback); plain clients get just the chat, so your nick list stays correct
  • Optional: only replay what arrived since you were last attached
HexChat [email protected] · #evrd
-!- Connecting to bnc.example.org:6697 (TLS)…
-!- Logged in as jamesat via server password
-!- Joined #evrd · 38 users · topic restored
Backlog · while you were away · 412 lines
<mira> anyone tried the pebble history backend on a pi?
<tobi> yep, single node, runs fine on arm64
<tobi> no database server either, just the one binary
<robert> jamesat: merged your PR, thanks!
Live
<jamesat> morning — just caught up, nice one
<robert> o/ you never actually left, did you
Sample session · Replaying backlog… server-time · echo-message

Every channel stays joined, and every line is saved.

evrd keeps one permanent connection to each network, stays in your channels and counts what's waiting for you. This is the same view as the web app's overview.

Networks → channels

Sample data

Select a network to show only its channels.

Upstream networks
Joined channels
#evrdLibera.Chat · 38 users2 mentions
#go-nutsLibera.Chat · 1,204 users83
#svelteLibera.Chat · 612 users41
#liberaLibera.Chat · 2,731 users12
#debianOFTC · 902 users24
#torOFTC · 455 users7
#cccamphackint · 318 users1 mention

Everything else a bouncer should do.

Your clients and history

Backlog you can trust
Messages, joins, parts, quits, kicks, nick changes, topics and modes are saved per channel and replayed with their original timestamps.
backlog_lines 2000
Any IRC client
Attach with a server password. Native clients get the welcome burst, names, topics, backlog and a full-fidelity live feed.
user/network:pass
A real web client
A Svelte app with unread counts, mentions, members, topics and slash commands, kept in sync with your other clients.
/join · /msg · /me · /quote
In your language
The web app speaks English, Italiano, Español, Türkçe, Deutsch, Bahasa Indonesia and 日本語. Admins and users can upload their own translations: PO from Poedit, CSV, XLIFF, JSON or YAML.

Safe to run

Passwords or single sign-on
Local passwords, OpenID Connect with any provider, or both. Each client gets its own IRC password, which you can revoke on its own.
oidc_issuer · session_ttl 720h
Secrets stay secret
Network passwords are encrypted with AES-256-GCM under a key kept outside the database, and the key can be rotated. Account passwords are bcrypt hashes.
secret_key_file · secret_key_old
Polite to networks
Answers ident itself, paces its connects, and rests a server that refuses it for 30 minutes up to 4 hours while it tries the network's others, so a ban never turns into a reconnect storm.
identd_listen :113

Talk to the bouncer from any client.

Day-to-day network management works from *status too, so a terminal client is enough for everyday use. Coming from ZNC? AddTrustedServerFingerprint and friends still work.

  • Add, connect and remove networks without leaving your client
  • Replay up to 500 lines of any buffer on demand
  • Manage servers, certificate fingerprints, flood and encoding settings
All commands
irssi · *status
/msg *status addnetwork libera irc.libera.chat +6697 jamesat
<*status> Added libera (irc.libera.chat:+6697, nick jamesat). connect libera to bring it online, then jump libera.
/msg *status networks
<*status> * libera           connected    as jamesat        irc.libera.chat:+6697 · 4 channels
<*status>   oftc             connected    as jamesat        irc.oftc.net:+6697 · 2 channels
<*status>   hackint          reconnecting as jamesat        irc.hackint.org:+6697 · 1 channel
<*status> 3 networks. * = this client. jump <network> to switch.
/msg *status jump oftc
<*status> Jumped from libera to oftc.
/msg *status playback #debian 100
<*status> Replayed 100 line(s) of #debian.
evrd.conf · single node
listen          ircs://:6697
api             :8098
db              sqlite:/var/lib/evrd/evrd.db
history         pebble:/var/lib/evrd/history
public_url      https://bnc.example.org
irc_host        bnc.example.org
https_listen    :443
web_root        /var/lib/evrd/web
tls             acme        # Let's Encrypt, renewed by evrd
secret_key_file /etc/evrd/secret.key

One config file.
One binary per node.

The config is a few readable directives. Start with SQLite and an embedded Pebble store on one machine, then move to Postgres and ScyllaDB when you outgrow it. evrctl history copy moves your history across.

  • The database backend is picked from the DSN, with no code changes
  • Pure Go, statically built, multi-arch images
  • HTTPS built in, with Let's Encrypt certificates issued and renewed automatically, or behind your own proxy
  • A native OpenBSD install: chrooted, unveiled and pledged
  • Upgrades don't take anyone off IRC: an optional connection holder keeps the networks connected while evrd restarts
  • evrctl for admin from a shell

Close the laptop. Miss nothing.

Write a short config, start the containers, create an admin account, add a network. A few minutes from now your nick is online for good.