ttyloom

module
v0.0.0-...-1e678a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT

README

Telegram, Discord and IRC, woven into your terminal.
Real pixels in Ghostty, kitty, foot, xterm and Terminology. Videos with sound through mpv.
IRC-style windows and conversations in one place.

CI Go 1.27.4 or newer Linux MIT license
Full manual · Account setup

Fully vibe-coded: the code, the tests and the documentation were written by Claude Code.

Why “TTYloom”?

TTY is the Unix term for a terminal, inherited from teletype. A loom weaves threads into fabric. TTYloom brings conversation threads from different networks into one terminal. The name describes the idea: many networks, one terminal.

Built for conversations

  • Play videos in the terminal, with sound. With mpv, l hands the whole terminal to mpv through the best output the terminal has — kitty graphics, sixel or text — with mpv's own keys; q comes back, and messages keep arriving meanwhile. Without mpv, FFmpeg plays it silently inside the conversation: l plays or pauses, s stops. Choose previews, hidden videos or autoplay.
  • Open an image and explore it. Click or press v for the built-in viewer. Zoom up to 8× with the wheel or +/-, drag with the mouse to pan, press 0 to fit again, and ←/→ to go to the previous or next media. Viewer controls.
  • Keep photos and GIFs in the flow. Real pixels in Ghostty and kitty (kitty graphics), foot and xterm (sixel) and Terminology, Unicode half blocks elsewhere — see the table. F5 shows images only on hover; Ctrl+G opens a searchable GIF picker whose previews play under the mouse, with a Stickers tab (Tab); Ctrl+M (or /media) browses every photo, video, GIF and file of a conversation, and Ctrl+D (or /files) every file sent and received, by person.
  • Move between conversations your way. Numbered windows, a draft in each, /query, /join, /msg, /me, and a cycle through unread windows. F6 combines conversations in window 0.
  • Make the sidebar work for you. Fold networks and Discord servers, filter with /net or by typing over it, sort by recent activity, name or unread messages, split the windows into channels and direct messages, and drag the border to resize. The wheel switches between open conversations.
  • Find a message, then jump to it. Ctrl+F searches locally; press it twice to search across networks. Click a reply’s quote to return to its original message, loading the surrounding history when needed.
  • React without a detour. A right-click menu with quick reactions, double-click 👍, replies, edits (Ctrl+↑ walks your previous messages), custom Discord emojis and message details. F3 shows members and presence; click a member to open a conversation.
  • Give your draft some room. Expand the multiline editor, paste a code block, complete an @mention or a :shortcode:, pick an emoji or paste an image with Ctrl+V. Ctrl+B, Ctrl+I and Ctrl+U style the draft in bold, italic and underline, sent as Discord Markdown, Telegram entities or mIRC codes. Optional Hunspell underlines misspellings; Ctrl+R offers corrections.
  • Keep the useful little details. Drag to select and copy text, without timestamps or nicks, preview themes live, show seconds in timestamps, spot the unread divider, and keep a local history cache. Typing indicators, focus-aware read state, configurable notifications that merge a burst into one, and /mute for a noisy conversation complete the flow.
  • Answer with your own programs. Hooks run a script when a message matches a network, a chat, a sender or a pattern; its output is sent, proposed in the input line or shown. Hooks.
  • A demo at start, in the spirit of the 90s. Tunnel, fire, a glass cube, a morphing torus, copper bars and Matrix rain around the TTYLOOM logo, in ASCII over your chat, until you press a key. /demo plays it again, /set intro off turns it off, /set screensaver 1h makes it a screensaver. Start demo.
  • Switch languages while chatting. French and English interface: /set lang fr or /set lang en applies immediately.

Capabilities depend on the network. Unsupported actions are hidden.

Network Available now Limits
Telegram User and bot login, DMs, groups, channels, media, search, reactions, pinned messages, read state Bot mode receives new messages; no account history or dialog list
Discord User accounts, DMs, group DMs, server text channels, media, search, reactions, pinned messages, GIFs No threads, forums, voice, read receipts or bot-account mode
WhatsApp Planned No implementation yet
IRC As many networks as wanted, no bouncer: channels, private chats, /whois, members, mIRC styles, DCC SEND/GET No history on the server (the disk cache is the scrollback); no edits, reactions, pinned messages, read receipts, search, GIFs or media browser; no DCC resume or DCC CHAT

Discord user-token access is unsupported by Discord and can lead to account suspension. Read the authentication guide before enabling it.

Pictures in your terminal

TTYloom asks the terminal what it can draw when it starts, and picks the best: the terminal line of window 0 says what it found, and /set images or F4 overrides it.

Terminal Photos, stickers, GIFs Videos (l, with mpv)
Ghostty, kitty kitty graphics protocol: pixels placed over the text, animated GIFs, zoom and pan in the viewer kitty graphics; shared memory on a local kitty or Ghostty 1.4
foot, xterm (as a vt340), other sixel terminals sixel, encoded in Go with an adaptive 256-colour palette, zoom and pan in the viewer sixel
Terminology its own protocol: the terminal draws the picture from a file, zoom and pan in the viewer text half blocks
Any other terminal Unicode half blocks in 24-bit colour, animated text half blocks

Without mpv, FFmpeg plays videos silently inside the conversation, in kitty graphics or half blocks. Sixel and Terminology pictures do not animate: a GIF or a video shows one frame. Only the screen rows that changed are sent, so a key typed never redraws the pictures. Image settings and troubleshooting.

Take a look

Discord conversation in TTYloomSearch results from Telegram and DiscordGIF picker with landscape previewsGroup members and contextual actionsTabs per network on the status line, an IRC channel and a WHOIS answer
Discord, with the same windows and shortcutsSearch across networks with Ctrl+F twice
Ctrl+G opens the GIF pickerF3 opens the member list
Tab per network with F9, IRC channel and WHOIS

These frames use the actual UI renderer with fictional data and the Catppuccin Mocha palette. PNG previews come from its kitty output; GIF screenshots are still frames. GIF tiles are frames of real results of the Discord and Telegram GIF searches.

Documentation

Guide What you will find
Full user manual Installation, every setting, commands, mouse controls, media, cache and troubleshooting
Account setup Telegram API credentials, QR/phone/bot login, Discord tokens, IRC passwords and session handling
Hooks Programs run on incoming messages: filters, variables, replies, safety and examples
Contributing Testing, feedback, translations, development and checks

Install

Download a binary

Download TTYloom v0.18-beta for Linux x86-64 (amd64) or ARM64 (arm64). These portable builds need no Go installation or C library. They omit Hunspell spell checking; the source build below supports it.

Download your architecture’s .tar.gz archive and SHA256SUMS from that release into the same directory, then:

sha256sum --check --ignore-missing SHA256SUMS
tar -xzf ttyloom_0.18-beta_linux_amd64.tar.gz
cd ttyloom_0.18-beta_linux_amd64
./ttyloom --version
./ttyloom

For ARM64, replace amd64 with arm64. --version prints the version, the build id (the first 8 hex digits of the source commit) and the commit. Each archive includes the dependency licenses; keep them with the binary when redistributing it. The release also includes matching source.

Build from source

Requires Linux and Go 1.27.4 or newer. The smallest build needs no C compiler or Hunspell:

git clone https://github.com/govlog/ttyloom.git
cd ttyloom
CGO_ENABLED=0 go build -trimpath -tags nospell -o ttyloom ./cmd/ttyloom
./ttyloom

The first run creates ~/.config/ttyloom/config.toml and asks you to configure a network.

For spell checking, install the native library and dictionaries, then build normally:

# Debian / Ubuntu
sudo apt install build-essential libhunspell-dev hunspell-fr hunspell-en-us
go build -trimpath -o ttyloom ./cmd/ttyloom
Optional tool Enables
mpv Video playback with sound over the whole terminal (kitty graphics, sixel or text)
ffmpeg and ffprobe Video previews, silent inline playback, animated WebP, video metadata
wl-clipboard (wl-paste, wl-copy) or xclip Clipboard text and image paste, image copy from the viewer (c)
notify-send Desktop notifications
Ghostty, kitty, foot, xterm or Terminology Native inline images (which protocol where); other terminals use half blocks

GIF decoding works in Go without FFmpeg. macOS, Windows and other terminal combinations are not validated in this release.

Connect an account

Use Telegram, Discord, IRC, or any mix. Telegram credentials are not required for the other networks.

The first start opens the Networks box: pick a network, follow its page (Telegram: how to get an api_id, then the QR code; Discord: the QR code or a token_cmd; IRC: the form of /irc add), and TTYloom writes config.toml and connects. /networks opens it again to see the state of each network, connect, disconnect, log out of an account or remove an IRC network. The sections below are the config.toml way.

Telegram

Create your application at my.telegram.org/apps, then edit the existing top-level keys in config.toml:

api_id = 123456                    # replace with your own application ID
api_hash = "YOUR_TELEGRAM_API_HASH"

Start ./ttyloom. Scan the QR code from Telegram → Settings → Devices → Link Desktop Device, or press Enter for phone/code login. If enabled, complete the 2FA prompt. A regular account needs no BotFather token.

Step-by-step Telegram setup, bot tokens and session recovery →

Discord

Add an empty [discord] section at the end of config.toml, start ./ttyloom, scan the QR code from the Discord app (Settings → Scan QR Code) and confirm on the phone. TTYloom logs in as a device of its own and keeps the token in ~/.config/ttyloom/discord.token (mode 0600).

Prefer to hold the token yourself? Store it in a password manager and name the command that prints it:

[discord]
token_cmd = "pass show discord/token"

token_cmd must print only the token. It runs without a shell and has a 30-second timeout. TTYloom does not save that token in its configuration.

How to obtain and store a Discord token, and why a bot token will not work →

IRC

Type /irc add in TTYloom: a form asks for the name, host (← → pick Libera.Chat, OFTC, EFnet, DALnet, Undernet, IRCnet, QuakeNet, Rizon, hackint and more, ports filled in), port, TLS, nick, user, real name and NickServ password, then writes an [[irc]] table at the end of config.toml and connects. No bouncer, no helper program; as many networks as you like, each one a section of the sidebar; /irc delete <name> removes one. Rooms joined with /join, with their key, are remembered and joined again at the next start. /dcc send <nick> <path> and /dcc get transfer files straight between clients.

[[irc]]
name = "libera"
host = "irc.libera.chat"
port = 6697
tls = true
nick = "me"
nickserv_password_cmd = "pass show irc/libera"  # prints the password; wins over the next key
nickserv_password = ""
channels = ["#go-nuts"]

The usual IRC commands answer in the window they were typed in (a window of that network; else window 0): /join #room [key], /part, /cycle, /topic, /nick, /notice, /invite, /names, /mode, /kick, /ban, /kickban, /who, /whowas, /whois, /motd, /ctcp, /quote and /ignore, whose masks are kept in the ignores key of the table.

IRC networks, DCC and the NAT settings →

Existing installation

The new defaults use ttyloom for configuration, cache, downloads and logs. To keep an existing configuration and session, point to its directory explicitly:

TTYLOOM_DIR=/absolute/path/to/your/existing/config ./ttyloom

Review download_dir and log_dir in that configuration. Caches written with earlier Go package paths can be rebuilt from the network. Keep a backup of your session files before moving them.

A few keys to learn

Action Key or command
Next window / window number Ctrl+X / Alt+1…9 or /5
Open a conversation Ctrl+N or the sidebar
Keep chatting privately from this window /q name; /q alone returns to the usual target
Sidebar / network filter F2 / Shift+F2 or /net discord, /net irc:libera
Filter the sidebar, then open a line Type with the pointer over it (or after Shift+Tab), ↑/↓, Enter
Tab per network / next tab F9 (or click a tab)
Aggregate conversations in window 0 F6
Search here / search across networks Ctrl+F / Ctrl+F again
GIFs / emoji Ctrl+G / Ctrl+T
Photos, videos, GIFs and files of the conversation Ctrl+M or /media
Files sent and received, by person, in every conversation Ctrl+D or /files
Copy the image or the path of a file, send it on, open it Click its label or right-click its picture
Mute or unmute a conversation /mute / /unmute
Pin or unpin a message (banner at the top) n or the right-click menu; click the banner to jump
Local note in the same banner /note text / /unnote
Your own command, its removal /alias ver /ctcp version then /ver nick / /unalias ver
Select a message Alt+↑ / Alt+↓ or click
Reply / forward / edit / react / copy selection p / f / e / r / c, or the right-click menu
Edit my previous message, the next one Ctrl+↑ / Ctrl+↓
Paste / send a file Ctrl+V / /send path [caption], /send "path with spaces" [caption]
Bold / italic / underline in the draft Ctrl+B / Ctrl+I / Ctrl+U
Clear the screen, keep the history Ctrl+L
Member list / image mode F3 / F4
Away message /away not here, /away back
Help /help or /help topic

Languages

Language Code How to select
English en Default unless LC_ALL, LC_MESSAGES or LANG names French
Français fr lang = "fr" in config.toml, or /set lang fr live; fr+en falls back to English for a missing text

The documentation is written in English; the interface follows lang.

Make it yours

Use /set key value to change supported settings live. The generated configuration describes every option; /theme opens the theme picker.

lang = "en"                  # en, fr, or a fallback chain such as fr+en
images = "auto"              # auto, kitty, sixel, terminology, halfblock, off
video = "show"               # first frame; l plays the selected video
gifplay = "always"           # always, hover (the GIF under the mouse only), off
sidebar_sort = "recent"      # recent, alpha, unread
sidebar_split = false        # channels, then direct messages
sidebar_autohide = false     # true: slides away when the mouse leaves it, back at the left edge
sidebar = "hidden"           # hidden, chats, windows; F2 writes it
members = false              # member box open at start; F3 writes it
spell = "off"                # fr+en_US enables installed dictionaries
notify = "terminal"          # terminal, desktop, off
auto_media_max_kb = 5120     # 0 disables automatic media downloads
cache_messages = 2000
update_check = false         # true asks GitHub at start whether a newer release exists

Configuration and session files contain account data. They live outside the source checkout. Logs and downloaded media also contain private conversation content; enable logging only when you want to keep it.

Code layout

cmd/ttyloom/       application entry point and the list of network modules
protocols/
  tgc/            Telegram module: MTProto through gotd
  dsc/            Discord module: arikawa and ningen
  irc/            IRC module: ergochat/irc-go, DCC
internal/
  model/          shared messages, events, Backend and capability contract
  module/         what a network module gives the client: config, commands, setup page
  ui/             windows, editor, sidebar, overlays and event loop
  term/           terminal input/output, keyboard and mouse
  render/         text, entities, wrapping and half-block images
  media/          bounded downloads/decoding helpers and kitty graphics
  cache/          per-network disk snapshots
  config/         settings and private file writes
  hook/           hooks.toml: filters and program runs
  update/         build id and the optional update check
  emoji/ i18n/ spell/ theme/

One Go module, separate protocol packages. The modules depend on the shared model; the UI has no Telegram, Discord or IRC library imports. This keeps a future network module in protocols/ without adding separate versioning or a go.work file. Writing a network module explains how one plugs in.

flowchart LR
    T[Terminal] <--> U[UI event loop]
    U --> M[model.Backend + Caps]
    M --> TG[protocols/tgc]
    M --> DC[protocols/dsc]
    M --> IR[protocols/irc]
    TG -->|events| U
    DC -->|events| U
    IR -->|events| U
    U <--> C[Local cache]

Development

Testers are welcome! Try TTYloom with your terminal and chat networks, and share bugs or usability feedback through GitHub Issues. The contribution guide covers useful reports, translations, code changes and checks.

Please follow the code of conduct. Report vulnerabilities privately using the security policy.

See the changelog, full manual and TODO for more detail.

To prepare another release, follow the release instructions. Tagged versions build Linux archives, checksums and matching source in GitHub Actions, then create a draft release for review.

Licenses and credits

TTYloom is fully vibe-coded. Main author: Claude (Claude Code, by Anthropic), under the direction of Christopher Amiaud.

TTYloom’s original code, documentation and artwork are MIT licensed. Third-party components retain their own licenses; see THIRD_PARTY_NOTICES.md for dependency versions, license texts, copied code, Unicode data and native-library requirements.

Built on gotd, arikawa, ningen, ergochat/irc-go, rsc.io/qr, Hunspell and the kitty graphics protocol. Inspired by ircii and BitchX. Screenshot colours are from Catppuccin.

Directories

Path Synopsis
cmd
ttyloom command
ttyloom is a terminal chat client for several networks.
ttyloom is a terminal chat client for several networks.
internal
cache
Package cache keeps the dialogs and the history on disk (gob), for a faster start without waiting for Telegram.
Package cache keeps the dialogs and the history on disk (gob), for a faster start without waiting for Telegram.
config
Package config holds ~/.config/ttyloom/config.toml.
Package config holds ~/.config/ttyloom/config.toml.
emoji
Package emoji holds the embedded Unicode data, the search and the recents.
Package emoji holds the embedded Unicode data, the search and the recents.
hook
Package hook reads hooks.toml and runs its hooks: programs started when an incoming message matches their filters.
Package hook reads hooks.toml and runs its hooks: programs started when an incoming message matches their filters.
i18n
Package i18n holds the user-visible texts of ttyloom, in French and in English.
Package i18n holds the user-visible texts of ttyloom, in French and in English.
intro
Package intro plays the demo at start: ASCII effects and the TTYLOOM logo over the chat, which shows through.
Package intro plays the demo at start: ASCII effects and the TTYLOOM logo over the chat, which shows through.
media
Package media decodes files into PNG frames, names them, and talks kitty.
Package media decodes files into PNG frames, names them, and talks kitty.
model
Package model holds the types shared by the backends (tgc, dsc, irc) and the UI.
Package model holds the types shared by the backends (tgc, dsc, irc) and the UI.
module
Package module is the boundary between the client and its networks.
Package module is the boundary between the client and its networks.
render
Package render turns Telegram messages into lines of styled spans.
Package render turns Telegram messages into lines of styled spans.
spell
Package spell: hunspell spell checking of the input line.
Package spell: hunspell spell checking of the input line.
term
Package term holds raw mode, size, keyboard and the kitty graphics probe.
Package term holds raw mode, size, keyboard and the kitty graphics probe.
theme
Package theme holds the colours, the SGR styles and the Ghostty theme files.
Package theme holds the colours, the SGR styles and the Ghostty theme files.
ui
Package ui : ircii engine.
Package ui : ircii engine.
update
Package update tells which build is running and whether GitHub has a newer release of it.
Package update tells which build is running and whether GitHub has a newer release of it.
protocols
dsc
Package dsc wraps ningen (arikawa); it talks to the UI only through model.Event, like tgc.
Package dsc wraps ningen (arikawa); it talks to the UI only through model.Event, like tgc.
irc
Package irc is the IRC backend: one Client per network, on ircevent (ergochat/irc-go).
Package irc is the IRC backend: one Client per network, on ircevent (ergochat/irc-go).
tgc
Package tgc wraps gotd; it talks to the UI only through model.Event.
Package tgc wraps gotd; it talks to the UI only through model.Event.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL