I've prepared a quick demo on how to run relay locally and connect two demo users: https://github.com/achempion/tlx#demo
achempion/tlx
Tlx
achempion/tlx
Tlx
Reference implementation of end-to-end encrypted chat over SSH, using an SSH server as a mailbox and a local daemon for sync/decryption into SQLite. Written in Python with no extra dependencies.
Visit project- First shared
- Sep 25, 2026
- HN activity
- 57
Show HN@achempionSep 25, 2026
Show HN: Tlx – E2E chat over SSH under 500 lines of code
This is a reference implementation of encrypted chats for small trusted groups. It runs SSH server in a container that acts as a mailbox for opaque encrypted blobs (145 lines of code). SSH keys serve as an identity. Then a local demon syncs and decrypts these blobs into SQLite database (321 lines of code). I wanted to make crypto as simple as possible and have only widely used and well audited components. Relay server and sync demon are implemented in standard Python without any extra dependencies. I've chosen Python as it ships with SQLite client in standard library. Could have used go/rust, but wanted to keep reference implementation as simple as possible with minimal dependencies.
Community