dotwire
A self-hosted realtime chat backend: private rooms, history, typing indicators and presence, behind your own auth.
- Self-hosted
- SignalR + REST
- Postgres + TimescaleDB
- NATS JetStream
- Early development
What it does
Realtime rooms
Messages, history paging, typing indicators and presence, over SignalR with a REST API alongside.
Your auth
dotwire trusts RS256 JWTs your app signs, checked against issuer, audience and key id. The token's sub is the user id.
Enforced membership
Every subscription and history read is checked against room membership by dotwire itself, not by your frontend.
Presend webhooks
An HMAC-signed hook sees each message before it's accepted and can reject it. This demo uses it to block links.
Encrypted at rest
Data at rest is encrypted with an AES-256 key. Storage is Postgres with TimescaleDB, the message bus is NATS JetStream.
Send limits
A per-user send rate limit is built in, on top of whatever your app enforces.
Packages
@dotwire/clienton npmThe browser connection: rooms, messages, typing and presence.
@dotwire/reacton npmA provider and hooks: useRoom, useTyping, usePresence, useConnectionState.
@dotwire/hoston npmServer side: mints user tokens, manages roles and members, verifies webhooks.
dotwire is in early development and not production-ready yet.
View on GitHub ↗