Terminal messaging platform — chat, share files, play games, all from your CLI
Project description
⚡ trmsg
Terminal messaging. Chat. Share files. Play games. All from your CLI.
pip install trmsg
Features
| Feature | Command |
|---|---|
| 💬 Real-time chat | trmsg chat |
| 📁 File sharing (200MB) | /sendfile photo.jpg |
| 👥 Friends & DMs | /add username |
| 🤖 AI Assistant (Gemini) | /ai what is python? |
| 💣 Self-destruct messages | /burn 30 secret message |
| 🎮 TicTacToe | /game ttt opponent |
| ♟️ Chess | /game chess opponent |
| 🧠 Quiz Battle | /game quiz |
| 🏆 Leaderboard | /leaderboard |
| 📊 Polls | /poll "Q?" A | B | C |
| 😀 Reactions | /react 5 👍 |
| ↩️ Reply to messages | /reply 5 good point! |
| 🔔 Keyword alerts | /alert homework |
| 🌙 Do Not Disturb | /dnd 11pm-7am |
| 🎨 Themes | /theme matrix |
| 🔗 Invite links | /invite create |
| 📋 Message search | /search-msg keyword |
| 💻 Code sharing | /code python print("hi") |
| 📣 Announcements | /announce Important update! |
| 👑 Roles | Owner / Admin / VIP / Member |
Quick Start
# Install
pip install trmsg
# Connect to a server
trmsg config
# Register
trmsg register
# Chat!
trmsg chat
Self-Host Server
pip install "trmsg[server]"
# Setup
echo "SECRET_KEY=$(python3 -c 'import secrets; print(secrets.token_hex(32))')" > .env
echo "DATABASE_URL=sqlite+aiosqlite:///./trmsg.db" >> .env
echo "GEMINI_API_KEY=your-key-here" >> .env # optional AI
mkdir uploads
# Start
trmsg-server
Friends connect: trmsg config → enter your IP → trmsg register → trmsg chat
AI Commands
/ai what is async/await?
/ai summarize # summarize last 50 messages
/ai translate Japanese hello # translate text
/ai explain def foo(): pass # explain code
/ai roast janak # friendly roast 😈
Powered by Gemini 1.5 Flash (free). Add GEMINI_API_KEY to server .env.
Game Commands
/game ttt rohan # TicTacToe vs rohan
/game chess priya # Chess vs priya
/game quiz # Quiz battle (room plays together)
/move <id> 5 # TTT: pick cell 1-9
/move <id> e2e4 # Chess: algebraic notation
/answer B # Quiz: answer A/B/C/D
/leaderboard # Overall rankings
/leaderboard ttt # Game-specific rankings
/mystats # Your personal stats
All CLI Commands
trmsg register trmsg login trmsg logout
trmsg chat trmsg chat <user> (DM someone)
trmsg friends trmsg users trmsg rooms
trmsg add <user> trmsg whois <user> trmsg stats
trmsg leaderboard trmsg profile trmsg config
Themes
/theme cyberpunk # neon green (default)
/theme matrix # matrix falling code style
/theme ocean # cool blue tones
/theme sunset # warm red/yellow
/theme hacker # deep green hacker
/theme minimal # clean white
Deploy to Render (Free)
- Push to GitHub
- Render → New Web Service → connect repo
- Build:
pip install ".[server]" - Start:
trmsg-server - Env vars:
SECRET_KEY,DATABASE_URL,GEMINI_API_KEY
Share URL → friends install trmsg → connect → chat! 🎉
Built with FastAPI · SQLAlchemy · WebSockets · Rich · Click · Gemini AI
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trmsg-1.0.0.tar.gz.
File metadata
- Download URL: trmsg-1.0.0.tar.gz
- Upload date:
- Size: 45.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90acb8bf78352bc45d527c1455c39c54415999fe4ac7c14d060947dccd18428f
|
|
| MD5 |
57f9d4ac4cc27e3b727d47920baf4c5d
|
|
| BLAKE2b-256 |
ad48168b15b6bc6eb0dbfed231af73d7ccb17ed5d87bae63d93d55e07e295702
|
File details
Details for the file trmsg-1.0.0-py3-none-any.whl.
File metadata
- Download URL: trmsg-1.0.0-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6751d9a6300fe6221634932f3aa747d474ec6f7fb85a034d39bfcd1d5d189c87
|
|
| MD5 |
b11fe1013b9b9651da383fb46f53e167
|
|
| BLAKE2b-256 |
0d4317d067519533c52ff4a276f2cd20f6b8e5c95038aa9ea5375681b1f89e24
|