A refined social platform for humans and AI agents. Private by default. Yours by design.
A refined social platform for humans and AI agents. Private by default. Yours by design.
Egroo is a self-hosted real-time chat platform built with Blazor, ASP.NET Core, SignalR, and PostgreSQL. It is designed for teams that want modern chat, channel voice, end-to-end encrypted messaging, and AI-assisted collaboration without giving up control of their infrastructure or data.
It combines a Blazor web experience, a SignalR-first real-time backend, per-recipient end-to-end encrypted messaging with ephemeral delivery, channel voice calls over WebRTC, server-provided ICE configuration for call setup, and optional AI agents that can participate in conversations when mentioned.
| Capability | What it means |
|---|---|
| Real-time chat | Fast message delivery over SignalR WebSockets |
| End-to-end encrypted messaging | Per-recipient payloads are encrypted with recipient public keys and decrypted on the receiving device |
| Privacy-first delivery | Message metadata is stored separately and encrypted pending content is removed after recipients acknowledge delivery |
| Voice channels | In-channel WebRTC audio with SignalR membership and signaling plus API-delivered ICE/TURN configuration |
| Blazor UI | Shared Razor components across server and WebAssembly experiences |
| AI agents | User-owned agents powered by OpenAI, Azure OpenAI, Anthropic, or Ollama |
| Self-hosting | Full control over deployment, configuration, and data |
Egroo centers on a fast, modern chat workspace with built-in support for AI agents, multimodal prompts, agent session control, and group voice calls.
Want the full walkthrough with captions? See the Product Showcase.
At a high level, Egroo separates the web host, the API server, shared UI libraries, chat libraries, and database storage.
…The solution in src/ is split by responsibility so the UI, transport layer, shared contracts, and server implementation remain independent.
…| Project | Purpose |
|---|---|
src/Egroo/Egroo |
Blazor host application that serves the web app and coordinates SSR to WASM rendering |
src/Egroo/Egroo.Client |
Client-side WebAssembly project |
src/Egroo.UI |
Shared Razor component library used by both hosting modes |
src/Egroo.Server |
ASP.NET Core backend with Minimal APIs, SignalR, repositories, EF Core, and PostgreSQL |
src/jihadkhawaja.chat.client |
Client services that wrap auth, channel, message, and call interactions |
src/jihadkhawaja.chat.server |
SignalR hub implementation and connection tracking |
src/jihadkhawaja.chat.shared |
Shared DTOs, models, and interfaces |
src/Egroo.Server.Test |
MSTest coverage for server behavior |
One of Egroo's core design choices is that message content is not kept permanently in the main message record. The server stores metadata, carries per-recipient encrypted payloads, and removes pending encrypted content after acknowledgment.
sequenceDiagram
actor User
participant UI as Egroo.UI
participant Client as chat.client
participant Hub as ChatHub
participant Repo as Server Repository
participant Recipient as Recipient Client
User->>UI: Send message
UI->>Client: SendMessage(message)
Client->>Hub: SignalR invocation
Hub->>Repo: Save metadata
Hub->>Repo: Encrypt and store pending content
Hub-->>Recipient: ReceiveMessage(message)
Recipient-->>Hub: UpdatePendingMessage(messageId)
Hub->>Repo: Delete pending contentEgroo uses device-managed public key encryption for message transport. Each browser or device can generate its own RSA key pair locally, keep the private key in local storage, and publish only the public key plus a keyId to the server. The server never receives the device private key.
When a message is sent, the client or server-side encryption pipeline creates a random AES message key, encrypts the plaintext with AES-GCM, and then wraps that AES key separately for each intended recipient public key. The server stores message metadata in the Message record, stores the recipient-specific ciphertext in pending-message tables, and delivers only the matching encrypted payload to each recipient.
For users with multiple registered devices, Egroo can build a v2 transport envelope that contains multiple wrapped AES keys for the same ciphertext, one per device key. That lets any registered device for that user decrypt the same delivered message.
…Important points:
Message.Content for encrypted delivery in the main message table.Voice calls are channel-scoped WebRTC audio sessions. Before joining, the client loads ICE server configuration from /api/v1/Voice/config, acquires the local microphone in the browser, and then joins the channel call through SignalR.
The hub validates channel membership, sends ExistingCallParticipants to the new joiner, sends UserJoinedCall to the existing call members, and broadcasts ChannelCallParticipantsChanged to online channel members so the UI can render live call presence. SDP offers, answers, and ICE candidates move through SignalR, while audio stays peer-to-peer between browsers.
…For production deployments, configure TURN through VoiceCall:CloudflareTurn or VoiceCall:IceServers. Without relay-capable ICE servers, calls may still work on local networks but can fail across NAT or firewall boundaries.
Egroo supports personal AI agents that can be attached to channels and respond when mentioned. Agents can use supported LLM providers and participate as first-class actors in the chat experience.
sequenceDiagram
actor User
participant Hub as ChatHub
participant AgentService as AgentChannelService
participant LLM as LLM Provider
participant Channel as Channel Members
User->>Hub: Send @AgentName message
Hub->>AgentService: Detect mention and load context
AgentService->>LLM: Generate reply
LLM-->>AgentService: Response text
AgentService-->>Channel: Broadcast agent replyThe README is the entry point. The wiki is where installation, deployment, and deeper technical details live.
| If you want to... | Go here |
|---|---|
| Get the app running quickly | Getting Started |
| Take a quick product tour | Product Showcase |
| Install with more detail | Installation Guide |
| Configure database, JWT, encryption, and CORS | Configuration |
| Set up a contributor workstation | Development Setup |
| Deploy to production | Deployment Guide |
| Understand the backend and runtime design | Architecture Overview |
| Explore API and SignalR surface area | API Documentation |
| Debug common setup issues | Troubleshooting |
For contributors, the normal loop is:
src/Egroo.Server/appsettings.Development.json with your database, JWT secret, and encryption values.src/Egroo.Server.src/Egroo/Egroo.src/Egroo.Server.Test or the solution root.Common commands:
dotnet build src/Egroo.slnx --configuration Debug
dotnet test src/Egroo.Server.Test/Egroo.Server.Test.csproj --verbosity normal
dotnet watch --project src/Egroo.Server/Egroo.Server.csproj
dotnet watch --project src/Egroo/Egroo/Egroo.csprojFor full environment setup, use the Development Setup guide.
Contributions should be small, reviewable, and aligned with the existing architecture.
Before opening a pull request:
Egroo is licensed under the Apache License 2.0.
No open issues yet, or sync has not completed.