ChatCore.RealTime.SignalR 1.0.1

dotnet add package ChatCore.RealTime.SignalR --version 1.0.1
                    
NuGet\Install-Package ChatCore.RealTime.SignalR -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ChatCore.RealTime.SignalR" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ChatCore.RealTime.SignalR" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ChatCore.RealTime.SignalR" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ChatCore.RealTime.SignalR --version 1.0.1
                    
#r "nuget: ChatCore.RealTime.SignalR, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ChatCore.RealTime.SignalR@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ChatCore.RealTime.SignalR&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ChatCore.RealTime.SignalR&version=1.0.1
                    
Install as a Cake Tool

ChatCore.NET

A modular, scalable, SignalR-powered chat framework for .NET

NuGet CI License: MIT

🎯 Overview

ChatCore.NET is an enterprise-grade chat engine for .NET 8 applications. It provides a clean, pluggable abstraction over real-time communication with support for 1:1 and group conversations, read receipts, presence tracking, and horizontal scaling.

✨ Features

  • Modular Architecture — clean separation of concerns with pluggable storage and transport layers
  • Real-Time Delivery — built-in SignalR integration with automatic sender exclusion
  • Multi-Tenancy Ready — tenant isolation enforced at every layer including composite foreign keys
  • Message Ordering Guarantee — atomic sequence-number assignment per conversation
  • Read Receipts — high-water-mark tracking per user per conversation
  • Presence Tracking — online/offline status with multi-connection support
  • Soft Deletes — message content replaced with [deleted], record retained for audit
  • Idempotency — prevent duplicate sends with a client-supplied idempotency key
  • Interceptor Pipeline — middleware-style hooks before and after every send
  • Seek-based Pagination — cursor pagination on sequence numbers — no OFFSET scans
  • Global Exception Handling — structured JSON error responses from a single middleware

📦 Packages

Package Description
ChatCore.Abstractions Domain models, interfaces, contracts — no infrastructure dependencies
ChatCore.Core ChatEngine implementation and interceptor pipeline
ChatCore.Persistence.EFCore SQL Server repositories via EF Core 8
ChatCore.RealTime.SignalR SignalR hub, transport dispatcher, presence provider
ChatCore.AspNetCore ASP.NET Core integration — the only package most apps need

🚀 Quick Start

1. Install

dotnet add package ChatCore.AspNetCore

2. Register services

// Program.cs
builder.Services
    .AddChatCore()
    .UseEntityFramework(connectionString)
    .UseSignalR()
    .Build();

3. Map the hub and middleware

app.UseChatCoreExceptionHandler();  // global exception handler — register first
app.UseCors("ChatCoreCors");        // required for browser SignalR clients
app.MapChatHub("/hubs/chat");

4. Send a message

public class MessagesController : ControllerBase
{
    private readonly IChatEngine _engine;
    public MessagesController(IChatEngine engine) => _engine = engine;

    [HttpPost("{conversationId}/messages")]
    public async Task<IActionResult> Send(Guid conversationId, [FromBody] SendBody body)
    {
        var result = await _engine.SendAsync(new ChatMessageRequest
        {
            ConversationId = conversationId,
            SenderId       = User.GetUserId(),
            TenantId       = User.GetTenantId(),
            Content        = body.Content,
            IdempotencyKey = body.IdempotencyKey
        });
        return result.IsSuccess ? Ok(result.Data) : BadRequest(result.Error);
    }
}

5. Connect from JavaScript

const connection = new signalR.HubConnectionBuilder()
    .withUrl("/hubs/chat", { accessTokenFactory: () => yourJwtToken })
    .withAutomaticReconnect()
    .build();

connection.on("MessageReceived", (message) => console.log(message));

await connection.start();
await connection.invoke("JoinConversation", conversationId);
await connection.invoke("SendMessage", conversationId, "Hello!", tenantId);

📚 Documentation

Full documentation is in the docs/ folder:

Doc Description
Architecture Overview Layers, data flow, design decisions
Project Structure Directory layout, dependency graph
Quick Start Guide Step-by-step setup
Domain Models Entity and DTO reference
SignalR Hub Reference All hub methods and events
API Endpoints Request/response contracts, error codes
Database Schema Tables, indexes, migrations
Testing Strategies Unit and integration test guide
Configuration Redis, auth, Docker, health checks
Contributing Branch strategy, PR process, standards

🔐 Design Principles

  1. Storage Agnostic — swap storage behind an interface without touching the engine
  2. Transport Agnostic — SignalR today, anything tomorrow
  3. Multi-Tenant by Default — every entity carries TenantId, enforced at the database FK level
  4. Ordering Guarantee — atomic sequence numbers per conversation
  5. Scalability First — seek pagination, stateless design, Redis backplane support
  6. Extensible — interceptor pipeline for content filtering, audit logging, rate limiting
  7. Test Friendly — interface-driven, 70+ tests across unit and integration suites

📝 Roadmap

  • Core abstractions and domain models
  • ChatEngine with full send / read / paginate / delete
  • Entity Framework Core persistence layer
  • SignalR transport with correct sender exclusion
  • ASP.NET Core integration and DI builder
  • Unit and integration tests (70+ tests)
  • Global exception middleware
  • NuGet package release
  • Redis backplane support
  • Message encryption layer
  • Webhook support for external integrations
  • Multi-tenant admin dashboard

🤝 Contributing

Contributions are welcome! See docs/10-contributing-guidelines.md for the full guide.

📄 License

MIT — see LICENSE for details.

👨‍💻 Author

CalebTek — GitHub

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ChatCore.RealTime.SignalR:

Package Downloads
ChatCore.AspNetCore

ASP.NET Core integration package for ChatCore.NET. Provides the AddChatCore() fluent builder (UseEntityFramework, UseSignalR, AddInterceptor), MapChatHub() endpoint mapping, and UseChatCoreExceptionHandler() global exception middleware. This is the only package most host applications need to reference directly.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 126 6/14/2026
1.0.0 125 6/14/2026