Soenneker.Blazor.Chatwoot 3.0.286

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.286
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.286
                    
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.286" />
                    
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.286" />
                    
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.286
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.286"
                    
#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.286
                    
#: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.286
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.286
                    
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
4.0.297 0 10/29/2025
3.0.296 155 10/16/2025
3.0.295 153 10/16/2025
3.0.294 154 10/16/2025
3.0.293 154 10/16/2025
3.0.292 152 10/15/2025
3.0.291 156 10/15/2025
3.0.290 154 10/15/2025
3.0.289 157 10/15/2025
3.0.288 155 10/14/2025
3.0.287 161 10/14/2025
3.0.286 160 10/14/2025
3.0.285 176 10/1/2025
3.0.284 166 9/30/2025
3.0.283 129 9/26/2025
3.0.282 169 9/26/2025
3.0.281 238 9/22/2025
3.0.280 160 9/21/2025
3.0.279 176 9/20/2025
3.0.278 174 9/20/2025
3.0.277 183 9/20/2025
3.0.276 235 9/19/2025
3.0.275 299 9/19/2025
3.0.274 293 9/18/2025
3.0.273 278 9/18/2025
3.0.272 282 9/17/2025
3.0.271 291 9/17/2025
3.0.270 291 9/17/2025
3.0.269 295 9/17/2025
3.0.268 286 9/17/2025
3.0.267 295 9/16/2025
3.0.266 301 9/16/2025
3.0.265 297 9/16/2025
3.0.264 293 9/15/2025
3.0.263 155 9/9/2025
3.0.262 163 9/9/2025
3.0.261 161 9/9/2025
3.0.260 156 9/9/2025
3.0.259 157 9/9/2025
3.0.258 165 9/9/2025
3.0.257 156 9/9/2025
3.0.256 164 9/9/2025
3.0.255 154 9/9/2025
3.0.254 166 9/9/2025
3.0.253 126 9/7/2025
3.0.252 132 9/6/2025
3.0.251 137 9/6/2025
3.0.250 134 9/6/2025
3.0.249 139 9/6/2025
3.0.248 122 9/5/2025
3.0.247 181 9/4/2025
3.0.246 175 9/3/2025
3.0.245 164 9/3/2025
3.0.244 173 9/3/2025
3.0.243 162 9/3/2025
3.0.242 171 9/3/2025
3.0.241 175 9/3/2025
3.0.240 160 9/3/2025
3.0.239 161 9/3/2025
3.0.238 179 9/3/2025
3.0.237 170 9/3/2025
3.0.236 172 9/3/2025
3.0.235 176 9/3/2025
3.0.234 91 8/22/2025
3.0.233 95 8/22/2025
3.0.232 140 8/17/2025
3.0.231 147 8/15/2025
3.0.230 162 8/12/2025
3.0.229 166 8/12/2025
3.0.228 154 8/12/2025
3.0.227 165 8/12/2025
3.0.226 162 8/12/2025
3.0.225 163 8/11/2025
3.0.224 155 8/11/2025
3.0.223 166 8/11/2025
3.0.222 158 8/11/2025
3.0.221 157 8/11/2025
3.0.220 156 8/11/2025
3.0.219 159 8/11/2025
3.0.218 161 8/11/2025
3.0.217 158 8/11/2025
3.0.216 156 8/11/2025
3.0.215 155 8/11/2025
3.0.214 232 8/6/2025
3.0.213 241 8/5/2025
3.0.212 236 8/5/2025
3.0.211 242 8/5/2025
3.0.210 246 8/5/2025
3.0.209 243 8/5/2025
3.0.208 217 8/5/2025
3.0.207 233 8/5/2025
3.0.206 227 8/5/2025
3.0.205 214 8/5/2025
3.0.204 119 7/29/2025
3.0.203 498 7/24/2025
3.0.202 202 7/9/2025
3.0.201 160 7/9/2025
3.0.200 157 7/9/2025
3.0.199 159 7/9/2025
3.0.198 169 7/9/2025
3.0.197 169 7/8/2025
3.0.196 149 7/8/2025
3.0.195 165 7/8/2025
3.0.194 165 7/7/2025
3.0.193 134 7/4/2025
3.0.192 162 7/3/2025
3.0.191 165 7/3/2025
3.0.190 152 7/2/2025
3.0.189 149 6/28/2025
3.0.188 89 6/28/2025
3.0.187 79 6/28/2025
3.0.186 102 6/28/2025
3.0.185 92 6/28/2025
3.0.184 88 6/28/2025
3.0.183 100 6/27/2025
3.0.182 93 6/27/2025
3.0.181 88 6/27/2025
3.0.180 102 6/27/2025
3.0.179 103 6/27/2025
3.0.178 105 6/27/2025
3.0.177 184 6/24/2025
3.0.176 411 6/11/2025
3.0.175 312 6/11/2025
3.0.174 302 6/11/2025
3.0.173 298 6/10/2025
3.0.172 316 6/10/2025
3.0.171 309 6/10/2025
3.0.170 306 6/10/2025
3.0.169 307 6/10/2025
3.0.168 315 6/10/2025
3.0.167 197 6/3/2025
3.0.166 178 6/2/2025
3.0.165 197 5/28/2025
3.0.164 172 5/28/2025
3.0.163 173 5/28/2025
3.0.162 171 5/27/2025
3.0.161 168 5/27/2025
3.0.160 157 5/27/2025
3.0.159 175 5/27/2025
3.0.158 180 5/27/2025
3.0.157 171 5/27/2025
3.0.156 183 5/27/2025
3.0.155 170 5/27/2025
3.0.154 174 5/27/2025
3.0.153 145 5/25/2025
3.0.152 126 5/23/2025
3.0.151 160 5/23/2025
3.0.150 158 5/23/2025
3.0.149 142 5/23/2025
3.0.148 155 5/23/2025
3.0.147 170 5/23/2025
3.0.146 166 5/23/2025
3.0.145 145 5/23/2025
3.0.144 186 5/22/2025
3.0.143 178 5/22/2025
3.0.142 164 5/22/2025
3.0.141 198 5/21/2025
3.0.140 182 5/19/2025
3.0.139 155 5/18/2025
3.0.138 131 5/18/2025
3.0.137 265 5/14/2025
3.0.136 273 5/14/2025
3.0.135 266 5/14/2025
3.0.134 257 5/14/2025
3.0.133 254 5/14/2025
3.0.132 256 5/14/2025
3.0.131 251 5/14/2025
3.0.130 249 5/13/2025
3.0.129 233 5/8/2025
3.0.128 195 5/8/2025
3.0.127 171 5/8/2025
3.0.126 171 5/8/2025
3.0.125 154 5/8/2025
3.0.124 173 5/8/2025
3.0.123 173 5/8/2025
3.0.122 170 5/8/2025
3.0.121 176 5/8/2025
3.0.120 176 5/8/2025
3.0.119 177 5/7/2025
3.0.118 176 5/7/2025
3.0.117 173 5/7/2025
3.0.116 184 5/6/2025
3.0.115 177 5/5/2025
3.0.114 161 5/5/2025
3.0.113 178 5/5/2025
3.0.112 170 5/5/2025
3.0.111 189 5/5/2025
3.0.110 178 5/5/2025
3.0.109 164 5/5/2025
3.0.108 180 5/5/2025
3.0.107 165 5/5/2025
3.0.106 184 5/5/2025
3.0.105 170 5/5/2025
3.0.104 168 5/5/2025
3.0.103 170 5/5/2025
3.0.102 191 5/5/2025
3.0.101 189 5/5/2025
3.0.99 169 5/5/2025
3.0.98 174 5/5/2025
3.0.97 169 5/5/2025
3.0.96 190 5/5/2025
3.0.95 172 4/27/2025
3.0.94 102 4/26/2025
3.0.93 214 4/9/2025
3.0.92 204 4/9/2025
3.0.91 196 4/9/2025
3.0.90 188 4/9/2025
3.0.89 184 4/9/2025
3.0.88 188 4/9/2025
3.0.87 196 4/8/2025
3.0.86 193 4/8/2025
3.0.85 177 4/8/2025
3.0.84 187 4/8/2025
3.0.83 206 4/8/2025
3.0.82 183 4/8/2025
3.0.81 200 4/8/2025
3.0.80 177 4/8/2025
3.0.79 197 4/8/2025
3.0.78 183 4/8/2025
3.0.77 202 4/8/2025
3.0.76 216 4/8/2025
3.0.75 190 4/8/2025
3.0.74 190 4/8/2025
3.0.73 194 4/8/2025
3.0.72 190 4/8/2025
3.0.71 196 4/8/2025
3.0.70 192 4/8/2025
3.0.69 190 4/8/2025
3.0.68 181 4/8/2025
3.0.67 202 4/8/2025
3.0.66 181 4/8/2025
3.0.65 187 4/8/2025
3.0.64 221 4/8/2025
3.0.63 195 4/8/2025
3.0.62 181 4/8/2025
3.0.61 198 4/8/2025
3.0.60 184 4/8/2025
3.0.59 210 4/8/2025
3.0.58 182 4/8/2025
3.0.57 188 4/8/2025
3.0.56 192 4/8/2025
3.0.55 190 4/8/2025
3.0.54 194 4/8/2025
3.0.53 190 4/8/2025
3.0.52 200 4/8/2025
3.0.51 186 4/8/2025
3.0.50 210 4/8/2025
3.0.49 186 4/8/2025
3.0.48 198 4/8/2025
3.0.47 192 4/8/2025
3.0.46 190 4/7/2025
3.0.45 196 4/7/2025
3.0.44 186 4/7/2025
3.0.43 211 4/7/2025
3.0.42 202 4/7/2025
3.0.41 204 4/7/2025
3.0.40 201 4/7/2025
3.0.39 185 4/7/2025
3.0.38 188 4/7/2025
3.0.37 188 4/7/2025
3.0.36 209 4/7/2025
3.0.35 205 4/7/2025
3.0.34 185 4/7/2025
3.0.33 202 4/7/2025
3.0.32 189 4/7/2025
3.0.31 179 4/7/2025
3.0.30 185 4/7/2025
3.0.29 206 4/7/2025
3.0.28 182 4/7/2025
3.0.27 190 4/7/2025
3.0.26 182 4/7/2025
3.0.25 214 4/7/2025
3.0.24 207 4/7/2025
3.0.23 188 4/7/2025
3.0.22 188 4/7/2025
3.0.21 192 4/7/2025
3.0.20 196 4/7/2025
3.0.19 213 4/7/2025
3.0.18 196 4/7/2025
3.0.17 199 4/7/2025
3.0.16 200 4/7/2025
3.0.15 203 4/7/2025
3.0.14 193 4/7/2025
3.0.13 204 4/7/2025
3.0.12 201 4/7/2025
3.0.11 194 4/7/2025
3.0.10 200 4/7/2025
3.0.9 196 4/7/2025
3.0.8 209 4/7/2025
3.0.7 180 4/7/2025
3.0.6 207 4/7/2025
3.0.5 200 4/7/2025
3.0.4 207 4/7/2025
3.0.3 195 4/7/2025
3.0.2 190 4/7/2025
3.0.1 198 4/7/2025