Repository navigation
RChat 0.3.0 adds P2P contacts, DMs and servers, desktop and mobile apps, and many new chat, moderation and notification features.
New
Messages
- Mentions: type
@nameto ping someone.@everyone,@hereand role mentions ping groups. Mentions, replies to you and reactions to your messages show a red badge and a toast, and still count after you were offline. - Mentions inbox: every ping in one list, with Unread and All tabs, Mark as read and Jump to message.
- Reactions and emoji picker: react with any emoji. Your own reactions show in blue. The picker searches by name and keeps your frequent emoji and skin tone.
- Replies: reply to a message and choose whether to ping its author.
- Editing: edit your own messages, which then show "(edited)". Type
s/old/newto fix your last message, or press Up in an empty box to edit it. - Forwarding: forward a message to another channel or DM.
- Pins: pin messages and open them from the channel header.
- Message links: copy a link to any message and jump to it.
- Message selection: select messages with Shift and Ctrl clicks, or all at once, then delete, copy, pin, forward or export them together.
- Polls: single, multiple and ranked choice, rating scales and yes/no. Anonymous or public, with deadlines and live results.
- Formatting: a formatting toolbar, spoilers, code highlighting, and timestamps with the full date on hover.
- Typing indicators and join and leave notices (server admins pick the channel or turn them off).
- Link previews now load their images through your server, not your browser.
Servers and channels
- Channel categories: group channels and drag channels and categories into order.
- Channel topics and slow mode.
- Restricted channels: let only some roles or members see a channel or send in it.
- Server passwords: a permanent password, temporary passwords or tickets with a use limit. You can also close a server to new members. A server with a password stays hidden from people who are not members.
- Timeouts: moderators can time out a member for a set time. A timed out member can't send, edit, react or talk in voice in that server.
- Audit log: a log of server actions, filtered by action type.
- Webhooks: incoming webhooks post into a channel. Outgoing webhooks send server events to a URL and are off until the site admin turns them on (
OUTGOING_WEBHOOKS). - Previews: open a public server and read it before you join.
People and DMs
- Friends: send, accept and deny friend requests and see who is online.
- Blocking: a blocked person can't DM, call or ping you, and their messages are hidden.
- Close DMs: hide a DM until the next message.
- Privacy settings: limit who can DM you or send you friend requests.
- Home page: friends, unread conversations and your recent places in one view.
Notifications and settings
- Notification levels: all messages, only mentions or nothing, per server or channel. Mute for a time. Desktop alerts.
- Mark as read: for a channel, a server, all DMs or everything.
- Sync config: export your settings and layout as text, a file, an expiring share link or a QR code, and import them on another device.
- Command palette: press Ctrl+K to go anywhere, run any action, search a local index or try the API with forms.
- Personal profanity filter: mask profanity in what you see, without changing what is stored or sent.
P2P
- Contacts: add contacts with a code or QR code and verify them.
- Direct messages and files: send messages and files of any size straight to a contact, with no server in between.
- Calls with contacts: voice and video calls straight to a P2P contact.
- Servers: servers that live on the members' devices, with up to 8 co-owners, ranked roles, channel access, slow mode, kicks and bans, invite codes, threads, pins, search and voice with camera and screen share. The owner can hand a server to another member once every co-owner approves.
- Devices: use one identity on several devices and move it to a new one. Mark another device lost or stolen, or sign the others out with your recovery key.
- Account badge: optionally show your instance account name to P2P contacts and server members.
- Relays: a built-in STUN and TURN relay (
RELAY_ENABLED, off by default), a bundled public STUN list (PUBLIC_STUN), and your own relays. You are asked before the app uses someone else's unknown relay.
Apps and releases
- Desktop app for Windows, macOS and Linux, with system notifications, an unread badge, a tray, deep links, start on login and updates.
- Android and iOS apps with system notifications, the share sheet and deep links.
- Releases: stable releases from version tags, and weekly builds every Monday. Each release has installers, server binaries, package manager files and Docker images on GHCR (
latestfor stable,weeklyfor weekly builds). - License: RChat is now MIT licensed.
Changed
- Presence is site-wide: you are online everywhere, not only in the server you have open.
- Docker image: runs as user 10001 instead of root. Its base images and build tools are pinned.
- Older releases refuse a newer database: from 0.3.0 on, a release does not start on a database that a newer release upgraded.
- P2P files in channels and DMs: any size, streamed in chunks and checked against their hash. The site admin can turn them off (
P2P_ATTACHMENTS). With uploads off too, messages are text only. - Security: login tokens and guest grants are stored hashed. Signed in sessions keep working.
- Pins and deletes: the role permission is now called "Manage messages" and covers pinning others' messages.
- Access checks: servers, channels and messages you can't see answer "not found", the same as ones that don't exist.
- Limits: new settings for upload storage per account (
UPLOAD_BUDGET_MIB), upload memory (UPLOAD_BUFFER_MIB) and realtime connections per account and address (WS_*). The defaults are in.env.local.example. - Secrets:
PASSWORD_PEPPERandRELAY_SECRETcan be set, or read from a file withNAME_FILE=/path, to keep them out of the database. ChangingPASSWORD_PEPPERends every temporary server password and ticket. - Repository layout: the client is in
apps/web, the server inapps/serverand the WASM crate incrates/wasm. Thejust srcrecipes and rootbun runscripts keep their names.
Fixed
- Scrolling: the message list keeps following new messages at the bottom. Growing content and layout shifts no longer pull you away, and the unread line shows in the right place.
- Many fixes from QA across calls, P2P, lists, notifications and the mobile layout.
Upgrading
-
Database: migrations from 0.2.x run automatically at startup on SQLite and Postgres. Nobody is logged out.
-
Stop every older copy before you upgrade. With several processes on one database, upgrade them all together.
-
Don't run an older release on an upgraded database. 0.3.0 and later refuse to start on it, but 0.2.x doesn't refuse, so never go back to 0.2.x.
-
Docker volumes made before 0.3.0 belong to root. Give them to user 10001 once:
docker run --rm -u 0 -v rchat-data:/data --entrypoint chown ghcr.io/robbyv2/rchat:latest -R 10001:10001 /data
-
Building the image yourself (
docker compose up) needs BuildKit. On Ubuntu, install thedocker-buildxanddocker-compose-v2packages.