{"id":41764095,"url":"https://github.com/bscott/chat-tails","last_synced_at":"2026-03-01T23:06:38.248Z","repository":{"id":291184362,"uuid":"976867233","full_name":"bscott/chat-tails","owner":"bscott","description":"Tailscale Backed Chat Server","archived":false,"fork":false,"pushed_at":"2026-02-03T03:46:45.000Z","size":55,"stargazers_count":113,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-03T17:30:40.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bscott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-02T22:44:35.000Z","updated_at":"2026-02-03T17:08:14.000Z","dependencies_parsed_at":"2025-05-02T23:30:46.448Z","dependency_job_id":"891224e8-8e9a-41c9-85d8-72f66208938c","html_url":"https://github.com/bscott/chat-tails","commit_stats":null,"previous_names":["bscott/ts-chat","bscott/chat-tails"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bscott/chat-tails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fchat-tails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fchat-tails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fchat-tails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fchat-tails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bscott","download_url":"https://codeload.github.com/bscott/chat-tails/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fchat-tails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29987656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-25T02:19:30.682Z","updated_at":"2026-03-01T23:06:38.231Z","avatar_url":"https://github.com/bscott.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat Tails\n\nA terminal-based chat application built in Go. Share a chat room with friends over your Tailscale network - they connect via netcat or telnet, no client installation needed.\n\n## Features\n\n- **Tailscale Integration** - Share your chat server securely with anyone on your Tailnet\n- **Zero Client Setup** - Users connect with just `nc` or `telnet`\n- **Colorful UI** - Each user gets a unique color, styled messages with ANSI colors\n- **Message History** - New users can see recent chat history (optional)\n- **Chat Commands** - `/who`, `/me`, `/help`, `/quit`\n- **Rate Limiting** - Built-in protection against spam\n\n## Quick Start\n\n```bash\n# Build\nmake build\n\n# Run locally\n./chat-server\n\n# Run with Tailscale (share with your network)\nexport TS_AUTHKEY=tskey-auth-xxxxx\n./chat-server --tailscale --hostname mychat --history\n```\n\nConnect from any machine:\n```bash\nnc mychat.your-tailnet.ts.net 2323\n```\n\n## Installation\n\n### From Source\n\n```bash\ngit clone https://github.com/bscott/chat-tails.git\ncd chat-tails\nmake build\n```\n\n### Docker\n\n```bash\n# Build\ndocker build -t chat-tails .\n\n# Run locally\ndocker run -p 2323:2323 chat-tails\n\n# Run with Tailscale\ndocker run -e TS_AUTHKEY=tskey-auth-xxxxx chat-tails --tailscale --hostname mychat\n```\n\n## Configuration\n\n| Flag | Short | Default | Description |\n|------|-------|---------|-------------|\n| `--port` | `-p` | 2323 | TCP port to listen on |\n| `--room-name` | `-r` | \"Chat Room\" | Name displayed in the chat |\n| `--max-users` | `-m` | 10 | Maximum concurrent users |\n| `--tailscale` | `-t` | false | Enable Tailscale mode |\n| `--hostname` | `-H` | \"chatroom\" | Tailscale hostname (requires `--tailscale`) |\n| `--history` | | false | Enable message history for new users |\n| `--history-size` | | 50 | Number of messages to keep in history |\n| `--plain-text` | | false | Disable ANSI formatting (for Windows telnet) |\n| `--version` | `-v` | | Show version information |\n\n## Windows Telnet Compatibility\n\nWindows telnet has limited ANSI escape sequence support. If you see garbled formatting characters when connecting from Windows telnet, start the server with the `--plain-text` flag:\n\n```bash\n./chat-server --plain-text\n```\n\nThis disables all ANSI color codes and cursor control sequences for a better experience on legacy telnet clients.\n\n**Recommended:** For the best experience on Windows, use a modern terminal emulator like:\n- Windows Terminal with `telnet` or `ssh`\n- PuTTY\n- WSL with `nc` or `telnet`\n\n## Tailscale Setup\n\n1. Get an auth key from [Tailscale Admin Console](https://login.tailscale.com/admin/settings/keys)\n2. Set the environment variable:\n   ```bash\n   export TS_AUTHKEY=tskey-auth-xxxxx\n   ```\n3. Run with Tailscale enabled:\n   ```bash\n   ./chat-server --tailscale --hostname mychat\n   ```\n4. Share with others on your Tailnet - they connect with:\n   ```bash\n   nc mychat.your-tailnet.ts.net 2323\n   ```\n\n### Troubleshooting\n\nIf you see \"Authkey is set; but state is NoState\":\n```bash\n# Option 1: Force new login\nexport TSNET_FORCE_LOGIN=1\n\n# Option 2: Clear existing state\nrm -rf ~/Library/Application\\ Support/tsnet-chat-server/  # macOS\nrm -rf ~/.local/share/tsnet-chat-server/                  # Linux\n```\n\n## Chat Commands\n\n| Command | Description |\n|---------|-------------|\n| `/who` | List all users in the room |\n| `/me \u003caction\u003e` | Send an action (e.g., `/me waves` → `* Brian waves`) |\n| `/help` | Show available commands |\n| `/quit` | Disconnect from chat |\n\n## Development\n\n```bash\n# Build\nmake build\n\n# Run tests\nmake test\n\n# Run a single test\ngo test -v -run TestName ./internal/chat/\n\n# Cross-compile for all platforms\nmake build-all\n```\n\n### Project Structure\n\n```\n├── cmd/chat-tails/    # Application entry point\n├── internal/\n│   ├── chat/          # Room and client handling\n│   ├── server/        # Server lifecycle, Tailscale integration\n│   └── ui/            # Terminal styling (lipgloss)\n└── Makefile\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbscott%2Fchat-tails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbscott%2Fchat-tails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbscott%2Fchat-tails/lists"}