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.

CapabilitydotwireStream ChatSendbirdMatrixTinodeMattermostRocket.Chatejabberd (XMPP)
Compliance PaywallNone - every control ships in the Apache-2.0 buildModerate - HIPAA BAA needs the Elevate planHeavy - bulk Data Export is Enterprise-onlyEnterprise compliance tooling is commercialNoneHeavy - Legal Hold, Retention, Compliance Export are EnterpriseModerate - Audit UI & advanced retention are EnterpriseModerate - Business Edition for some integrations
Deployment ModelSelf-hosted embeddable backendManaged SaaS APIManaged SaaS APISelf-hosted federated serverSelf-hosted embeddable serverSelf-hosted turnkey team chatSelf-hosted turnkey/omnichannelSelf-hosted federated server
Subprocessors and data residencyNone by default - only the webhook and OTLP URLs you configureVendor cloudVendor cloudNone unless federatedNoneNoneNoneNone unless federated
Tamper-Evident Audit LogYes - Hash-chained, append-only, GET /audit/verify; export checkpoints off the databasePartial - dashboard/API audit logs, not hash-chainedPartial - dashboard/API audit logs, not hash-chainedNoNoPartial - JSON audit log, not hash-chained; legal hold exports are hash-verified (Enterprise)Partial - Enterprise audit panel, not hash-chainedNo
Member Read/Access Log (HIPAA §164.312(b))Yes (opt-in) - live windows and history reads, ids onlyNot documented publiclyNot documented publiclyNo (HTTP access logs only)NoNo (standard access logs)NoNo
Native Legal HoldsYes - Room/user holds, pauses retention, audited emergency-delete bypassNo, must be enforced externallyNo, must be enforced externallyNo (not in Synapse)NoEnterprise-onlyNo (Community Edition)No
Automated RetentionYes - Config or API, TimescaleDB chunk drops, covers metadata, pauses on holdsNot documented publiclyNot documented publiclyPartial - Server/room retention, no legal-hold pauseNoEnterprise-onlyPartial - Message pruning, no legal-hold pausePartial - MAM pruning, no legal-hold pause
Physical Erasure & Redaction (GDPR Art. 17)Yes - Physical delete, account anonymization or delete, hold/keep-period guardedYes - Soft/hard delete APIs for users and messages (no native hold)Yes - User/message deletion APIs (no native hold)Partial, federation breaks erasurePartial - Soft/hard delete; no hold or keep-period enforcementPartial - Soft-delete default, permanent erase via CLI or Enterprise retentionPartial - User erasure/anonymization exists; no hold locking in CommunityPartial - federation breaks guarantees
DSAR Export (GDPR Art. 15 / 20, CCPA, PIPL)Yes - Single admin JSON endpointYes - per-user GDPR export APIPartial - bulk Data Export is Enterprise; per-user data via Platform APIPartial - Synapse export-data admin CLI, no APINo, direct DB queries requiredEnterprise-onlyYes - Built-in user data exportNo
Encryption at RestYes - App-layer AES-256-GCM on by defaultVendor-managed AES-256 at restVendor-managed AES-256 at restDisk/DB level onlyDisk/DB level onlyDisk/DB level onlyDisk/DB level onlyDisk/DB level only
End-to-End EncryptionNoNo, custom client-side onlyOptional - Enterprise/add-onYesNoNoOptionalYes

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:Mode and AccessLog:* 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

  1. What is this?

  2. 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.

  3. What about realtime rooms?

  4. Messages, history paging, typing indicators and presence, over SignalR with a REST API alongside.

  5. Whose auth does it use?

  6. Yours. dotwire trusts RS256 JWTs your app signs, checked against issuer, audience and key id. The token's sub is the user id.

  7. Who enforces room membership?

  8. dotwire itself. Every subscription and history read is checked against room membership, not by your frontend.

  9. Can I check messages before they're sent?

  10. Yes, with presend webhooks. An HMAC-signed hook sees each message before it's accepted and can reject it.

  11. Is the data encrypted?

  12. At rest, with an AES-256 key. Storage is Postgres with TimescaleDB, the message bus is NATS JetStream.

  13. What stops someone spamming a room?

  14. A per-user send rate limit is built in, on top of whatever your app enforces.

Packages

dotwire is in early development and not production-ready yet.

View on GitHub ↗