Quick Start
Goal: a running IRC server and two connected clients, in about a minute. No config file, no certificates, nothing to clean up afterwards.
1. Get a binary
Either install a release build:
curl -fsSL https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.sh | sh…or run straight from a source checkout:
git clone https://github.com/josunlp/ferrixd
cd ferrixd
cargo run -p ferrixd -- run --dev # add `--release` for realistic performance(For all install options — Windows, Docker, Termux, version pinning — see Installation.)
2. Start a dev server
ferrixd run --dev--dev ignores any config file and starts a zero-config local server:
- TLS on
127.0.0.1:6697with an ephemeral self-signed certificate, - plaintext on
127.0.0.1:6667(loopback only, soncworks too).
You should see the listeners in the startup log. Stop it any time with Ctrl-C — shutdown is graceful.
Dev mode is for development
The self-signed certificate changes on every start and the state is in-memory only. For anything reachable from another machine, write a config: Configuration.
3. Talk to it by hand
The fastest sanity check needs no IRC client at all:
nc 127.0.0.1 6667Then type raw IRC — the protocol is line-based text:
NICK alice
USER alice 0 * :AliceThe server replies with the welcome burst (001…005, LUSERS, MOTD). Now:
JOIN #forge
PRIVMSG #forge :hello, world
PING :are-you-there…and you'll get your join echo and PONG :are-you-there back. Over TLS the same works via:
openssl s_client -connect 127.0.0.1:6697 -quiet4. Connect a real client
Point any IRC client at localhost port 6697 with TLS enabled and certificate verification disabled (it's self-signed). For example, with WeeChat:
/server add ferrix localhost/6697 -tls
/set irc.server.ferrix.tls_verify off
/connect ferrix
/join #forgeOpen a second client (or a second nc), join #forge, and chat. You now have message echo, server-time tags, away notifications — the works — between two clients over TLS.
5. Peek at the modern parts
With a client that speaks IRCv3 (most do), try:
/msg #forge hello again
/quote CHATHISTORY LATEST #forge * 10The server replays recent channel history in a batch, each message carrying the same msgid it had when delivered live.
6. Try the web client (optional)
ferrixd serves its own browser client. --dev does not enable it, so stop the dev server from step 2 first (Ctrl-C — the new one needs the same port 6697) and use a three-section config instead. Fetch the client bundle first:
mkdir -p web
curl -fsSL https://github.com/josunlp/ferrixd/releases/latest/download/ferrixd-web.tar.gz \
| tar -xz -C web
# …or from a source checkout: (cd web && npm ci && npm run build), root = "web/dist"# web-dev.toml
[server]
name = "localhost"
tls_bind = "127.0.0.1:6697"
[tls]
self_signed_dev = true
[web]
bind = "127.0.0.1:8443"
client = true
root = "web"ferrixd -c web-dev.tomlOpen https://localhost:8443/, accept the self-signed certificate warning, and join as a guest. Reconnect your terminal clients from step 4 (same port, 6697) to chat with the browser. For a real deployment, see Web Client & Admin.
Next steps
- Installation — put a release binary on a real host.
- Configuration —
gen-config,check, and a walkthrough of every section. - TLS Certificates — real certs, or
gen-certfor pinned self-signed setups. - Accounts & SASL — give users durable identities.
- Web Client & Admin — serve the browser client and the admin dashboard.
- Production Deployment — systemd or Docker, backups, rolling restarts.