Skip to main content

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 registertrmsg 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)

  1. Push to GitHub
  2. Render → New Web Service → connect repo
  3. Build: pip install ".[server]"
  4. Start: trmsg-server
  5. 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

trmsg-1.0.1.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trmsg-1.0.1-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

Details for the file trmsg-1.0.1.tar.gz.

File metadata

  • Download URL: trmsg-1.0.1.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for trmsg-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0428e5475b65b44199be34fbfa20ac381f2a53a9612d3ccb6eb1fc895e69cf75
MD5 64848bb8d1230b808a580a51ceddc07d
BLAKE2b-256 f97b0bcad6d1b9b364d6ae797f5d0f9e22e1d3fe6c56d4ddba56e9bc0e933d81

See more details on using hashes here.

File details

Details for the file trmsg-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: trmsg-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for trmsg-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 241bc41619555e7f5a08cf00152ba03c6d4eb8239b5a552e86c62fdcebadd140
MD5 1690818859f7462340e020de20944165
BLAKE2b-256 0917663edf9cbf36df87325729690c9a6934e38716e93c73163af22417efcf5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page