Soenneker.Blazor.Chatwoot 3.0.243

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.243
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.243
                    
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.243" />
                    
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.243" />
                    
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.243
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.243"
                    
#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.243
                    
#: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.243
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.243
                    
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.281 38 9/22/2025
3.0.280 57 9/21/2025
3.0.279 71 9/20/2025
3.0.278 81 9/20/2025
3.0.277 121 9/20/2025
3.0.276 183 9/19/2025
3.0.275 245 9/19/2025
3.0.274 241 9/18/2025
3.0.273 239 9/18/2025
3.0.272 254 9/17/2025
3.0.271 253 9/17/2025
3.0.270 255 9/17/2025
3.0.269 258 9/17/2025
3.0.268 260 9/17/2025
3.0.267 257 9/16/2025
3.0.266 266 9/16/2025
3.0.265 261 9/16/2025
3.0.264 253 9/15/2025
3.0.263 131 9/9/2025
3.0.262 128 9/9/2025
3.0.261 132 9/9/2025
3.0.260 130 9/9/2025
3.0.259 122 9/9/2025
3.0.258 129 9/9/2025
3.0.257 129 9/9/2025
3.0.256 130 9/9/2025
3.0.255 129 9/9/2025
3.0.254 128 9/9/2025
3.0.253 102 9/7/2025
3.0.252 109 9/6/2025
3.0.251 99 9/6/2025
3.0.250 99 9/6/2025
3.0.249 103 9/6/2025
3.0.248 95 9/5/2025
3.0.247 145 9/4/2025
3.0.246 139 9/3/2025
3.0.245 137 9/3/2025
3.0.244 141 9/3/2025
3.0.243 132 9/3/2025
3.0.242 136 9/3/2025
3.0.241 140 9/3/2025
3.0.240 136 9/3/2025
3.0.239 138 9/3/2025
3.0.238 145 9/3/2025
3.0.237 137 9/3/2025
3.0.236 137 9/3/2025
3.0.235 141 9/3/2025
3.0.234 69 8/22/2025
3.0.233 73 8/22/2025
3.0.232 108 8/17/2025
3.0.231 121 8/15/2025
3.0.230 132 8/12/2025
3.0.229 132 8/12/2025
3.0.228 130 8/12/2025
3.0.227 132 8/12/2025
3.0.226 129 8/12/2025
3.0.225 131 8/11/2025
3.0.224 133 8/11/2025
3.0.223 134 8/11/2025
3.0.222 136 8/11/2025
3.0.221 124 8/11/2025
3.0.220 124 8/11/2025
3.0.219 126 8/11/2025
3.0.218 127 8/11/2025
3.0.217 126 8/11/2025
3.0.216 124 8/11/2025
3.0.215 132 8/11/2025
3.0.214 209 8/6/2025
3.0.213 217 8/5/2025
3.0.212 214 8/5/2025
3.0.211 210 8/5/2025
3.0.210 211 8/5/2025
3.0.209 211 8/5/2025
3.0.208 194 8/5/2025
3.0.207 194 8/5/2025
3.0.206 195 8/5/2025
3.0.205 192 8/5/2025
3.0.204 95 7/29/2025
3.0.203 483 7/24/2025
3.0.202 190 7/9/2025
3.0.201 138 7/9/2025
3.0.200 141 7/9/2025
3.0.199 137 7/9/2025
3.0.198 144 7/9/2025
3.0.197 145 7/8/2025
3.0.196 137 7/8/2025
3.0.195 143 7/8/2025
3.0.194 153 7/7/2025
3.0.193 121 7/4/2025
3.0.192 150 7/3/2025
3.0.191 139 7/3/2025
3.0.190 139 7/2/2025
3.0.189 131 6/28/2025
3.0.188 66 6/28/2025
3.0.187 67 6/28/2025
3.0.186 69 6/28/2025
3.0.185 70 6/28/2025
3.0.184 68 6/28/2025
3.0.183 78 6/27/2025
3.0.182 70 6/27/2025
3.0.181 76 6/27/2025
3.0.180 80 6/27/2025
3.0.179 80 6/27/2025
3.0.178 83 6/27/2025
3.0.177 154 6/24/2025
3.0.176 394 6/11/2025
3.0.175 286 6/11/2025
3.0.174 283 6/11/2025
3.0.173 286 6/10/2025
3.0.172 291 6/10/2025
3.0.171 286 6/10/2025
3.0.170 282 6/10/2025
3.0.169 283 6/10/2025
3.0.168 287 6/10/2025
3.0.167 169 6/3/2025
3.0.166 152 6/2/2025
3.0.165 176 5/28/2025
3.0.164 149 5/28/2025
3.0.163 148 5/28/2025
3.0.162 148 5/27/2025
3.0.161 157 5/27/2025
3.0.160 143 5/27/2025
3.0.159 150 5/27/2025
3.0.158 156 5/27/2025
3.0.157 147 5/27/2025
3.0.156 152 5/27/2025
3.0.155 148 5/27/2025
3.0.154 151 5/27/2025
3.0.153 115 5/25/2025
3.0.152 114 5/23/2025
3.0.151 129 5/23/2025
3.0.150 134 5/23/2025
3.0.149 129 5/23/2025
3.0.148 131 5/23/2025
3.0.147 139 5/23/2025
3.0.146 144 5/23/2025
3.0.145 132 5/23/2025
3.0.144 162 5/22/2025
3.0.143 149 5/22/2025
3.0.142 150 5/22/2025
3.0.141 175 5/21/2025
3.0.140 157 5/19/2025
3.0.139 152 5/18/2025
3.0.138 110 5/18/2025
3.0.137 241 5/14/2025
3.0.136 250 5/14/2025
3.0.135 238 5/14/2025
3.0.134 234 5/14/2025
3.0.133 230 5/14/2025
3.0.132 234 5/14/2025
3.0.131 227 5/14/2025
3.0.130 226 5/13/2025
3.0.129 201 5/8/2025
3.0.128 160 5/8/2025
3.0.127 146 5/8/2025
3.0.126 147 5/8/2025
3.0.125 149 5/8/2025
3.0.124 147 5/8/2025
3.0.123 150 5/8/2025
3.0.122 148 5/8/2025
3.0.121 152 5/8/2025
3.0.120 146 5/8/2025
3.0.119 151 5/7/2025
3.0.118 149 5/7/2025
3.0.117 149 5/7/2025
3.0.116 160 5/6/2025
3.0.115 151 5/5/2025
3.0.114 147 5/5/2025
3.0.113 157 5/5/2025
3.0.112 144 5/5/2025
3.0.111 154 5/5/2025
3.0.110 156 5/5/2025
3.0.109 142 5/5/2025
3.0.108 156 5/5/2025
3.0.107 141 5/5/2025
3.0.106 152 5/5/2025
3.0.105 147 5/5/2025
3.0.104 145 5/5/2025
3.0.103 145 5/5/2025
3.0.102 158 5/5/2025
3.0.101 157 5/5/2025
3.0.99 145 5/5/2025
3.0.98 153 5/5/2025
3.0.97 146 5/5/2025
3.0.96 155 5/5/2025
3.0.95 148 4/27/2025
3.0.94 87 4/26/2025
3.0.93 191 4/9/2025
3.0.92 169 4/9/2025
3.0.91 172 4/9/2025
3.0.90 164 4/9/2025
3.0.89 162 4/9/2025
3.0.88 163 4/9/2025
3.0.87 171 4/8/2025
3.0.86 169 4/8/2025
3.0.85 165 4/8/2025
3.0.84 164 4/8/2025
3.0.83 166 4/8/2025
3.0.82 158 4/8/2025
3.0.81 169 4/8/2025
3.0.80 160 4/8/2025
3.0.79 172 4/8/2025
3.0.78 170 4/8/2025
3.0.77 175 4/8/2025
3.0.76 182 4/8/2025
3.0.75 166 4/8/2025
3.0.74 167 4/8/2025
3.0.73 170 4/8/2025
3.0.72 170 4/8/2025
3.0.71 175 4/8/2025
3.0.70 168 4/8/2025
3.0.69 161 4/8/2025
3.0.68 168 4/8/2025
3.0.67 178 4/8/2025
3.0.66 165 4/8/2025
3.0.65 162 4/8/2025
3.0.64 184 4/8/2025
3.0.63 170 4/8/2025
3.0.62 169 4/8/2025
3.0.61 175 4/8/2025
3.0.60 167 4/8/2025
3.0.59 177 4/8/2025
3.0.58 168 4/8/2025
3.0.57 163 4/8/2025
3.0.56 166 4/8/2025
3.0.55 166 4/8/2025
3.0.54 168 4/8/2025
3.0.53 167 4/8/2025
3.0.52 175 4/8/2025
3.0.51 163 4/8/2025
3.0.50 182 4/8/2025
3.0.49 164 4/8/2025
3.0.48 169 4/8/2025
3.0.47 170 4/8/2025
3.0.46 168 4/7/2025
3.0.45 174 4/7/2025
3.0.44 163 4/7/2025
3.0.43 177 4/7/2025
3.0.42 174 4/7/2025
3.0.41 173 4/7/2025
3.0.40 171 4/7/2025
3.0.39 169 4/7/2025
3.0.38 165 4/7/2025
3.0.37 162 4/7/2025
3.0.36 177 4/7/2025
3.0.35 174 4/7/2025
3.0.34 161 4/7/2025
3.0.33 165 4/7/2025
3.0.32 166 4/7/2025
3.0.31 167 4/7/2025
3.0.30 161 4/7/2025
3.0.29 176 4/7/2025
3.0.28 166 4/7/2025
3.0.27 164 4/7/2025
3.0.26 158 4/7/2025
3.0.25 183 4/7/2025
3.0.24 175 4/7/2025
3.0.23 173 4/7/2025
3.0.22 165 4/7/2025
3.0.21 169 4/7/2025
3.0.20 173 4/7/2025
3.0.19 183 4/7/2025
3.0.18 171 4/7/2025
3.0.17 174 4/7/2025
3.0.16 173 4/7/2025
3.0.15 172 4/7/2025
3.0.14 171 4/7/2025
3.0.13 182 4/7/2025
3.0.12 173 4/7/2025
3.0.11 169 4/7/2025
3.0.10 175 4/7/2025
3.0.9 172 4/7/2025
3.0.8 176 4/7/2025
3.0.7 167 4/7/2025
3.0.6 187 4/7/2025
3.0.5 174 4/7/2025
3.0.4 176 4/7/2025
3.0.3 171 4/7/2025
3.0.2 167 4/7/2025
3.0.1 174 4/7/2025