Soenneker.Blazor.Chatwoot 3.0.282

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.282
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.282
                    
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.282" />
                    
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.282" />
                    
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.282
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.282"
                    
#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.282
                    
#: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.282
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.282
                    
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.283 53 9/26/2025
3.0.282 100 9/26/2025
3.0.281 141 9/22/2025
3.0.280 130 9/21/2025
3.0.279 147 9/20/2025
3.0.278 156 9/20/2025
3.0.277 164 9/20/2025
3.0.276 220 9/19/2025
3.0.275 280 9/19/2025
3.0.274 276 9/18/2025
3.0.273 272 9/18/2025
3.0.272 275 9/17/2025
3.0.271 274 9/17/2025
3.0.270 277 9/17/2025
3.0.269 279 9/17/2025
3.0.268 281 9/17/2025
3.0.267 278 9/16/2025
3.0.266 287 9/16/2025
3.0.265 282 9/16/2025
3.0.264 274 9/15/2025
3.0.263 152 9/9/2025
3.0.262 149 9/9/2025
3.0.261 153 9/9/2025
3.0.260 151 9/9/2025
3.0.259 143 9/9/2025
3.0.258 150 9/9/2025
3.0.257 150 9/9/2025
3.0.256 151 9/9/2025
3.0.255 150 9/9/2025
3.0.254 153 9/9/2025
3.0.253 122 9/7/2025
3.0.252 129 9/6/2025
3.0.251 120 9/6/2025
3.0.250 120 9/6/2025
3.0.249 124 9/6/2025
3.0.248 116 9/5/2025
3.0.247 166 9/4/2025
3.0.246 160 9/3/2025
3.0.245 148 9/3/2025
3.0.244 162 9/3/2025
3.0.243 153 9/3/2025
3.0.242 157 9/3/2025
3.0.241 160 9/3/2025
3.0.240 156 9/3/2025
3.0.239 158 9/3/2025
3.0.238 165 9/3/2025
3.0.237 157 9/3/2025
3.0.236 157 9/3/2025
3.0.235 161 9/3/2025
3.0.234 79 8/22/2025
3.0.233 93 8/22/2025
3.0.232 128 8/17/2025
3.0.231 141 8/15/2025
3.0.230 152 8/12/2025
3.0.229 152 8/12/2025
3.0.228 150 8/12/2025
3.0.227 152 8/12/2025
3.0.226 149 8/12/2025
3.0.225 151 8/11/2025
3.0.224 143 8/11/2025
3.0.223 154 8/11/2025
3.0.222 156 8/11/2025
3.0.221 144 8/11/2025
3.0.220 144 8/11/2025
3.0.219 146 8/11/2025
3.0.218 147 8/11/2025
3.0.217 146 8/11/2025
3.0.216 144 8/11/2025
3.0.215 152 8/11/2025
3.0.214 229 8/6/2025
3.0.213 237 8/5/2025
3.0.212 234 8/5/2025
3.0.211 230 8/5/2025
3.0.210 231 8/5/2025
3.0.209 231 8/5/2025
3.0.208 204 8/5/2025
3.0.207 218 8/5/2025
3.0.206 215 8/5/2025
3.0.205 212 8/5/2025
3.0.204 105 7/29/2025
3.0.203 483 7/24/2025
3.0.202 190 7/9/2025
3.0.201 148 7/9/2025
3.0.200 151 7/9/2025
3.0.199 147 7/9/2025
3.0.198 154 7/9/2025
3.0.197 155 7/8/2025
3.0.196 137 7/8/2025
3.0.195 153 7/8/2025
3.0.194 163 7/7/2025
3.0.193 131 7/4/2025
3.0.192 150 7/3/2025
3.0.191 150 7/3/2025
3.0.190 149 7/2/2025
3.0.189 131 6/28/2025
3.0.188 76 6/28/2025
3.0.187 77 6/28/2025
3.0.186 79 6/28/2025
3.0.185 80 6/28/2025
3.0.184 78 6/28/2025
3.0.183 88 6/27/2025
3.0.182 80 6/27/2025
3.0.181 86 6/27/2025
3.0.180 90 6/27/2025
3.0.179 90 6/27/2025
3.0.178 93 6/27/2025
3.0.177 165 6/24/2025
3.0.176 405 6/11/2025
3.0.175 296 6/11/2025
3.0.174 294 6/11/2025
3.0.173 296 6/10/2025
3.0.172 301 6/10/2025
3.0.171 296 6/10/2025
3.0.170 292 6/10/2025
3.0.169 293 6/10/2025
3.0.168 297 6/10/2025
3.0.167 179 6/3/2025
3.0.166 162 6/2/2025
3.0.165 186 5/28/2025
3.0.164 159 5/28/2025
3.0.163 158 5/28/2025
3.0.162 158 5/27/2025
3.0.161 157 5/27/2025
3.0.160 144 5/27/2025
3.0.159 160 5/27/2025
3.0.158 166 5/27/2025
3.0.157 157 5/27/2025
3.0.156 163 5/27/2025
3.0.155 158 5/27/2025
3.0.154 161 5/27/2025
3.0.153 125 5/25/2025
3.0.152 114 5/23/2025
3.0.151 140 5/23/2025
3.0.150 146 5/23/2025
3.0.149 139 5/23/2025
3.0.148 141 5/23/2025
3.0.147 149 5/23/2025
3.0.146 154 5/23/2025
3.0.145 142 5/23/2025
3.0.144 173 5/22/2025
3.0.143 159 5/22/2025
3.0.142 160 5/22/2025
3.0.141 185 5/21/2025
3.0.140 167 5/19/2025
3.0.139 152 5/18/2025
3.0.138 120 5/18/2025
3.0.137 251 5/14/2025
3.0.136 260 5/14/2025
3.0.135 239 5/14/2025
3.0.134 244 5/14/2025
3.0.133 240 5/14/2025
3.0.132 244 5/14/2025
3.0.131 237 5/14/2025
3.0.130 236 5/13/2025
3.0.129 214 5/8/2025
3.0.128 170 5/8/2025
3.0.127 156 5/8/2025
3.0.126 157 5/8/2025
3.0.125 149 5/8/2025
3.0.124 157 5/8/2025
3.0.123 160 5/8/2025
3.0.122 158 5/8/2025
3.0.121 162 5/8/2025
3.0.120 156 5/8/2025
3.0.119 161 5/7/2025
3.0.118 159 5/7/2025
3.0.117 159 5/7/2025
3.0.116 172 5/6/2025
3.0.115 161 5/5/2025
3.0.114 147 5/5/2025
3.0.113 157 5/5/2025
3.0.112 154 5/5/2025
3.0.111 165 5/5/2025
3.0.110 166 5/5/2025
3.0.109 152 5/5/2025
3.0.108 166 5/5/2025
3.0.107 151 5/5/2025
3.0.106 162 5/5/2025
3.0.105 157 5/5/2025
3.0.104 155 5/5/2025
3.0.103 155 5/5/2025
3.0.102 169 5/5/2025
3.0.101 167 5/5/2025
3.0.99 155 5/5/2025
3.0.98 165 5/5/2025
3.0.97 156 5/5/2025
3.0.96 167 5/5/2025
3.0.95 158 4/27/2025
3.0.94 97 4/26/2025
3.0.93 201 4/9/2025
3.0.92 181 4/9/2025
3.0.91 182 4/9/2025
3.0.90 174 4/9/2025
3.0.89 172 4/9/2025
3.0.88 173 4/9/2025
3.0.87 181 4/8/2025
3.0.86 179 4/8/2025
3.0.85 165 4/8/2025
3.0.84 174 4/8/2025
3.0.83 179 4/8/2025
3.0.82 169 4/8/2025
3.0.81 180 4/8/2025
3.0.80 170 4/8/2025
3.0.79 182 4/8/2025
3.0.78 180 4/8/2025
3.0.77 185 4/8/2025
3.0.76 195 4/8/2025
3.0.75 177 4/8/2025
3.0.74 177 4/8/2025
3.0.73 180 4/8/2025
3.0.72 180 4/8/2025
3.0.71 185 4/8/2025
3.0.70 178 4/8/2025
3.0.69 172 4/8/2025
3.0.68 168 4/8/2025
3.0.67 188 4/8/2025
3.0.66 166 4/8/2025
3.0.65 173 4/8/2025
3.0.64 194 4/8/2025
3.0.63 180 4/8/2025
3.0.62 179 4/8/2025
3.0.61 185 4/8/2025
3.0.60 178 4/8/2025
3.0.59 189 4/8/2025
3.0.58 178 4/8/2025
3.0.57 173 4/8/2025
3.0.56 176 4/8/2025
3.0.55 176 4/8/2025
3.0.54 178 4/8/2025
3.0.53 177 4/8/2025
3.0.52 185 4/8/2025
3.0.51 173 4/8/2025
3.0.50 192 4/8/2025
3.0.49 174 4/8/2025
3.0.48 179 4/8/2025
3.0.47 180 4/8/2025
3.0.46 178 4/7/2025
3.0.45 184 4/7/2025
3.0.44 173 4/7/2025
3.0.43 187 4/7/2025
3.0.42 184 4/7/2025
3.0.41 183 4/7/2025
3.0.40 182 4/7/2025
3.0.39 179 4/7/2025
3.0.38 175 4/7/2025
3.0.37 172 4/7/2025
3.0.36 188 4/7/2025
3.0.35 184 4/7/2025
3.0.34 161 4/7/2025
3.0.33 175 4/7/2025
3.0.32 176 4/7/2025
3.0.31 167 4/7/2025
3.0.30 171 4/7/2025
3.0.29 187 4/7/2025
3.0.28 166 4/7/2025
3.0.27 174 4/7/2025
3.0.26 168 4/7/2025
3.0.25 193 4/7/2025
3.0.24 186 4/7/2025
3.0.23 173 4/7/2025
3.0.22 175 4/7/2025
3.0.21 179 4/7/2025
3.0.20 183 4/7/2025
3.0.19 194 4/7/2025
3.0.18 181 4/7/2025
3.0.17 184 4/7/2025
3.0.16 183 4/7/2025
3.0.15 182 4/7/2025
3.0.14 181 4/7/2025
3.0.13 192 4/7/2025
3.0.12 183 4/7/2025
3.0.11 179 4/7/2025
3.0.10 185 4/7/2025
3.0.9 182 4/7/2025
3.0.8 188 4/7/2025
3.0.7 177 4/7/2025
3.0.6 199 4/7/2025
3.0.5 184 4/7/2025
3.0.4 187 4/7/2025
3.0.3 181 4/7/2025
3.0.2 177 4/7/2025
3.0.1 184 4/7/2025