Soenneker.Blazor.Chatwoot 4.0.307

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.307
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 4.0.307
                    
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.307" />
                    
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.307" />
                    
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.307
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 4.0.307"
                    
#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.307
                    
#: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.307
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=4.0.307
                    
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 295 11/21/2025
4.0.344 320 11/21/2025
4.0.343 352 11/21/2025
4.0.342 354 11/21/2025
4.0.341 358 11/21/2025
4.0.340 356 11/21/2025
4.0.339 370 11/21/2025
4.0.338 371 11/21/2025
4.0.337 385 11/20/2025
4.0.336 378 11/20/2025
4.0.335 383 11/20/2025
4.0.334 378 11/20/2025
4.0.333 372 11/20/2025
4.0.332 272 11/11/2025
4.0.331 261 11/11/2025
4.0.330 264 11/11/2025
4.0.329 268 11/11/2025
4.0.328 264 11/11/2025
4.0.327 265 11/11/2025
4.0.326 273 11/11/2025
4.0.325 207 11/10/2025
4.0.324 177 11/10/2025
4.0.323 126 11/7/2025
4.0.322 138 11/7/2025
4.0.321 136 11/7/2025
4.0.320 145 11/6/2025
4.0.319 137 11/6/2025
4.0.318 134 11/6/2025
4.0.317 138 11/6/2025
4.0.316 136 11/6/2025
4.0.315 139 11/6/2025
4.0.314 177 11/4/2025
4.0.313 178 11/4/2025
4.0.312 179 11/4/2025
4.0.311 177 11/3/2025
4.0.310 179 10/31/2025
4.0.309 180 10/30/2025
4.0.308 181 10/30/2025
4.0.307 177 10/30/2025
4.0.306 176 10/30/2025
4.0.305 174 10/30/2025
4.0.304 181 10/30/2025
4.0.303 176 10/30/2025
4.0.302 177 10/30/2025
4.0.301 178 10/30/2025
4.0.300 182 10/30/2025
4.0.299 176 10/30/2025
4.0.298 179 10/29/2025
4.0.297 176 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 164 10/16/2025
3.0.292 160 10/15/2025
3.0.291 162 10/15/2025
3.0.290 164 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 305 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 173 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 185 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 163 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 223 8/5/2025
3.0.207 239 8/5/2025
3.0.206 233 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 164 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 159 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 104 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 192 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 204 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 186 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 161 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 266 5/14/2025
3.0.133 257 5/14/2025
3.0.132 260 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 180 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 175 5/5/2025
3.0.102 201 5/5/2025
3.0.101 195 5/5/2025
3.0.99 174 5/5/2025
3.0.98 180 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 196 4/9/2025
3.0.87 202 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 215 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 188 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 199 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 202 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 212 4/7/2025
3.0.40 210 4/7/2025
3.0.39 193 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 188 4/7/2025
3.0.29 215 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 215 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