@vegarsti/pirc
v1.0.2
Published
Terminal chat for you and your coworkers. Server runs on Cloudflare Workers, client uses [pi-tui](https://github.com/badlogic/pi-mono/tree/main/packages/tui).
Readme
pirc
Terminal chat for you and your coworkers. Server runs on Cloudflare Workers, client uses pi-tui.
Quick Start
cd /Users/vegard/dev/irc-clone
npm install
npx tsx client/index.ts --server wss://pirc.vegard-stikbakke.workers.dev --nick vegardThat's it — you're in the chat. Share the command with coworkers (they just change the --nick).
Slash Commands
Type these in the editor:
| Command | Description |
|-----------------|----------------------|
| /nick <name> | Change your nickname |
| /users | Show connected users |
| /clear | Clear chat messages |
| /quit | Disconnect and exit |
Editor Keys
| Key | Action |
|--------------------|------------------|
| Enter | Send message |
| Alt+Enter | New line |
| Tab | Autocomplete |
| / | Show commands |
| Ctrl+C | Exit |
For Coworkers
Tell them to clone the repo and run:
git clone <your-repo-url>
cd irc-clone
npm install
npx tsx client/index.ts --server wss://pirc.vegard-stikbakke.workers.dev --nick theirnameServer
The server is already deployed at https://pirc.vegard-stikbakke.workers.dev. To redeploy after changes:
cd server
npm install
npx wrangler deployMessages are in-memory only — they disappear when everyone disconnects.
