Privacy
What the server stores
- Your username and an Argon2 hash of your password. Never the password.
- Session tokens, so you can sign out and be revoked.
- Servers, channels, memberships and roles.
- Message text, author, time, edits and deletes.
- Read positions, so unread counts match across your devices.
There is no email address, phone number, avatar, bio, status or display name, because Koko has none of those fields.
No end-to-end encryption in version 1
Message text is stored as plain text in the database. The person who runs the server can read every message in every channel and direct message. TLS protects messages on the way to and from the server only if the operator sets it up. Do not use Koko for anything that must stay secret from the server operator.
What the clients keep
The desktop client keeps a local cache of messages and an outbox of unsent messages in its data directory. Nothing is sent to anyone except the server you signed in to. The website loads no third-party scripts, fonts, analytics or trackers.
Logs
The server does not log message content. It prints start-up lines and internal errors to standard error.
Push notifications
If you register a push endpoint, the server stores the endpoint URL (and for Web Push the subscription keys) so it can notify you when you have no client connected. A push carries only a channel id and a message id, never message text or a sender name. With UnifiedPush your distributor sees those two ids; with Web Push the body is encrypted to your browser's keys (RFC 8291) and the push service cannot read it. Either way the push service learns the timing of messages and its endpoint identifies you. Remove an endpoint with POST /api/push/remove, and the server itself deletes endpoints the push service reports as gone.
The web client's local storage
The web client keeps your session token, a cache of recent messages, unsent messages and drafts in IndexedDB. Nothing is kept in cookies, and the token is not in localStorage. Be clear about what this does and does not protect. Any script that runs on the page can read IndexedDB, just as it could read localStorage. The protection is that no such script should run: the site sends a strict content security policy with no inline scripts, loads nothing from third parties, and draws message text with DOM calls that cannot create markup. If you share a computer, sign out: signing out clears the token, the cache, the outbox and the drafts in every open tab.
The cache holds the newest 300 messages of each of the 40 channels you used last. It is what lets the app open and show messages while you are offline.
Tabs
All tabs of one browser profile share a single WebSocket. One tab holds it and passes messages to the others. If you close that tab, another tab takes over and asks the server for what it missed. This needs the Web Locks API. In a browser without it, each tab opens its own connection.