Documentation
¶
Overview ¶
Command tiru-emba is a zero-configuration, LAN-only terminal chat client: peer discovery over UDP multicast/broadcast, direct messaging over TCP, and a Bubble Tea shell tying them together. In relay mode (--server), it additionally shows an in-TUI onboarding flow (Welcome -> Login/Register, with a mandatory org-select step afterward) instead of a pre-TUI prompt.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tiru-server
command
Command tiru-server is the relay server for tiru-emba's cross-network mode: account registration/login now, with presence, message relaying, and organizations following in later phases.
|
Command tiru-server is the relay server for tiru-emba's cross-network mode: account registration/login now, with presence, message relaying, and organizations following in later phases. |
|
internal
|
|
|
asciiart
Package asciiart converts a decoded image into a monospace ASCII-art string: registration profile pictures, chat photo previews, and unlockable ASCII avatars/borders are all rendered through the same luminance-to-character mapping.
|
Package asciiart converts a decoded image into a monospace ASCII-art string: registration profile pictures, chat photo previews, and unlockable ASCII avatars/borders are all rendered through the same luminance-to-character mapping. |
|
config
Package config persists small pieces of local client configuration -- the registered handle, relay server settings, a resumable session token, and the last-known network status -- to ~/.tiru-emba/config.json, so a returning user doesn't have to pass --handle (or log in from scratch) on every run.
|
Package config persists small pieces of local client configuration -- the registered handle, relay server settings, a resumable session token, and the last-known network status -- to ~/.tiru-emba/config.json, so a returning user doesn't have to pass --handle (or log in from scratch) on every run. |
|
discovery
Package discovery implements zero-configuration peer discovery over the local Wi-Fi network using IPv4 multicast heartbeats.
|
Package discovery implements zero-configuration peer discovery over the local Wi-Fi network using IPv4 multicast heartbeats. |
|
filedrop
Package filedrop resolves the shared directory every installed client saves accepted file transfers into.
|
Package filedrop resolves the shared directory every installed client saves accepted file transfers into. |
|
games/ludo
Package ludo implements a 2-to-4-player Ludo game as a Bubble Tea sub-model.
|
Package ludo implements a 2-to-4-player Ludo game as a Bubble Tea sub-model. |
|
games/tictactoe
Package tictactoe implements a 2-player Tic-Tac-Toe game played over an already-established network.GameSession, as a Bubble Tea sub-model meant to be hosted by a router that swaps it in for the chat view.
|
Package tictactoe implements a 2-player Tic-Tac-Toe game played over an already-established network.GameSession, as a Bubble Tea sub-model meant to be hosted by a router that swaps it in for the chat view. |
|
network
Package network implements direct one-to-one delivery over TCP, once a peer's address is known via discovery.
|
Package network implements direct one-to-one delivery over TCP, once a peer's address is known via discovery. |
|
notify
Package notify fires an OS desktop notification (with sound, where the platform supports it) for incoming messages.
|
Package notify fires an OS desktop notification (with sound, where the platform supports it) for incoming messages. |
|
peer
Package peer holds the in-memory view of who's currently online.
|
Package peer holds the in-memory view of who's currently online. |
|
relay
Package relay implements the server side of tiru-emba's cross-network mode: account registration/login, session tokens, and (in later phases) organizations and message relaying between authenticated users on different networks.
|
Package relay implements the server side of tiru-emba's cross-network mode: account registration/login, session tokens, and (in later phases) organizations and message relaying between authenticated users on different networks. |
|
shellpath
Package shellpath resolves a file path a user typed or dropped into a terminal, undoing whichever escaping convention their terminal used -- most wrap the whole path in matching quotes when it's dragged in, but some (e.g.
|
Package shellpath resolves a file path a user typed or dropped into a terminal, undoing whichever escaping convention their terminal used -- most wrap the whole path in matching quotes when it's dragged in, but some (e.g. |
|
store
Package store persists chat history to disk (one JSON object per line, under ~/.tiru-emba/history/<handle>.jsonl) so it survives an app restart or a lost network connection, not just the lifetime of the process.
|
Package store persists chat history to disk (one JSON object per line, under ~/.tiru-emba/history/<handle>.jsonl) so it survives an app restart or a lost network connection, not just the lifetime of the process. |
|
ui/account
Package account implements the full-screen "/account bio" view: the caller's own stats (handle, ASCII avatar, points, orgs, account age) plus a browsable shop of unlockable ASCII avatars/borders points can redeem and equip.
|
Package account implements the full-screen "/account bio" view: the caller's own stats (handle, ASCII avatar, points, orgs, account age) plus a browsable shop of unlockable ASCII avatars/borders points can redeem and equip. |
|
ui/onboarding
Package onboarding implements tiru-emba's relay-mode sign-in flow: a Welcome screen choosing Log in / Register / Forgot password, a single-field-at-a-time wizard for whichever is chosen, and (on success) handing an authenticated *relay.Client back to the hosting router (internal/ui.App) via AuthenticatedMsg.
|
Package onboarding implements tiru-emba's relay-mode sign-in flow: a Welcome screen choosing Log in / Register / Forgot password, a single-field-at-a-time wizard for whichever is chosen, and (on success) handing an authenticated *relay.Client back to the hosting router (internal/ui.App) via AuthenticatedMsg. |
|
ui/orgselect
Package orgselect implements the mandatory "choose your active organization" screen shown after every successful relay authentication (fresh login/register, a resumed session, or a completed recovery) -- required every launch, even when the session itself was resumed, since which org should be active isn't implied by the session token alone (a user may belong to several, or membership may have changed since last time).
|
Package orgselect implements the mandatory "choose your active organization" screen shown after every successful relay authentication (fresh login/register, a resumed session, or a completed recovery) -- required every launch, even when the session itself was resumed, since which org should be active isn't implied by the session token alone (a user may belong to several, or membership may have changed since last time). |
|
ui/todo
Package todo implements the full-screen "/todo" task view: a personal list (local-only, works with or without a relay connection) and, when connected to a relay server with an org selected, a shared list scoped to that org.
|
Package todo implements the full-screen "/todo" task view: a personal list (local-only, works with or without a relay connection) and, when connected to a relay server with an org selected, a shared list scoped to that org. |