Repo: github.com/w3slley/connversed

Technologies used: Go

connversed is a chat application you use entirely from your terminal. There is nothing to install: you just ssh into the server with the username you want to go by (it is running right now, so go ahead and try it), and you land in a text interface with a shared lobby where everyone connected can talk to each other in real time. Each person gets their own colour, and rooms are what comes next.

It started as a plain TCP chat server in Go, with clients, rooms and a lobby, where each connection is handled in its own goroutine and rooms are created on the first join and removed when the last person leaves. The SSH front end is built with Charm’s Wish and Bubble Tea: Wish runs the SSH server and gives every session its own terminal, and Bubble Tea renders the interface and handles the keyboard. Messages sent by one user are broadcast through a shared lobby to every other connected session. The project was also a good excuse to practise Go’s concurrency primitives (goroutines, channels, mutexes and wait groups) and to write about them.

To join, run this in your terminal and pick any username:

ssh -p 2222 yourname@connversed.apps.longitood.com

Here are two users, bob and alice, each connected over SSH in their own terminal, chatting in the lobby: