Soenneker.Blazor.Chatwoot 3.0.296

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