<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[dotwire]]></title><description><![CDATA[dotwire is a free, open-source chat layer you embed in your own application. Your app keeps storing its users and signs the JWTs; dotwire verifies them and handles realtime delivery, message persistence and ordering, and a tamper-evident audit log, without a second user system.]]></description><link>https://dotwire.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b002a20f4ab06fd22def9e3/92ae1455-be0d-41ec-8bbd-7e2c22a8265d.png</url><title>dotwire</title><link>https://dotwire.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 00:17:27 GMT</lastBuildDate><atom:link href="https://dotwire.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How I migrated the dotwire to SLH-DSA and X25519MLKEM768 in one day, and how you can too]]></title><description><![CDATA[Yesterday, the NSA put out a press release urging developers to migrate to post-quantum. I did it in one day and here's how you can do it too]]></description><link>https://dotwire.hashnode.dev/how-i-migrated-the-dotwire-to-slh-dsa-and-x25519mlkem768-in-one-day-and-how-you-can-too</link><guid isPermaLink="true">https://dotwire.hashnode.dev/how-i-migrated-the-dotwire-to-slh-dsa-and-x25519mlkem768-in-one-day-and-how-you-can-too</guid><category><![CDATA[realtime]]></category><category><![CDATA[quantum computing]]></category><category><![CDATA[Security]]></category><category><![CDATA[backend]]></category><category><![CDATA[Chat]]></category><dc:creator><![CDATA[pasztor-mark]]></dc:creator><pubDate>Fri, 04 Dec 2026 03:18:17 GMT</pubDate><content:encoded><![CDATA[<h2>Why now</h2>
<p>On December 2, 2026, ONCD, the NSA and CISA put out a joint statement urging developers to speed up the move to post-quantum cryptography (PQC). It said frontier AI models have made discoveries that affect some cryptography in use, without naming the algorithms. There was a lot of blind guessing on X that day, following the frontier labs' own statements, so I assumed the worst: RSA and elliptic curves are broken, and lattice schemes are unproven until shown otherwise.</p>
<h2>Out with the old, in with the new</h2>
<p>Here's what changed in dotwire 0.7. If you're moving to NIST-standard PQC, most of it carries over to your own app:</p>
<ul>
<li><strong>RS256 is gone.</strong> Tokens are signed with <strong>SLH-DSA-SHA2-256s</strong> (FIPS 205), whose security rests only on SHA-2. The smaller 128s variant is there for deployments behind an L7 edge.</li>
<li><strong>No more relying on curves alone.</strong> Every TLS connection dotwire accepts or makes uses TLS 1.3 with the hybrid <code>X25519MLKEM768</code> key exchange and nothing else. A peer that can't negotiate it is refused, with no classical fallback.</li>
<li><strong>dotwire terminates TLS itself</strong>, so any proxy in front of it must be TCP passthrough. A passthrough proxy can't see URL paths, so a multinode deployment now routes each role by hostname (TLS SNI) instead of by path.</li>
<li><strong>New platform floor.</strong> SLH-DSA needs OpenSSL 3.5 or later, which ships with Ubuntu 26.04 and the dotwire image. .NET on macOS and Windows has no SLH-DSA, so the .NET host SDK runs in Docker there. The Node host SDK, <code>@dotwire/host</code>, needs Node 24.8 or later, the first release with SLH-DSA in <code>node:crypto</code>.</li>
<li><strong>Webhooks are sealed, not signed.</strong> Bodies are AES-256-GCM envelopes, so they stay confidential even if the TLS hop underneath is broken.</li>
</ul>
<p>All of this is a lot to set up on a laptop, so dotwire keeps a <code>Development</code> mode that allows plain HTTP on loopback. Outside <code>Development</code>, it refuses to start without TLS everywhere.</p>
<h2>Larger headers</h2>
<p>A 256s token is about 40 KB and a 128s token about 11 KB, while an RS256 JWT is usually under 1 KB. Your proxies might not like that. I raised Kestrel's header limits to 64 KiB, and you may have to do the same in nginx or whatever sits in front of your app.</p>
<p>For the same reason, sending over the open hub connection is now the default, so the token crosses the wire once per connection instead of once per message.</p>
<p>40 KB and about 0.3 s of signing is a lot for a token. It buys a token that nobody, dotwire included, can forge without your key, and that stays unforgeable even if RSA and elliptic curves fall. A forged token is full access as any user, so dotwire rules that out by default.</p>
<p>Use 256s for the strongest option, NIST security level 5. Pick 128s, level 1, only when an L7 edge forces smaller tokens.</p>
<h2>Tips for your own migration</h2>
<ul>
<li><strong>List every public-key operation first.</strong> Token signatures, key fetching (JWKS), webhook signatures, TLS to clients, TLS to your database and message broker. Symmetric pieces (AES-256, SHA-256, HMAC) can stay as they are.</li>
<li><strong>Check every TLS peer before the cutover.</strong> Each one must speak <code>X25519MLKEM768</code>. For dotwire that meant PostgreSQL 18 with <code>ssl_groups</code>, and NATS with <code>curve_preferences</code>. macOS's system <code>curl</code> uses LibreSSL and can't connect, so use Homebrew's curl or run it in a container.</li>
<li><strong>Measure tokens against every hop.</strong> Cloudflare caps URLs at 16 KB, and AWS ALB and nginx in <code>http</code> mode have similar limits. Either make the proxy TCP passthrough or use the 128s variant and accept that the edge sees plaintext.</li>
<li><strong>Cache tokens, never mint per request.</strong> Signing a 256s token takes 0.23–0.40 s of CPU. Cache each user's token and refresh it about a minute before it expires.</li>
<li><strong>Drop key fetching.</strong> A JWKS URL is fetched over TLS, so a forged certificate for that host lets an attacker inject a key. Put the verification keys in config.</li>
<li><strong>Keep token lifetimes short.</strong> TLS server certificates are still elliptic curves, so a forged one could let someone on the network path copy a token in transit. 15 minutes or less limits the damage.</li>
<li><strong>Plan downtime and a rollback.</strong> Old and new nodes can't talk to each other, so there's no rolling upgrade. Back up the database before any major-version upgrade, and keep the old keys and configs until the new setup is proven.</li>
<li><strong>Protect internal links with a preshared key.</strong> If X25519 and ML-KEM both fall, WireGuard with a <code>PresharedKey</code> keeps links between your servers confidential, because the preshared key is symmetric. WireGuard without one is plain Curve25519 and doesn't help.</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Enterprise tier compliance readiness in a chat backend]]></title><description><![CDATA[How dotwire v0.6 improves your toolset for keeping your application compliance and audit-ready]]></description><link>https://dotwire.hashnode.dev/enterprise-tier-compliance-readiness-in-a-chat-backend</link><guid isPermaLink="true">https://dotwire.hashnode.dev/enterprise-tier-compliance-readiness-in-a-chat-backend</guid><category><![CDATA[realtime]]></category><category><![CDATA[#gdpr]]></category><category><![CDATA[compliance ]]></category><category><![CDATA[C#]]></category><dc:creator><![CDATA[pasztor-mark]]></dc:creator><pubDate>Fri, 27 Nov 2026 15:10:08 GMT</pubDate><content:encoded><![CDATA[<p>Compliance is a necessary evil in this era, and it's barely an afterthought for many chat backends on the open source market.</p>
<h3>v0.6 - compliance readiness</h3>
<p>For <strong>dotwire v0.6</strong>, I decided to change that. The project already came with a decent enough set of tools to help you get your app out on the market, without having to get a degree in law by the end of the sprint. Hash-chained audit logs, encryption at rest, DSAR export was the first step in creating audit-ready software, but if I want to call this production ready, the legal side should be just as solid as the technical side.</p>
<p>Before you go running to docs, here are how the compliance features compare:</p>
<table>
<thead>
<tr>
<th>Capability</th>
<th>dotwire</th>
<th>Stream Chat</th>
<th>Sendbird</th>
<th>Matrix</th>
<th>Tinode</th>
<th>Mattermost</th>
<th>Rocket.Chat</th>
<th>ejabberd (XMPP)</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Deployment Model</strong></td>
<td>Self-hosted embeddable backend</td>
<td>Managed SaaS API</td>
<td>Managed SaaS API</td>
<td>Self-hosted federated server</td>
<td>Self-hosted embeddable server</td>
<td>Self-hosted turnkey team chat</td>
<td>Self-hosted turnkey/omnichannel</td>
<td>Self-hosted federated server</td>
</tr>
<tr>
<td><strong>Subprocessors and data residency</strong></td>
<td>None</td>
<td>Vendor cloud</td>
<td>Vendor cloud</td>
<td>None unless federated</td>
<td>None</td>
<td>None</td>
<td>None</td>
<td>None unless federated</td>
</tr>
<tr>
<td><strong>Compliance Paywall</strong></td>
<td>None</td>
<td>Moderate-Heavy</td>
<td>Heavy - HIPAA BAA, &gt;6mo retention, SSO are Enterprise; export starts on Pro</td>
<td>Enterprise compliance tooling is commercial</td>
<td>None</td>
<td>Heavy - Legal Hold, Retention, Compliance Export are Enterprise</td>
<td>Moderate - Audit UI &amp; advanced retention are Enterprise</td>
<td>Moderate - Business Edition for some integrations</td>
</tr>
<tr>
<td><strong>Encryption at Rest</strong></td>
<td><strong>Yes</strong> - App-layer AES-256-GCM on by default</td>
<td>Vendor-managed AES-256 at rest</td>
<td>Vendor-managed AES-256 at rest</td>
<td>Disk/DB level only</td>
<td>Disk/DB level only</td>
<td>Disk/DB level only</td>
<td>Disk/DB level only</td>
<td>Disk/DB level only</td>
</tr>
<tr>
<td><strong>End-to-End Encryption</strong></td>
<td>No</td>
<td>No, custom client-side only</td>
<td>Optional - Enterprise/add-on</td>
<td><strong>Yes</strong></td>
<td>No</td>
<td>No</td>
<td>Optional</td>
<td><strong>Yes</strong></td>
</tr>
<tr>
<td><strong>Tamper-Evident Audit Log</strong></td>
<td><strong>Yes</strong> - Hash-chained, append-only</td>
<td>Partial - dashboard/API audit logs, not hash-chained</td>
<td>Partial - dashboard/API audit logs, not hash-chained</td>
<td>No</td>
<td>No</td>
<td>Partial - not hash-chained, advanced features Enterprise</td>
<td>Partial - Enterprise audit panel, not hash-chained</td>
<td>No</td>
</tr>
<tr>
<td><strong>Member Read/Access Log (HIPAA §164.312(b))</strong></td>
<td><strong>Yes (opt-in)</strong></td>
<td>Vendor-side (covered via Enterprise BAA)</td>
<td>Vendor-side (covered via Enterprise BAA)</td>
<td>No (HTTP access logs only)</td>
<td>No</td>
<td>No (standard access logs)</td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td><strong>Physical Erasure &amp; Redaction (GDPR Art. 17)</strong></td>
<td><strong>Yes</strong> - Physical delete, account anonymization or delete, hold/keep-period guarded</td>
<td><strong>Yes</strong> - Soft/hard delete APIs for users and messages (no native hold)</td>
<td><strong>Yes</strong> - User/message deletion APIs (no native hold)</td>
<td>Partial, <strong>federation breaks erasure</strong></td>
<td>Partial - Soft/hard delete; no hold or keep-period enforcement</td>
<td>Partial - Soft-delete default, permanent erase via CLI or Enterprise retention</td>
<td>Partial - User erasure/anonymization exists; no hold locking in Community</td>
<td>Partial - federation breaks guarantees</td>
</tr>
<tr>
<td><strong>Downstream Erasure Webhooks (GDPR Art. 17(2) / 19)</strong></td>
<td><strong>Yes</strong> - Durable JetStream webhook with exact <code>(roomId, seq)</code> pairs</td>
<td>Partial, no dedicated compliance erasure queue</td>
<td>Partial, no dedicated compliance erasure queue</td>
<td>No</td>
<td>No</td>
<td>No</td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td><strong>DSAR Export API (GDPR Art. 15 / 20, CCPA, PIPL)</strong></td>
<td><strong>Yes</strong> - Single admin JSON endpoint</td>
<td><strong>Yes</strong> - export API available from Start plan</td>
<td><strong>Yes</strong> - export API starts on Pro plan</td>
<td>No, E2EE unreadable server-side</td>
<td>No, direct DB queries required</td>
<td>Enterprise-only</td>
<td><strong>Yes</strong> - Built-in user data export</td>
<td>No</td>
</tr>
<tr>
<td><strong>Native Legal Holds</strong></td>
<td><strong>Yes</strong> - Room/user holds, pauses retention, audited emergency-delete bypass</td>
<td>No, must be enforced externally</td>
<td>No, must be enforced externally</td>
<td>No, commercial addons</td>
<td>No</td>
<td>Enterprise-only</td>
<td>No (Community Edition)</td>
<td>No</td>
</tr>
<tr>
<td><strong>Automated Retention</strong></td>
<td><strong>Yes</strong> - Config or API, O(1) TimescaleDB chunk drops, covers metadata, auto-pauses on holds</td>
<td>Partial - custom policies on higher tiers, no hold pause</td>
<td>Partial - 6-month default history, custom/extended retention on Enterprise, no hold pause</td>
<td>Partial - Server/room retention, no legal-hold pause</td>
<td>No</td>
<td>Enterprise-only</td>
<td>Partial - Message pruning, no legal-hold pause</td>
<td>Partial - MAM pruning, no legal-hold pause</td>
</tr>
<tr>
<td><strong>Config-Locked Compliance Guardrails</strong></td>
<td><strong>Yes</strong> - <code>AllowChanges</code>, <code>MinimumKeepDays</code>, <code>Erasure:Mode</code>, <code>AccessLog:*</code> cannot be weakened via API</td>
<td>No, API-managed settings</td>
<td>No, API-managed settings</td>
<td>Partial, static config</td>
<td>No</td>
<td>Partial, config locking on Enterprise</td>
<td>No</td>
<td>Partial, static config</td>
</tr>
<tr>
<td><strong>PII-Scrubbed Telemetry</strong></td>
<td><strong>Yes</strong> - OTel metrics and traces drop IDs, subjects, SQL, and content via strict allowlist</td>
<td>Vendor-managed observability</td>
<td>Vendor-managed observability</td>
<td>Standard Prometheus/OTel</td>
<td>Standard Prometheus</td>
<td>Standard Prometheus/OTel</td>
<td>Standard Prometheus</td>
<td>Standard metrics</td>
</tr>
</tbody></table>
<p><strong>dotwire</strong> aims to give you most compliance features out of the box. Since the chat plugs into your API, you still have to keep your application fully compliant.</p>
<h2>How the member access log works</h2>
<p>HIPAA's audit-controls standard asks you to "record and examine activity". Chat in a healthcare app holds ePHI, so "who looked at this conversation, and when?" needs an answer. v0.6 adds an opt-in <strong>access log</strong> that answers it. It's off by default: set <code>Dotwire:AccessLog:Enabled=true</code> to turn it on.</p>
<h3>Recording</h3>
<p>The log records what dotwire <strong>served</strong> to a member, not what they saw. It is not a read receipt you'd see on Instagram (though I'm too familiar with those)</p>
<ul>
<li>A hub Subscribe or an SSE stream writes a <code>live.opened</code> row. Every exit writes a matching <code>live.closed</code> row with the same <code>window_id</code>. The close reason may be: unsubscribed, disconnected, revoked, token expired, or error.</li>
<li>Each page served over REST or the SSE replay writes one row with the room, the user, the seq range and the count.</li>
<li>If your backend reads history on a member's behalf, mint the token with the optional <code>dw:actor</code> claim and the row records who initated the request.</li>
</ul>
<p>Rows hold ids and timestamps only, not message content. Delivering a live message adds nothing to the log.</p>
<h3>Write path</h3>
<pre><code class="language-plaintext">Subscribe / SSE open / history page
        │  publish + wait for ack (JetStream, stream ACCESS, Nats-Msg-Id dedupe)
        ▼
   access-writer 
        ▼
   access_log hypertable
</code></pre>
<p>Nothing inserts into Postgres from the request path. Events go to a dedicated JetStream stream, and a batched writer on the Api and All nodes drains it into its own TimescaleDB hypertable. Access volume never touches audit_log.</p>
<h3>Failing closed</h3>
<ul>
<li><strong>Opens and reads are acked before anything is delivered.</strong> If dotwire can't record the access, it refuses it with <code>503 access_log_unavailable</code>.</li>
<li><strong>Closes are best-effort but never silent.</strong> They go through a bounded queue with retries. Dropped closes are counted in metrics and logged.</li>
<li><strong>A lost close still has a hard upper bound.</strong> The open row stores the token's expiry, and the server enforces it on both transports. Auditors see the window as open until, at most, token expiry.</li>
<li><strong>Ambiguous publishes over-record rather than under-record.</strong> <code>Nats-Msg-Id</code> dedupes retries, and a failed open queues a compensating <code>error</code> close.</li>
</ul>
<p>Startup also refuses <code>Enabled=true</code> without NATS, since nothing could be recorded.</p>
<h3>Querying</h3>
<p>Auditors use <code>GET /audit/access</code> with filters for room, user and time range. It returns each live window paired with its close (or the expiry bound) plus every history page served. Each row says whether it came via hub, SSE or history, and whether a host actor made the read. Every read of the log is itself written to the hash-chained audit log. Both host SDKs have a matching method.</p>
<h3>Retention, holds, erasure, DSAR</h3>
<ul>
<li><strong>Retention duration</strong> is config-only and can't be set through the API. It must be at least <code>Compliance:MinimumKeepDays</code> when above 0, and 0 keeps rows forever. Retention is O(1) chunk drops like the rest of the compliance tables.</li>
<li>The access log is evidence of who accessed what, so erasing a user or message leaves it intact. It holds ids only, make sure your privacy notice says so.</li>
<li><strong>DSAR</strong>: The admin export includes the subject's access rows.</li>
<li><strong>Audited configuration.</strong> Each node records its access-log configuration in the audit chain at startup, so a node with a mismatched flag shows up in the record.</li>
</ul>
<h3>Cluster rule</h3>
<p><code>Enabled</code> and <code>Auth:MaxTokenLifetimeMinutes</code> must be identical on every node. If a flag mismatch strands events, nothing is lost: the writer runs whenever the <code>ACCESS</code> stream exists.</p>
<h3>Notes</h3>
<p>It doesn't log denied attempts, participant-list reads, client IPs or user agents. Those belong in your proxy logs. It isn't hash-chained: it's append-only through database grants and a guard trigger.</p>
<p>And keep in mind, using it correctly in your app is still your job.</p>
]]></content:encoded></item><item><title><![CDATA[Replacing Matrix with a chat backend that trusts my app's JWTs.]]></title><description><![CDATA[Every time I wanted chat inside an app, I hit the same two options. A chat vendor. Stream, Sendbird, PubNub. They work, but you pay per monthly active…]]></description><link>https://dotwire.hashnode.dev/replacing-matrix-with-a-chat-backend-that-trusts-my-app-s-jwts</link><guid isPermaLink="true">https://dotwire.hashnode.dev/replacing-matrix-with-a-chat-backend-that-trusts-my-app-s-jwts</guid><dc:creator><![CDATA[pasztor-mark]]></dc:creator><pubDate>Wed, 25 Nov 2026 13:34:10 GMT</pubDate><content:encoded><![CDATA[<p>Every time I wanted chat inside an app, I hit the same two options.</p>
<p><strong>A chat vendor.</strong> Stream, Sendbird, PubNub. They work, but you pay per monthly active user, and you get a second user system to keep in sync with your real one. Every signup, rename, ban and deletion now has to happen twice.</p>
<p><strong>Run a chat server.</strong> I ran a Matrix instance inside one of my projects. Matrix is built around federation, and most of its operational weight exists to talk to servers my users never needed to talk to.</p>
<p>So I built <a href="https://github.com/pasztor-mark/dotwire">dotwire</a>: a <strong>chat layer</strong>, not a chat product. It has no user table at all.</p>
<h2>Your app signs, dotwire verifies</h2>
<p>Your backend already knows who its users are. dotwire just trusts that.</p>
<ol>
<li>Your backend mints a short-lived RS256 JWT for a logged-in user: <code>sub</code>, a role (<code>member</code>, <code>auditor</code> or <code>admin</code>) and an optional display name.</li>
<li>The browser connects to dotwire with that token.</li>
<li>dotwire verifies the signature against your public key and checks room membership.</li>
</ol>
<p>There's no user sync, no webhooks to mirror accounts and no second source of truth.</p>
<h2>How to integrate it</h2>
<p>On your backend (Node.js here; there's also a .NET host SDK) expose a token endpoint behind your existing login:</p>
<pre><code class="language-typescript">import { DotwireHostClient } from '@dotwire/host';

const host = new DotwireHostClient({
  baseUrl: 'https://chat.yourdomain.com',
  privateKeyPem: process.env.DOTWIRE_PRIVATE_KEY_PEM!,
  keyId: 'prod-key-1',
  issuer: 'my-app-auth',
  audience: 'dotwire'
});

app.get('/api/auth/token', requireLogin, async (req, res) =&gt; {
  const token = await host.mintToken(req.user.id, {
    role: 'member',
    displayName: req.user.name,
    ttl: '15m'
  });
  res.json({ token });
});

await host.room(roomId).addMembers([aliceId, bobId]);
</code></pre>
<p>On the frontend, with the React hooks:</p>
<pre><code class="language-tsx">import { DotwireProvider, useRoom } from '@dotwire/react';

const options = { baseUrl: 'https://chat.yourdomain.com', tokenUrl: '/api/auth/token' };

function Room({ roomId }: { roomId: string }) {
  const { messages, send } = useRoom(roomId, { history: 50 });
  return (
    &lt;&gt;
      {messages.map(m =&gt; &lt;p key={m.seq}&gt;{m.senderId}: {m.content}&lt;/p&gt;)}
      &lt;button onClick={() =&gt; send('hello')}&gt;Send&lt;/button&gt;
    &lt;/&gt;
  );
}

export const App = () =&gt; (
  &lt;DotwireProvider options={options}&gt;
    &lt;Room roomId="a0000000-0000-0000-0000-000000000001" /&gt;
  &lt;/DotwireProvider&gt;
);
</code></pre>
<p>The client SDK fetches and refreshes the token itself, reconnects and resubscribes on its own, and fills gaps in history after a reconnect. Typing indicators and presence are one hook each (<code>useTyping</code> and <code>usePresence</code>).</p>
<h2>How it's built</h2>
<ul>
<li><strong>.NET 10, Native AOT.</strong> A single native binary with fast startup and a small memory footprint.</li>
<li><strong>SignalR over WebSockets</strong> for clients, plus a resumable <strong>SSE</strong> read path for agents and backends.</li>
<li><strong>NATS JetStream</strong> carries messages between nodes. <strong>Postgres</strong> stores the history, with TimescaleDB hypertables.</li>
<li><strong>Messages are encrypted with AES-256-GCM</strong> before they reach the stream. Plaintext is never logged.</li>
<li><strong>An append-only, hash-chained audit log</strong>, plus retention, redaction and data-subject export endpoints, for anyone with compliance requirements.</li>
<li><strong>Node roles.</strong> Run everything on one node, or split it into socket gateways and API nodes when you outgrow it.</li>
<li><strong>Observability</strong>. OTLP metrics for the send path, fanout, auth lookups, JetStream lag and database pools, opt-in traces scrubbed to an allowlist of tags (no ids, SQL, or content), and an optional Grafana overlay with a provisioned dashboard.</li>
</ul>
<p>No federation. Every deployment is standalone, which is what keeps it simple enough to self-host in an afternoon with <code>docker compose up</code>.</p>
<h2>Benchmarks</h2>
<p>I benchmarked v0.4.1 on two Hetzner CCX33 boxes, thrice:</p>
<table>
<thead>
<tr>
<th>Metric</th>
<th>Result</th>
</tr>
</thead>
<tbody><tr>
<td>Sustained throughput vs. Tinode</td>
<td><strong>10×</strong> at default durability</td>
</tr>
<tr>
<td>p99 latency, 100 msg/s, 100 rooms × 10 members</td>
<td><strong>6 ms</strong></td>
</tr>
<tr>
<td>Concurrent connections</td>
<td><strong>50k</strong>, 0 failures</td>
</tr>
<tr>
<td>Messages lost when saturated (~7.5k msg/s)</td>
<td><strong>0</strong></td>
</tr>
</tbody></table>
<p>It's all about the method, so here it is. The load is open-loop, and latency is measured from the <em>intended</em> send time, so queueing delay counts against dotwire. The durability isn't identical: dotwire acks once JetStream accepts a message, while Tinode acks after a disk flush. With 5,000-member rooms, where fanout dominates, the two are even. I'd love for someone to rerun these and tell me where I'm wrong.</p>
<h2>Out of scope</h2>
<p>dotwire has no user accounts and no federation. It has no prebuilt chat components (you get hooks, render your own UI, maybe I'll make a component library for it sometime) and no admin dashboard (you get APIs). It has no end-to-end encryption, because the threat it guards against is stolen disks and database leaks, not a malicious server. Moderation is a webhook you implement, not a built-in engine. It's the backend piece you embed in your own app. If you want a ready-made chat app for your team, use Matrix or Zulip. If you want chat <em>inside your product</em> without a per-user bill, that's the gap dotwire fills.</p>
<h2>Try it</h2>
<ul>
<li>GitHub: <a href="https://github.com/pasztor-mark/dotwire">pasztor-mark/dotwire</a> (Apache 2.0)</li>
<li>Docs: <a href="https://dotwire.pasztormark.dev">dotwire.pasztormark.dev</a></li>
<li>npm: <code>@dotwire/client</code>, <code>@dotwire/host</code>, <code>@dotwire/react</code>. NuGet: <code>Dotwire.Host</code></li>
</ul>
<p>It's early, and feedback is appreciated. If you've been horrified by chat vendor pricing, or you've run Matrix for something that wasn't really Matrix-shaped, I'd like to hear about it.</p>
]]></content:encoded></item></channel></rss>