Soenneker.Blazor.Chatwoot 3.0.213

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Blazor.Chatwoot --version 3.0.213
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.213
                    
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="Soenneker.Blazor.Chatwoot" Version="3.0.213" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Chatwoot" Version="3.0.213" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Chatwoot" />
                    
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 Soenneker.Blazor.Chatwoot --version 3.0.213
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.213"
                    
#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 Soenneker.Blazor.Chatwoot@3.0.213
                    
#: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=Soenneker.Blazor.Chatwoot&version=3.0.213
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.213
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Blazor.Chatwoot

A Blazor interop library for Chatwoot, the open-source customer engagement suite.


โœจ Features

  • ๐Ÿ“ฆ Lightweight Blazor component wrapper for the Chatwoot JS SDK
  • ๐Ÿ”„ Full .NET interop with JavaScript events
  • ๐Ÿ“ก Supports event callbacks like OnOpen, OnMessage, and OnError
  • โš™๏ธ Clean integration using dependency injection
  • ๐Ÿงช Supports unit testing with IChatwoot abstraction

๐Ÿ“ฆ Installation

dotnet add package Soenneker.Blazor.Chatwoot

Register the interop in DI:

public static async Task Main(string[] args)
{
    builder.Services.AddChatwootInteropAsScoped();
}

๐Ÿš€ Usage

๐Ÿงฉ Add to a Razor component

<Chatwoot Configuration="_config"
          OnOpen="HandleOpen"
          OnClose="HandleClose"
          OnReady="HandleReady"
          OnMessage="HandleMessage"
          OnError="HandleError" />

๐Ÿง  Component code-behind

@code {
    private readonly ChatwootConfiguration _config = new()
    {
        WebsiteToken = "replace-with-your-token",
        BaseUrl = "https://app.chatwoot.com"
    };

    private Task HandleReady() => ConsoleLog("Chatwoot is ready!");
    private Task HandleOpen() => ConsoleLog("Chat opened");
    private Task HandleClose() => ConsoleLog("Chat closed");

    private Task HandleMessage(ChatwootMessage message)
    {
        Console.WriteLine($"Message from Chatwoot: {message.Content}");
        return Task.CompletedTask;
    }

    private Task HandleError(JsonElement error)
    {
        Console.WriteLine($"Chatwoot error: {error}");
        return Task.CompletedTask;
    }

    private Task ConsoleLog(string msg)
    {
        Console.WriteLine(msg);
        return Task.CompletedTask;
    }
}

โš™๏ธ Configuration

You must supply a ChatwootConfiguration object to the component:

var config = new ChatwootConfiguration
{
    WebsiteToken = "your-token", // Required
    BaseUrl = "https://app.chatwoot.com", // Optional, defaults to this
    Locale = "en", // Optional, default is "en"
    HideMessageBubble = false,
    ShowUnreadMessagesDialog = false,
    Position = "right", // "left" or "right"
    UseBrowserLanguage = false,
    Type = "standard", // or "expanded_bubble"
    DarkMode = "auto", // "light" or "auto"
    BaseDomain = null // Optional, for cross-subdomain tracking
};

๐Ÿ“š API

This library provides a full interface via IChatwoot, including:

  • SetUser(...)
  • SetLabel(...)
  • Shutdown()
  • Toggle()
  • SetLocale(...)
  • SetCustomAttributes(...)
  • ... and more!

๐Ÿ’ฌ Chatwoot Events

The following Chatwoot events are exposed as Blazor EventCallbacks:

Chatwoot Event .NET Callback
chatwoot:ready OnReady
chatwoot:open OnOpen
chatwoot:close OnClose
chatwoot:on-message OnMessage(ChatwootMessage)
chatwoot:error OnError(JsonElement)
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.215 0 8/11/2025
3.0.214 163 8/6/2025
3.0.213 166 8/5/2025
3.0.212 169 8/5/2025
3.0.211 169 8/5/2025
3.0.210 168 8/5/2025
3.0.209 166 8/5/2025
3.0.208 168 8/5/2025
3.0.207 166 8/5/2025
3.0.206 167 8/5/2025
3.0.205 168 8/5/2025
3.0.204 88 7/29/2025
3.0.203 435 7/24/2025
3.0.202 157 7/9/2025
3.0.201 130 7/9/2025
3.0.200 133 7/9/2025
3.0.199 131 7/9/2025
3.0.198 136 7/9/2025
3.0.197 136 7/8/2025
3.0.196 129 7/8/2025
3.0.195 133 7/8/2025
3.0.194 145 7/7/2025
3.0.193 112 7/4/2025
3.0.192 142 7/3/2025
3.0.191 131 7/3/2025
3.0.190 131 7/2/2025
3.0.189 123 6/28/2025
3.0.188 59 6/28/2025
3.0.187 60 6/28/2025
3.0.186 60 6/28/2025
3.0.185 64 6/28/2025
3.0.184 61 6/28/2025
3.0.183 71 6/27/2025
3.0.182 63 6/27/2025
3.0.181 70 6/27/2025
3.0.180 73 6/27/2025
3.0.179 73 6/27/2025
3.0.178 76 6/27/2025
3.0.177 137 6/24/2025
3.0.176 383 6/11/2025
3.0.175 280 6/11/2025
3.0.174 278 6/11/2025
3.0.173 279 6/10/2025
3.0.172 280 6/10/2025
3.0.171 279 6/10/2025
3.0.170 276 6/10/2025
3.0.169 278 6/10/2025
3.0.168 282 6/10/2025
3.0.167 158 6/3/2025
3.0.166 146 6/2/2025
3.0.165 170 5/28/2025
3.0.164 145 5/28/2025
3.0.163 144 5/28/2025
3.0.162 142 5/27/2025
3.0.161 143 5/27/2025
3.0.160 138 5/27/2025
3.0.159 143 5/27/2025
3.0.158 145 5/27/2025
3.0.157 140 5/27/2025
3.0.156 144 5/27/2025
3.0.155 142 5/27/2025
3.0.154 145 5/27/2025
3.0.153 104 5/25/2025
3.0.152 109 5/23/2025
3.0.151 119 5/23/2025
3.0.150 123 5/23/2025
3.0.149 123 5/23/2025
3.0.148 124 5/23/2025
3.0.147 126 5/23/2025
3.0.146 132 5/23/2025
3.0.145 127 5/23/2025
3.0.144 153 5/22/2025
3.0.143 144 5/22/2025
3.0.142 144 5/22/2025
3.0.141 167 5/21/2025
3.0.140 152 5/19/2025
3.0.139 145 5/18/2025
3.0.138 103 5/18/2025
3.0.137 235 5/14/2025
3.0.136 244 5/14/2025
3.0.135 229 5/14/2025
3.0.134 228 5/14/2025
3.0.133 224 5/14/2025
3.0.132 228 5/14/2025
3.0.131 221 5/14/2025
3.0.130 221 5/13/2025
3.0.129 192 5/8/2025
3.0.128 148 5/8/2025
3.0.127 139 5/8/2025
3.0.126 142 5/8/2025
3.0.125 142 5/8/2025
3.0.124 141 5/8/2025
3.0.123 144 5/8/2025
3.0.122 142 5/8/2025
3.0.121 145 5/8/2025
3.0.120 140 5/8/2025
3.0.119 144 5/7/2025
3.0.118 142 5/7/2025
3.0.117 142 5/7/2025
3.0.116 153 5/6/2025
3.0.115 145 5/5/2025
3.0.114 139 5/5/2025
3.0.113 148 5/5/2025
3.0.112 138 5/5/2025
3.0.111 144 5/5/2025
3.0.110 150 5/5/2025
3.0.109 137 5/5/2025
3.0.108 149 5/5/2025
3.0.107 136 5/5/2025
3.0.106 143 5/5/2025
3.0.105 141 5/5/2025
3.0.104 140 5/5/2025
3.0.103 139 5/5/2025
3.0.102 143 5/5/2025
3.0.101 149 5/5/2025
3.0.99 139 5/5/2025
3.0.98 142 5/5/2025
3.0.97 140 5/5/2025
3.0.96 144 5/5/2025
3.0.95 141 4/27/2025
3.0.94 82 4/26/2025
3.0.93 185 4/9/2025
3.0.92 157 4/9/2025
3.0.91 165 4/9/2025
3.0.90 159 4/9/2025
3.0.89 155 4/9/2025
3.0.88 158 4/9/2025
3.0.87 165 4/8/2025
3.0.86 162 4/8/2025
3.0.85 158 4/8/2025
3.0.84 159 4/8/2025
3.0.83 155 4/8/2025
3.0.82 153 4/8/2025
3.0.81 159 4/8/2025
3.0.80 153 4/8/2025
3.0.79 163 4/8/2025
3.0.78 163 4/8/2025
3.0.77 168 4/8/2025
3.0.76 169 4/8/2025
3.0.75 161 4/8/2025
3.0.74 162 4/8/2025
3.0.73 162 4/8/2025
3.0.72 165 4/8/2025
3.0.71 170 4/8/2025
3.0.70 162 4/8/2025
3.0.69 155 4/8/2025
3.0.68 161 4/8/2025
3.0.67 171 4/8/2025
3.0.66 159 4/8/2025
3.0.65 156 4/8/2025
3.0.64 169 4/8/2025
3.0.63 163 4/8/2025
3.0.62 163 4/8/2025
3.0.61 168 4/8/2025
3.0.60 160 4/8/2025
3.0.59 167 4/8/2025
3.0.58 160 4/8/2025
3.0.57 158 4/8/2025
3.0.56 161 4/8/2025
3.0.55 160 4/8/2025
3.0.54 164 4/8/2025
3.0.53 160 4/8/2025
3.0.52 170 4/8/2025
3.0.51 157 4/8/2025
3.0.50 171 4/8/2025
3.0.49 159 4/8/2025
3.0.48 164 4/8/2025
3.0.47 162 4/8/2025
3.0.46 163 4/7/2025
3.0.45 164 4/7/2025
3.0.44 157 4/7/2025
3.0.43 165 4/7/2025
3.0.42 165 4/7/2025
3.0.41 166 4/7/2025
3.0.40 163 4/7/2025
3.0.39 163 4/7/2025
3.0.38 160 4/7/2025
3.0.37 158 4/7/2025
3.0.36 165 4/7/2025
3.0.35 165 4/7/2025
3.0.34 155 4/7/2025
3.0.33 159 4/7/2025
3.0.32 161 4/7/2025
3.0.31 161 4/7/2025
3.0.30 155 4/7/2025
3.0.29 162 4/7/2025
3.0.28 158 4/7/2025
3.0.27 158 4/7/2025
3.0.26 153 4/7/2025
3.0.25 174 4/7/2025
3.0.24 163 4/7/2025
3.0.23 167 4/7/2025
3.0.22 159 4/7/2025
3.0.21 163 4/7/2025
3.0.20 165 4/7/2025
3.0.19 169 4/7/2025
3.0.18 166 4/7/2025
3.0.17 168 4/7/2025
3.0.16 166 4/7/2025
3.0.15 164 4/7/2025
3.0.14 165 4/7/2025
3.0.13 168 4/7/2025
3.0.12 165 4/7/2025
3.0.11 162 4/7/2025
3.0.10 169 4/7/2025
3.0.9 166 4/7/2025
3.0.8 164 4/7/2025
3.0.7 160 4/7/2025
3.0.6 174 4/7/2025
3.0.5 168 4/7/2025
3.0.4 166 4/7/2025
3.0.3 165 4/7/2025
3.0.2 161 4/7/2025
3.0.1 168 4/7/2025