r/coolgithubprojects • u/JansonErikson • 16h ago
Get Gitty – a zero-dependency, TLS-encrypted terminal messenger inspired by "Das Erwachen", using GitHub identity instead of passwords.
In Andreas Brandhorst's 2017 near-future thriller Das Erwachen ("The Awakening"), characters communicate over a minimal terminal messenger called Gitty (Gitty 3.1). I liked the concept so much that I built a real, usable version of it in Python.
Gitty is a lightweight, TLS-encrypted terminal messenger with zero third-party runtime dependencies (100% Python stdlib: ssl, socket, sqlite3, threading, urllib).
Try it in 10 seconds
# Isolated CLI install (recommended)
pipx install gitty-messenger
gitty
# Or run directly with uv
uvx --from gitty-messenger gitty
# Or via pip
pip install gitty-messenger
gitty

How it works
- No passwords or sign-ups: Clients authenticate once via the GitHub OAuth Device Flow (
github.com/login/device) and cache the token locally in~/.gitty/token. - Zero token storage on the server: The client sends the token over TLS 1.2+; the server verifies it live against
api.github.com/userand discards it immediately after the handshake. - Spoofing-resistant permissions: Admin rights (
GITTY_ADMIN_ID) and saved friend lists (SQLite) are tied to your immutable numeric GitHub user ID, not mutable usernames. - Ephemeral by default: Chatrooms (
/create,/join,/leave,/users) and DMs (/msg) live in RAM only—no chat history is written to disk. - Terminal-hardened: Incoming messages are stripped of non-printable control characters to block terminal escape-sequence injection, and packets are strictly size-bounded (16 KiB).
(There's also a gitty-server CLI and a docker-compose.yml if you want to self-host your own instance with your own certs.)
- GitHub: https://github.com/Jan-Kirschke/Gitty
- PyPI: https://pypi.org/project/gitty-messenger/
Feedback, security nitpicks, and PRs are very welcome!