Soenneker.Blazor.Chatwoot 4.0.313

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 4.0.313
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 4.0.313
                    
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="4.0.313" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Chatwoot" Version="4.0.313" />
                    
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 4.0.313
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 4.0.313"
                    
#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@4.0.313
                    
#: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=4.0.313
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=4.0.313
                    
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 net10.0 is compatible.  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.345 294 11/21/2025
4.0.344 319 11/21/2025
4.0.343 351 11/21/2025
4.0.342 352 11/21/2025
4.0.341 357 11/21/2025
4.0.340 355 11/21/2025
4.0.339 369 11/21/2025
4.0.338 370 11/21/2025
4.0.337 384 11/20/2025
4.0.336 377 11/20/2025
4.0.335 382 11/20/2025
4.0.334 376 11/20/2025
4.0.333 371 11/20/2025
4.0.332 271 11/11/2025
4.0.331 260 11/11/2025
4.0.330 263 11/11/2025
4.0.329 267 11/11/2025
4.0.328 263 11/11/2025
4.0.327 264 11/11/2025
4.0.326 272 11/11/2025
4.0.325 206 11/10/2025
4.0.324 176 11/10/2025
4.0.323 125 11/7/2025
4.0.322 137 11/7/2025
4.0.321 135 11/7/2025
4.0.320 144 11/6/2025
4.0.319 136 11/6/2025
4.0.318 133 11/6/2025
4.0.317 137 11/6/2025
4.0.316 135 11/6/2025
4.0.315 138 11/6/2025
4.0.314 175 11/4/2025
4.0.313 176 11/4/2025
4.0.312 177 11/4/2025
4.0.311 176 11/3/2025
4.0.310 178 10/31/2025
4.0.309 179 10/30/2025
4.0.308 180 10/30/2025
4.0.307 176 10/30/2025
4.0.306 175 10/30/2025
4.0.305 173 10/30/2025
4.0.304 180 10/30/2025
4.0.303 175 10/30/2025
4.0.302 176 10/30/2025
4.0.301 177 10/30/2025
4.0.300 181 10/30/2025
4.0.299 175 10/30/2025
4.0.298 178 10/29/2025
4.0.297 175 10/29/2025
3.0.296 166 10/16/2025
3.0.295 162 10/16/2025
3.0.294 162 10/16/2025
3.0.293 163 10/16/2025
3.0.292 160 10/15/2025
3.0.291 162 10/15/2025
3.0.290 162 10/15/2025
3.0.289 167 10/15/2025
3.0.288 164 10/14/2025
3.0.287 171 10/14/2025
3.0.286 168 10/14/2025
3.0.285 183 10/1/2025
3.0.284 174 9/30/2025
3.0.283 135 9/26/2025
3.0.282 177 9/26/2025
3.0.281 244 9/22/2025
3.0.280 169 9/21/2025
3.0.279 180 9/20/2025
3.0.278 181 9/20/2025
3.0.277 189 9/20/2025
3.0.276 243 9/19/2025
3.0.275 306 9/19/2025
3.0.274 300 9/18/2025
3.0.273 285 9/18/2025
3.0.272 288 9/17/2025
3.0.271 294 9/17/2025
3.0.270 298 9/17/2025
3.0.269 302 9/17/2025
3.0.268 293 9/17/2025
3.0.267 302 9/16/2025
3.0.266 305 9/16/2025
3.0.265 301 9/16/2025
3.0.264 298 9/15/2025
3.0.263 161 9/9/2025
3.0.262 168 9/9/2025
3.0.261 165 9/9/2025
3.0.260 164 9/9/2025
3.0.259 164 9/9/2025
3.0.258 172 9/9/2025
3.0.257 160 9/9/2025
3.0.256 173 9/9/2025
3.0.255 165 9/9/2025
3.0.254 173 9/9/2025
3.0.253 131 9/7/2025
3.0.252 140 9/6/2025
3.0.251 142 9/6/2025
3.0.250 141 9/6/2025
3.0.249 151 9/6/2025
3.0.248 131 9/5/2025
3.0.247 187 9/4/2025
3.0.246 180 9/3/2025
3.0.245 170 9/3/2025
3.0.244 176 9/3/2025
3.0.243 168 9/3/2025
3.0.242 178 9/3/2025
3.0.241 179 9/3/2025
3.0.240 165 9/3/2025
3.0.239 167 9/3/2025
3.0.238 184 9/3/2025
3.0.237 174 9/3/2025
3.0.236 177 9/3/2025
3.0.235 181 9/3/2025
3.0.234 95 8/22/2025
3.0.233 100 8/22/2025
3.0.232 145 8/17/2025
3.0.231 154 8/15/2025
3.0.230 167 8/12/2025
3.0.229 170 8/12/2025
3.0.228 162 8/12/2025
3.0.227 168 8/12/2025
3.0.226 166 8/12/2025
3.0.225 166 8/11/2025
3.0.224 159 8/11/2025
3.0.223 169 8/11/2025
3.0.222 164 8/11/2025
3.0.221 162 8/11/2025
3.0.220 160 8/11/2025
3.0.219 164 8/11/2025
3.0.218 164 8/11/2025
3.0.217 165 8/11/2025
3.0.216 161 8/11/2025
3.0.215 159 8/11/2025
3.0.214 237 8/6/2025
3.0.213 246 8/5/2025
3.0.212 243 8/5/2025
3.0.211 250 8/5/2025
3.0.210 252 8/5/2025
3.0.209 248 8/5/2025
3.0.208 222 8/5/2025
3.0.207 238 8/5/2025
3.0.206 232 8/5/2025
3.0.205 219 8/5/2025
3.0.204 126 7/29/2025
3.0.203 502 7/24/2025
3.0.202 209 7/9/2025
3.0.201 168 7/9/2025
3.0.200 164 7/9/2025
3.0.199 163 7/9/2025
3.0.198 177 7/9/2025
3.0.197 174 7/8/2025
3.0.196 155 7/8/2025
3.0.195 169 7/8/2025
3.0.194 172 7/7/2025
3.0.193 139 7/4/2025
3.0.192 167 7/3/2025
3.0.191 173 7/3/2025
3.0.190 157 7/2/2025
3.0.189 152 6/28/2025
3.0.188 94 6/28/2025
3.0.187 85 6/28/2025
3.0.186 107 6/28/2025
3.0.185 100 6/28/2025
3.0.184 92 6/28/2025
3.0.183 103 6/27/2025
3.0.182 97 6/27/2025
3.0.181 95 6/27/2025
3.0.180 108 6/27/2025
3.0.179 108 6/27/2025
3.0.178 108 6/27/2025
3.0.177 191 6/24/2025
3.0.176 417 6/11/2025
3.0.175 316 6/11/2025
3.0.174 306 6/11/2025
3.0.173 303 6/10/2025
3.0.172 327 6/10/2025
3.0.171 313 6/10/2025
3.0.170 310 6/10/2025
3.0.169 311 6/10/2025
3.0.168 319 6/10/2025
3.0.167 204 6/3/2025
3.0.166 182 6/2/2025
3.0.165 202 5/28/2025
3.0.164 179 5/28/2025
3.0.163 179 5/28/2025
3.0.162 174 5/27/2025
3.0.161 176 5/27/2025
3.0.160 162 5/27/2025
3.0.159 181 5/27/2025
3.0.158 185 5/27/2025
3.0.157 175 5/27/2025
3.0.156 189 5/27/2025
3.0.155 173 5/27/2025
3.0.154 179 5/27/2025
3.0.153 148 5/25/2025
3.0.152 131 5/23/2025
3.0.151 169 5/23/2025
3.0.150 165 5/23/2025
3.0.149 144 5/23/2025
3.0.148 160 5/23/2025
3.0.147 176 5/23/2025
3.0.146 170 5/23/2025
3.0.145 150 5/23/2025
3.0.144 190 5/22/2025
3.0.143 185 5/22/2025
3.0.142 169 5/22/2025
3.0.141 200 5/21/2025
3.0.140 185 5/19/2025
3.0.139 158 5/18/2025
3.0.138 135 5/18/2025
3.0.137 271 5/14/2025
3.0.136 276 5/14/2025
3.0.135 272 5/14/2025
3.0.134 265 5/14/2025
3.0.133 257 5/14/2025
3.0.132 259 5/14/2025
3.0.131 254 5/14/2025
3.0.130 256 5/13/2025
3.0.129 241 5/8/2025
3.0.128 200 5/8/2025
3.0.127 175 5/8/2025
3.0.126 177 5/8/2025
3.0.125 157 5/8/2025
3.0.124 179 5/8/2025
3.0.123 177 5/8/2025
3.0.122 174 5/8/2025
3.0.121 179 5/8/2025
3.0.120 179 5/8/2025
3.0.119 182 5/7/2025
3.0.118 182 5/7/2025
3.0.117 180 5/7/2025
3.0.116 188 5/6/2025
3.0.115 184 5/5/2025
3.0.114 163 5/5/2025
3.0.113 181 5/5/2025
3.0.112 174 5/5/2025
3.0.111 192 5/5/2025
3.0.110 181 5/5/2025
3.0.109 168 5/5/2025
3.0.108 183 5/5/2025
3.0.107 168 5/5/2025
3.0.106 191 5/5/2025
3.0.105 176 5/5/2025
3.0.104 171 5/5/2025
3.0.103 174 5/5/2025
3.0.102 201 5/5/2025
3.0.101 193 5/5/2025
3.0.99 173 5/5/2025
3.0.98 179 5/5/2025
3.0.97 172 5/5/2025
3.0.96 195 5/5/2025
3.0.95 178 4/27/2025
3.0.94 104 4/26/2025
3.0.93 217 4/9/2025
3.0.92 210 4/9/2025
3.0.91 199 4/9/2025
3.0.90 192 4/9/2025
3.0.89 187 4/9/2025
3.0.88 195 4/9/2025
3.0.87 201 4/8/2025
3.0.86 195 4/8/2025
3.0.85 181 4/8/2025
3.0.84 193 4/8/2025
3.0.83 214 4/8/2025
3.0.82 185 4/8/2025
3.0.81 208 4/8/2025
3.0.80 182 4/8/2025
3.0.79 202 4/8/2025
3.0.78 187 4/8/2025
3.0.77 206 4/8/2025
3.0.76 223 4/8/2025
3.0.75 194 4/8/2025
3.0.74 196 4/8/2025
3.0.73 197 4/8/2025
3.0.72 193 4/8/2025
3.0.71 202 4/8/2025
3.0.70 196 4/8/2025
3.0.69 194 4/8/2025
3.0.68 186 4/8/2025
3.0.67 207 4/8/2025
3.0.66 186 4/8/2025
3.0.65 191 4/8/2025
3.0.64 229 4/8/2025
3.0.63 199 4/8/2025
3.0.62 186 4/8/2025
3.0.61 204 4/8/2025
3.0.60 187 4/8/2025
3.0.59 219 4/8/2025
3.0.58 188 4/8/2025
3.0.57 190 4/8/2025
3.0.56 198 4/8/2025
3.0.55 194 4/8/2025
3.0.54 200 4/8/2025
3.0.53 193 4/8/2025
3.0.52 203 4/8/2025
3.0.51 191 4/8/2025
3.0.50 214 4/8/2025
3.0.49 191 4/8/2025
3.0.48 201 4/8/2025
3.0.47 197 4/8/2025
3.0.46 195 4/7/2025
3.0.45 205 4/7/2025
3.0.44 190 4/7/2025
3.0.43 216 4/7/2025
3.0.42 210 4/7/2025
3.0.41 211 4/7/2025
3.0.40 210 4/7/2025
3.0.39 192 4/7/2025
3.0.38 193 4/7/2025
3.0.37 190 4/7/2025
3.0.36 217 4/7/2025
3.0.35 215 4/7/2025
3.0.34 190 4/7/2025
3.0.33 205 4/7/2025
3.0.32 195 4/7/2025
3.0.31 183 4/7/2025
3.0.30 187 4/7/2025
3.0.29 213 4/7/2025
3.0.28 186 4/7/2025
3.0.27 194 4/7/2025
3.0.26 185 4/7/2025
3.0.25 221 4/7/2025
3.0.24 213 4/7/2025
3.0.23 191 4/7/2025
3.0.22 192 4/7/2025
3.0.21 196 4/7/2025
3.0.20 204 4/7/2025
3.0.19 220 4/7/2025
3.0.18 200 4/7/2025
3.0.17 206 4/7/2025
3.0.16 205 4/7/2025
3.0.15 214 4/7/2025
3.0.14 198 4/7/2025
3.0.13 209 4/7/2025
3.0.12 210 4/7/2025
3.0.11 200 4/7/2025
3.0.10 204 4/7/2025
3.0.9 201 4/7/2025
3.0.8 218 4/7/2025
3.0.7 185 4/7/2025
3.0.6 216 4/7/2025
3.0.5 204 4/7/2025
3.0.4 218 4/7/2025
3.0.3 198 4/7/2025
3.0.2 192 4/7/2025
3.0.1 204 4/7/2025