How tgyt-dev/board works
This is an SSH-accessed terminal message board built with Go, Wish, and Bubble Tea. An SSH user enters through the server, receives a per-session terminal UI, sets a username if needed, then browses posts and replies or composes content; the UI uses database helpers to persist and reload board state. SQLite stores users, messages, and likes. The repository also starts a small HTTP file server for the web directory. The excerpts show the main session and post flows; the like-handler connection is not shown, so it is marked unverified.
Main entry points: main.go Terminal board UI · db.go Board data helpers · web.go Static file server · index.html Web assets
Components 12
Access and UI
- SSH server
main.go - Terminal board UI
main.go - Static file server
web.go - Web assets
web/index.html
Board workflow
- SSH key identity
main.go - Username setup
main.go - Posts and replies
main.go - Like toggling
main.go
Persistence
- Board data helpers
db.go - SQLite database
db.go
Other components
- SSH user
- Web visitor
Connections 14
- SSH user → SSH server: opens session
README.md - SSH server → Terminal board UI: starts session UI
main.go - Terminal board UI → SSH key identity: hashes public key
main.go - Terminal board UI → Username setup: initializes username
main.go - Username setup → Board data helpers: reads and saves username
main.go - Terminal board UI → Posts and replies: handles board actions
main.go - Posts and replies → Board data helpers: creates and loads posts
main.go - Terminal board UI → Board data helpers: loads replies for display
main.go - Like toggling → Board data helpers: toggles like
- Board data helpers → SQLite database: reads and writes
db.go - SSH server → SQLite database: opens database
main.go - SSH server → Static file server: starts HTTP server
main.go - Web visitor → Static file server: requests files
web.go - Static file server → Web assets: serves directory
web.go