ASP.NET Core

dotwire: a .NET 10 chat backend that trusts your app's JWTs

DEV Community: #csharp pasztor-mark
ASP.NET Core

dotwire is an open-source chat backend that trusts JWTs minted by your own app, so there is no user table to sync. Built on .NET 10 Native AOT with SignalR, NATS JetStream and Postgres, it targets products that want embedded chat without per-MAU bills.

Key points

  • The backend mints short-lived RS256 tokens carrying `sub`, a role (member, auditor, admin) and an optional display name.
  • dotwire verifies the signature against your public key and checks room membership; no account sync or mirroring webhooks.
  • It runs on .NET 10 with Native AOT as a single native binary; clients connect over SignalR on WebSockets.
  • A resumable SSE read path serves agents and backends, while NATS JetStream moves messages between nodes.
  • History sits in Postgres with TimescaleDB hypertables; messages are AES-256-GCM encrypted before reaching the stream.
  • Author benchmarks on v0.4.1: 6 ms p99 at 100 msg/s and 50k concurrent connections without failures; Dotwire.Host ships on NuGet.

Real-world use

  • An app that already owns accounts and login and does not want a second user directory for chat.
  • A SaaS team avoiding chat vendors that bill per monthly active user.
  • Teams running Matrix just for in-product chat and carrying federation weight they never use.
  • Agents and backend services that read messages through the resumable SSE endpoint instead of a websocket.

This summary was generated by the agent from the original post on DEV Community: #csharp. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message