Soenneker.Blazor.Chatwoot 4.0.335

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.335
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 4.0.335
                    
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.335" />
                    
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.335" />
                    
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.335
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 4.0.335"
                    
#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.335
                    
#: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.335
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=4.0.335
                    
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 321 11/21/2025
4.0.343 352 11/21/2025
4.0.342 354 11/21/2025
4.0.341 360 11/21/2025
4.0.340 356 11/21/2025
4.0.339 372 11/21/2025
4.0.338 372 11/21/2025
4.0.337 386 11/20/2025
4.0.336 378 11/20/2025
4.0.335 383 11/20/2025
4.0.334 380 11/20/2025
4.0.333 372 11/20/2025
4.0.332 273 11/11/2025
4.0.331 261 11/11/2025
4.0.330 266 11/11/2025
4.0.329 269 11/11/2025
4.0.328 265 11/11/2025
4.0.327 266 11/11/2025
4.0.326 273 11/11/2025
4.0.325 210 11/10/2025
4.0.324 178 11/10/2025
4.0.323 126 11/7/2025
4.0.322 139 11/7/2025
4.0.321 137 11/7/2025
4.0.320 146 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 137 11/6/2025
4.0.315 140 11/6/2025
4.0.314 178 11/4/2025
4.0.313 178 11/4/2025
4.0.312 181 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 178 10/30/2025
4.0.306 176 10/30/2025
4.0.305 176 10/30/2025
4.0.304 181 10/30/2025
4.0.303 178 10/30/2025
4.0.302 179 10/30/2025
4.0.301 179 10/30/2025
4.0.300 183 10/30/2025
4.0.299 178 10/30/2025
4.0.298 179 10/29/2025
4.0.297 176 10/29/2025
3.0.296 167 10/16/2025
3.0.295 163 10/16/2025
3.0.294 162 10/16/2025
3.0.293 166 10/16/2025
3.0.292 162 10/15/2025
3.0.291 162 10/15/2025
3.0.290 164 10/15/2025
3.0.289 171 10/15/2025
3.0.288 164 10/14/2025
3.0.287 171 10/14/2025
3.0.286 169 10/14/2025
3.0.285 183 10/1/2025
3.0.284 177 9/30/2025
3.0.283 136 9/26/2025
3.0.282 177 9/26/2025
3.0.281 245 9/22/2025
3.0.280 169 9/21/2025
3.0.279 181 9/20/2025
3.0.278 181 9/20/2025
3.0.277 190 9/20/2025
3.0.276 245 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 295 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 303 9/16/2025
3.0.266 307 9/16/2025
3.0.265 301 9/16/2025
3.0.264 299 9/15/2025
3.0.263 161 9/9/2025
3.0.262 169 9/9/2025
3.0.261 167 9/9/2025
3.0.260 167 9/9/2025
3.0.259 165 9/9/2025
3.0.258 175 9/9/2025
3.0.257 161 9/9/2025
3.0.256 173 9/9/2025
3.0.255 166 9/9/2025
3.0.254 173 9/9/2025
3.0.253 132 9/7/2025
3.0.252 140 9/6/2025
3.0.251 143 9/6/2025
3.0.250 142 9/6/2025
3.0.249 152 9/6/2025
3.0.248 132 9/5/2025
3.0.247 189 9/4/2025
3.0.246 180 9/3/2025
3.0.245 171 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 186 9/3/2025
3.0.237 175 9/3/2025
3.0.236 177 9/3/2025
3.0.235 183 9/3/2025
3.0.234 96 8/22/2025
3.0.233 101 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 173 8/12/2025
3.0.228 164 8/12/2025
3.0.227 169 8/12/2025
3.0.226 167 8/12/2025
3.0.225 167 8/11/2025
3.0.224 161 8/11/2025
3.0.223 170 8/11/2025
3.0.222 164 8/11/2025
3.0.221 164 8/11/2025
3.0.220 162 8/11/2025
3.0.219 164 8/11/2025
3.0.218 165 8/11/2025
3.0.217 166 8/11/2025
3.0.216 161 8/11/2025
3.0.215 161 8/11/2025
3.0.214 238 8/6/2025
3.0.213 247 8/5/2025
3.0.212 244 8/5/2025
3.0.211 250 8/5/2025
3.0.210 253 8/5/2025
3.0.209 248 8/5/2025
3.0.208 223 8/5/2025
3.0.207 240 8/5/2025
3.0.206 235 8/5/2025
3.0.205 219 8/5/2025
3.0.204 127 7/29/2025
3.0.203 503 7/24/2025
3.0.202 209 7/9/2025
3.0.201 169 7/9/2025
3.0.200 165 7/9/2025
3.0.199 164 7/9/2025
3.0.198 178 7/9/2025
3.0.197 174 7/8/2025
3.0.196 155 7/8/2025
3.0.195 170 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 160 7/2/2025
3.0.189 152 6/28/2025
3.0.188 96 6/28/2025
3.0.187 85 6/28/2025
3.0.186 110 6/28/2025
3.0.185 101 6/28/2025
3.0.184 92 6/28/2025
3.0.183 104 6/27/2025
3.0.182 98 6/27/2025
3.0.181 96 6/27/2025
3.0.180 108 6/27/2025
3.0.179 109 6/27/2025
3.0.178 110 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 308 6/11/2025
3.0.173 303 6/10/2025
3.0.172 327 6/10/2025
3.0.171 314 6/10/2025
3.0.170 311 6/10/2025
3.0.169 312 6/10/2025
3.0.168 319 6/10/2025
3.0.167 206 6/3/2025
3.0.166 184 6/2/2025
3.0.165 205 5/28/2025
3.0.164 180 5/28/2025
3.0.163 182 5/28/2025
3.0.162 174 5/27/2025
3.0.161 177 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 190 5/27/2025
3.0.155 173 5/27/2025
3.0.154 180 5/27/2025
3.0.153 148 5/25/2025
3.0.152 132 5/23/2025
3.0.151 170 5/23/2025
3.0.150 166 5/23/2025
3.0.149 144 5/23/2025
3.0.148 161 5/23/2025
3.0.147 177 5/23/2025
3.0.146 174 5/23/2025
3.0.145 153 5/23/2025
3.0.144 191 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 277 5/14/2025
3.0.135 272 5/14/2025
3.0.134 267 5/14/2025
3.0.133 258 5/14/2025
3.0.132 262 5/14/2025
3.0.131 255 5/14/2025
3.0.130 256 5/13/2025
3.0.129 242 5/8/2025
3.0.128 201 5/8/2025
3.0.127 175 5/8/2025
3.0.126 177 5/8/2025
3.0.125 159 5/8/2025
3.0.124 179 5/8/2025
3.0.123 177 5/8/2025
3.0.122 175 5/8/2025
3.0.121 181 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 181 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 169 5/5/2025
3.0.108 183 5/5/2025
3.0.107 171 5/5/2025
3.0.106 191 5/5/2025
3.0.105 177 5/5/2025
3.0.104 171 5/5/2025
3.0.103 177 5/5/2025
3.0.102 204 5/5/2025
3.0.101 195 5/5/2025
3.0.99 175 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 219 4/9/2025
3.0.92 213 4/9/2025
3.0.91 199 4/9/2025
3.0.90 193 4/9/2025
3.0.89 187 4/9/2025
3.0.88 198 4/9/2025
3.0.87 202 4/8/2025
3.0.86 195 4/8/2025
3.0.85 182 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 183 4/8/2025
3.0.79 203 4/8/2025
3.0.78 188 4/8/2025
3.0.77 207 4/8/2025
3.0.76 224 4/8/2025
3.0.75 195 4/8/2025
3.0.74 197 4/8/2025
3.0.73 197 4/8/2025
3.0.72 194 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 187 4/8/2025
3.0.67 207 4/8/2025
3.0.66 188 4/8/2025
3.0.65 192 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 206 4/8/2025
3.0.60 189 4/8/2025
3.0.59 219 4/8/2025
3.0.58 188 4/8/2025
3.0.57 191 4/8/2025
3.0.56 199 4/8/2025
3.0.55 194 4/8/2025
3.0.54 201 4/8/2025
3.0.53 193 4/8/2025
3.0.52 203 4/8/2025
3.0.51 192 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 198 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 217 4/7/2025
3.0.42 210 4/7/2025
3.0.41 212 4/7/2025
3.0.40 211 4/7/2025
3.0.39 193 4/7/2025
3.0.38 195 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 189 4/7/2025
3.0.29 215 4/7/2025
3.0.28 188 4/7/2025
3.0.27 195 4/7/2025
3.0.26 185 4/7/2025
3.0.25 221 4/7/2025
3.0.24 214 4/7/2025
3.0.23 191 4/7/2025
3.0.22 193 4/7/2025
3.0.21 196 4/7/2025
3.0.20 204 4/7/2025
3.0.19 221 4/7/2025
3.0.18 202 4/7/2025
3.0.17 206 4/7/2025
3.0.16 205 4/7/2025
3.0.15 216 4/7/2025
3.0.14 200 4/7/2025
3.0.13 209 4/7/2025
3.0.12 211 4/7/2025
3.0.11 200 4/7/2025
3.0.10 206 4/7/2025
3.0.9 201 4/7/2025
3.0.8 222 4/7/2025
3.0.7 186 4/7/2025
3.0.6 216 4/7/2025
3.0.5 204 4/7/2025
3.0.4 219 4/7/2025
3.0.3 200 4/7/2025
3.0.2 194 4/7/2025
3.0.1 205 4/7/2025