Drop into a public chat room from your editor or browser. Everyone shares a lobby, but nobody needs to host it. The engawa binary runs a peer while you're using it; the browser dashboard and Neovim plugin are two ways to talk to that peer.
Get started
Install engawa-chat with Cargo, then open the dashboard:
Select a room in the dashboard, or create one and choose whether it keeps history. Stop the process with Ctrl-C. The browser UI runs on your own machine, not on a hosted website. For Neovim, see engawa.nvim.
Engawa uses kaishin to check for a binary update in the background when you open the dashboard or start an editor session. Checks are throttled to once per day. Updates do not interrupt chat; the new executable takes effect on the next launch. Run engawa self-update to update immediately without a prompt, or engawa self-update --check to check only. Set ENGAWA_NO_AUTOUPDATE=1 to disable background updates. Mobile guests load the deployed web client instead; they do not install a CLI.
Invite someone on a phone
The desktop dashboard offers two links. Invite to lobby works even when the desktop has not joined a room. Invite to room opens one particular room. Share the link from the dashboard, not the address bar. No CLI, VPN, or shared Wi-Fi is required on the phone.
Open a lobby invitation and tap to connect. The phone joins the public lobby through the inviting peer and lists built-in rooms and recently announced rooms. Choose a room after checking its history policy, or create one. Return to the lobby to switch rooms without a page reload. This does not move anyone on the desktop. From a direct room invitation, you can also choose the lobby instead.
The phone runs its own iroh endpoint and signs its own posts; it never receives your local API token. Links carry the bootstrap endpoint and relay, not a private access key or a global list of users. Keep the inviting PC online for the initial connection. A direct room invite also needs a peer in that room. The static site's address alone cannot discover the lobby.
Room listings come from signed gossip announcements, not a central directory. To reach a participant on another relay, the mobile lobby can use iroh's public address lookup for an endpoint ID and relay address. Room names, policies, and chat messages are not published to that lookup service.
Guest messages and keys live in tab memory. Retained rooms can supply recent posts from online peers; a reload or new guest session loses the ability to withdraw that session's posts. A live-only room never supplies history.
Host the static invite page
The invite-pages.yml workflow builds the browser guest and deploys it to GitHub Pages on main (select GitHub Actions under repository Settings → Pages). For another HTTPS static host, build the same bundle:
Serve the contents of target/invite-site/ with application/wasm for .wasm. Before starting the desktop peer, set ENGAWA_INVITE_BASE to the URL of that page (default: https://yukimemi.github.io/engawa/). A loopback HTTP URL is also supported for local development. Only the static client is hosted: room discovery, messages and history do not pass through the static site.
For an opt-in end-to-end check, build the native binary and site, install Python Playwright and its WebKit engine, then run python tests/browser_invite.py target/debug/engawa (.exe on Windows). It uses a temporary profile, an actual HTTPS iroh relay, and a phone-sized WebKit browser. It does not announce the test room to the public lobby.
What survives when everyone leaves?
Built-in rooms always appear in the lobby. Other rooms are announced by their participants. An activity indicator means a peer was seen recently, not that an exact number of people are online.
- Live only: The client keeps messages in memory while you're in the room and discards them when you leave.
- With history: Each peer keeps up to 200 posts per room from the last seven days in a local SQLite database. Returning peers exchange history. A newcomer can't fetch a conversation from a peer that's offline. Data that expires while the app is closed is pruned when it runs again.
The history policy is part of the room ID. Two rooms can share a display name without sharing messages. Withdrawing your own post sends a signed removal notice; it can't erase screenshots, backups, or copies kept by other clients.
The default profile lives under engawa in your OS's local application data directory. Use engawa --data-dir <directory> web or set ENGAWA_DATA_DIR to choose another profile. Use separate directories for independent peers.
Network and privacy
Engawa discovers lobby peers through the Mainline DHT with distributed-topic-tracker, connects over iroh, and uses iroh-gossip for room announcements and messages. Chat logs are not published to the DHT. Networks that block UDP may prevent public peer discovery.
No account or real name is required. Rooms are public: participants can read and record their contents. Encrypted transport does not hide your IP address from a direct peer, and the local database is not encrypted.
Connect another editor
Start engawa serve --stdio as a child process. Read one line of JSON from stdout: {"url":"http://127.0.0.1:<port>","token":"…"}. Keep stdin open for the session; closing it stops the child. The API listens only on a randomly assigned loopback port. Send Authorization: Bearer <token> with each request.
| Method | Path | Request or response |
|---|---|---|
| GET | /api/state |
Poll for rooms, room (current ID or null), messages, and status. |
| POST | /api/rooms |
{"name":"Tea room","history":true} — create and enter. |
| POST | /api/join |
{"id":"<room id>"} |
| POST | /api/leave |
{} |
| POST | /api/send |
{"text":"Hello"} |
| POST | /api/retract |
{"id":"<your message id>"} |
Use Content-Type: application/json for POST requests. A successful action returns 204 No Content; it is not a delivery receipt.
Run the checks
On Windows, pass target/debug/engawa.exe. The integration test uses temporary profiles and ephemeral ports, without posting to the public lobby. Leave ENGAWA_PEER unset for normal discovery, set it to an empty string for a loopback seed, or set it to <endpoint-id>@127.0.0.1:<port> to connect to that seed.