dotwire
A self-hosted chat backend built to be audited. Realtime rooms, history and presence behind your own auth, with a tamper-evident audit log, legal holds, retention and DSAR export in the free build.
- Tamper-evident audit log
- Self-hosted
- SignalR + REST
- Postgres + TimescaleDB
- NATS JetStream
- Early development
Audit and compliance, compared
Most chat backends treat compliance as an Enterprise upsell. dotwire ships its audit and compliance controls in the free, open-source build, and documents what they don't cover. Read it in the docs.
| Capability | dotwire | Stream Chat | Sendbird | Matrix | Tinode | Mattermost | Rocket.Chat | ejabberd (XMPP) |
|---|---|---|---|---|---|---|---|---|
| Compliance Paywall | None - every control ships in the Apache-2.0 build | Moderate - HIPAA BAA needs the Elevate plan | Heavy - bulk Data Export is Enterprise-only | Enterprise compliance tooling is commercial | None | Heavy - Legal Hold, Retention, Compliance Export are Enterprise | Moderate - Audit UI & advanced retention are Enterprise | Moderate - Business Edition for some integrations |
| Deployment Model | Self-hosted embeddable backend | Managed SaaS API | Managed SaaS API | Self-hosted federated server | Self-hosted embeddable server | Self-hosted turnkey team chat | Self-hosted turnkey/omnichannel | Self-hosted federated server |
| Subprocessors and data residency | None by default - only the webhook and OTLP URLs you configure | Vendor cloud | Vendor cloud | None unless federated | None | None | None | None unless federated |
| Tamper-Evident Audit Log | Yes - Hash-chained, append-only, GET /audit/verify; export checkpoints off the database | Partial - dashboard/API audit logs, not hash-chained | Partial - dashboard/API audit logs, not hash-chained | No | No | Partial - JSON audit log, not hash-chained; legal hold exports are hash-verified (Enterprise) | Partial - Enterprise audit panel, not hash-chained | No |
| Member Read/Access Log (HIPAA §164.312(b)) | Yes (opt-in) - live windows and history reads, ids only | Not documented publicly | Not documented publicly | No (HTTP access logs only) | No | No (standard access logs) | No | No |
| Native Legal Holds | Yes - Room/user holds, pauses retention, audited emergency-delete bypass | No, must be enforced externally | No, must be enforced externally | No (not in Synapse) | No | Enterprise-only | No (Community Edition) | No |
| Automated Retention | Yes - Config or API, TimescaleDB chunk drops, covers metadata, pauses on holds | Not documented publicly | Not documented publicly | Partial - Server/room retention, no legal-hold pause | No | Enterprise-only | Partial - Message pruning, no legal-hold pause | Partial - MAM pruning, no legal-hold pause |
| Physical Erasure & Redaction (GDPR Art. 17) | Yes - Physical delete, account anonymization or delete, hold/keep-period guarded | Yes - Soft/hard delete APIs for users and messages (no native hold) | Yes - User/message deletion APIs (no native hold) | Partial, federation breaks erasure | Partial - Soft/hard delete; no hold or keep-period enforcement | Partial - Soft-delete default, permanent erase via CLI or Enterprise retention | Partial - User erasure/anonymization exists; no hold locking in Community | Partial - federation breaks guarantees |
| DSAR Export (GDPR Art. 15 / 20, CCPA, PIPL) | Yes - Single admin JSON endpoint | Yes - per-user GDPR export API | Partial - bulk Data Export is Enterprise; per-user data via Platform API | Partial - Synapse export-data admin CLI, no API | No, direct DB queries required | Enterprise-only | Yes - Built-in user data export | No |
| Encryption at Rest | Yes - App-layer AES-256-GCM on by default | Vendor-managed AES-256 at rest | Vendor-managed AES-256 at rest | Disk/DB level only | Disk/DB level only | Disk/DB level only | Disk/DB level only | Disk/DB level only |
| End-to-End Encryption | No | No, custom client-side only | Optional - Enterprise/add-on | Yes | No | No | Optional | Yes |
Also in dotwire
- Erasure notices. A durable, signed webhook lists the exact
(roomId, seq)pairs each redaction or erasure touched, so downstream copies can follow (GDPR Art. 17(2) / 19). - Config-locked guardrails.
AllowChanges,MinimumKeepDays,Erasure:ModeandAccessLog:*are set in configuration only, so a stolen admin token cannot weaken them. - Identifier-free telemetry. OpenTelemetry metrics and traces carry no room, user or message ids, no subjects, no SQL and no content.
Competitor cells reflect public documentation as of November 2026. “Not documented publicly” means we found no public description, not that the feature is missing. Plans and features change, so check the vendor before you decide. Corrections welcome ↗
Regulation references are our reading of each clause, not legal advice; confirm them with counsel.
Sources: Stream: HIPAA chat and the BAA plan · Stream: GDPR export · Sendbird: Data export · Sendbird community: Data Export plan · Synapse: export-data admin command · Mattermost: Legal hold · Mattermost: Compliance export · Mattermost: Audit log
dotwire gives you the technical controls, not a certification. Your application, your deployment and your organization still have to meet your obligations. Controls, mappings and limitations.
Benchmarked
5,000msg/s
sustained at under 27 ms p99, with zero lost messages
50,000connections
concurrent connections, with zero failed connects
~4x lower p99
lower p99 at 5,000 msg/s than 0.4.0, from the 0.4.1 fixes
dotwire 0.4.1 on one node with 8 dedicated vCPUs, 3 runs per test. Every number is recomputed from the raw results in the case study, including the tests where a competitor wins. The notebook and raw data are on GitHub ↗.
Perfect for
Regulated products
Health, finance, legal or HR chat that has to answer to an auditor. Messages stay on your servers, encrypted at rest, with a hash-chained audit log, legal holds, retention and DSAR export in the free build.
Compliance →Your SaaS project
Add chat to your product without a second user table. Your backend signs the tokens, dotwire checks roles and room membership, and moderation hooks let you reject or rewrite messages.
How auth works →Agentic coders
Paste one prompt into Claude Code, Cursor or your agent of choice and it wires dotwire in. Agents and scripts can also follow rooms over Server-Sent Events, with humans in the loop.
Agent guide →Startups
No per-MAU vendor bill that grows with every user. One binary plus NATS and Postgres, started with Docker Compose, and split into API and gateway nodes when you need to scale.
Quickstart →
Get started with your agent
Using Claude Code, Cursor, or another coding agent? Paste this prompt in, fill in your stack on the first line, and it will wire dotwire into your app. What your agent needs.
Like where dotwire is going? A star on GitHub helps other people find it.
Star on GitHub ↗What it does
What is this?
A self-hosted chat backend built to be audited: realtime rooms behind your own auth, with a tamper-evident audit log and compliance controls in the free build.
What about realtime rooms?
Messages, history paging, typing indicators and presence, over SignalR with a REST API alongside.
Whose auth does it use?
Yours. dotwire trusts RS256 JWTs your app signs, checked against issuer, audience and key id. The token's sub is the user id.
Who enforces room membership?
dotwire itself. Every subscription and history read is checked against room membership, not by your frontend.
Can I check messages before they're sent?
Yes, with presend webhooks. An HMAC-signed hook sees each message before it's accepted and can reject it.
Is the data encrypted?
At rest, with an AES-256 key. Storage is Postgres with TimescaleDB, the message bus is NATS JetStream.
What stops someone spamming a room?
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.Hoston NuGetThe .NET host SDK: mints RS256 user tokens with your private key and talks to dotwire over HTTP.
dotwire is in early development and not production-ready yet.
View on GitHub ↗