Soenneker.Blazor.Chatwoot 3.0.205

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.205
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.205
                    
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.205" />
                    
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.205" />
                    
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.205
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.205"
                    
#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.205
                    
#: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.205
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.205
                    
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.234 21 8/22/2025
3.0.233 38 8/22/2025
3.0.232 99 8/17/2025
3.0.231 115 8/15/2025
3.0.230 129 8/12/2025
3.0.229 127 8/12/2025
3.0.228 127 8/12/2025
3.0.227 128 8/12/2025
3.0.226 125 8/12/2025
3.0.225 126 8/11/2025
3.0.224 130 8/11/2025
3.0.223 130 8/11/2025
3.0.222 132 8/11/2025
3.0.221 121 8/11/2025
3.0.220 121 8/11/2025
3.0.219 122 8/11/2025
3.0.218 122 8/11/2025
3.0.217 122 8/11/2025
3.0.216 120 8/11/2025
3.0.215 126 8/11/2025
3.0.214 205 8/6/2025
3.0.213 214 8/5/2025
3.0.212 209 8/5/2025
3.0.211 206 8/5/2025
3.0.210 208 8/5/2025
3.0.209 207 8/5/2025
3.0.208 190 8/5/2025
3.0.207 190 8/5/2025
3.0.206 191 8/5/2025
3.0.205 189 8/5/2025
3.0.204 93 7/29/2025
3.0.203 439 7/24/2025
3.0.202 162 7/9/2025
3.0.201 135 7/9/2025
3.0.200 138 7/9/2025
3.0.199 134 7/9/2025
3.0.198 141 7/9/2025
3.0.197 141 7/8/2025
3.0.196 133 7/8/2025
3.0.195 138 7/8/2025
3.0.194 150 7/7/2025
3.0.193 118 7/4/2025
3.0.192 147 7/3/2025
3.0.191 136 7/3/2025
3.0.190 136 7/2/2025
3.0.189 128 6/28/2025
3.0.188 64 6/28/2025
3.0.187 65 6/28/2025
3.0.186 67 6/28/2025
3.0.185 68 6/28/2025
3.0.184 66 6/28/2025
3.0.183 76 6/27/2025
3.0.182 68 6/27/2025
3.0.181 74 6/27/2025
3.0.180 78 6/27/2025
3.0.179 78 6/27/2025
3.0.178 81 6/27/2025
3.0.177 143 6/24/2025
3.0.176 387 6/11/2025
3.0.175 284 6/11/2025
3.0.174 282 6/11/2025
3.0.173 283 6/10/2025
3.0.172 284 6/10/2025
3.0.171 284 6/10/2025
3.0.170 281 6/10/2025
3.0.169 281 6/10/2025
3.0.168 285 6/10/2025
3.0.167 162 6/3/2025
3.0.166 150 6/2/2025
3.0.165 175 5/28/2025
3.0.164 148 5/28/2025
3.0.163 147 5/28/2025
3.0.162 147 5/27/2025
3.0.161 146 5/27/2025
3.0.160 142 5/27/2025
3.0.159 147 5/27/2025
3.0.158 149 5/27/2025
3.0.157 145 5/27/2025
3.0.156 148 5/27/2025
3.0.155 146 5/27/2025
3.0.154 149 5/27/2025
3.0.153 108 5/25/2025
3.0.152 112 5/23/2025
3.0.151 125 5/23/2025
3.0.150 128 5/23/2025
3.0.149 127 5/23/2025
3.0.148 130 5/23/2025
3.0.147 131 5/23/2025
3.0.146 136 5/23/2025
3.0.145 131 5/23/2025
3.0.144 157 5/22/2025
3.0.143 148 5/22/2025
3.0.142 148 5/22/2025
3.0.141 174 5/21/2025
3.0.140 156 5/19/2025
3.0.139 150 5/18/2025
3.0.138 107 5/18/2025
3.0.137 239 5/14/2025
3.0.136 249 5/14/2025
3.0.135 233 5/14/2025
3.0.134 232 5/14/2025
3.0.133 227 5/14/2025
3.0.132 233 5/14/2025
3.0.131 224 5/14/2025
3.0.130 225 5/13/2025
3.0.129 196 5/8/2025
3.0.128 153 5/8/2025
3.0.127 143 5/8/2025
3.0.126 146 5/8/2025
3.0.125 147 5/8/2025
3.0.124 146 5/8/2025
3.0.123 148 5/8/2025
3.0.122 146 5/8/2025
3.0.121 149 5/8/2025
3.0.120 144 5/8/2025
3.0.119 150 5/7/2025
3.0.118 147 5/7/2025
3.0.117 147 5/7/2025
3.0.116 158 5/6/2025
3.0.115 150 5/5/2025
3.0.114 143 5/5/2025
3.0.113 151 5/5/2025
3.0.112 142 5/5/2025
3.0.111 148 5/5/2025
3.0.110 155 5/5/2025
3.0.109 141 5/5/2025
3.0.108 155 5/5/2025
3.0.107 139 5/5/2025
3.0.106 148 5/5/2025
3.0.105 145 5/5/2025
3.0.104 143 5/5/2025
3.0.103 143 5/5/2025
3.0.102 147 5/5/2025
3.0.101 153 5/5/2025
3.0.99 144 5/5/2025
3.0.98 147 5/5/2025
3.0.97 144 5/5/2025
3.0.96 148 5/5/2025
3.0.95 145 4/27/2025
3.0.94 86 4/26/2025
3.0.93 188 4/9/2025
3.0.92 160 4/9/2025
3.0.91 170 4/9/2025
3.0.90 163 4/9/2025
3.0.89 159 4/9/2025
3.0.88 162 4/9/2025
3.0.87 169 4/8/2025
3.0.86 166 4/8/2025
3.0.85 163 4/8/2025
3.0.84 162 4/8/2025
3.0.83 159 4/8/2025
3.0.82 157 4/8/2025
3.0.81 164 4/8/2025
3.0.80 159 4/8/2025
3.0.79 168 4/8/2025
3.0.78 168 4/8/2025
3.0.77 174 4/8/2025
3.0.76 172 4/8/2025
3.0.75 165 4/8/2025
3.0.74 165 4/8/2025
3.0.73 168 4/8/2025
3.0.72 168 4/8/2025
3.0.71 174 4/8/2025
3.0.70 167 4/8/2025
3.0.69 160 4/8/2025
3.0.68 166 4/8/2025
3.0.67 177 4/8/2025
3.0.66 163 4/8/2025
3.0.65 160 4/8/2025
3.0.64 174 4/8/2025
3.0.63 168 4/8/2025
3.0.62 168 4/8/2025
3.0.61 173 4/8/2025
3.0.60 165 4/8/2025
3.0.59 171 4/8/2025
3.0.58 166 4/8/2025
3.0.57 161 4/8/2025
3.0.56 164 4/8/2025
3.0.55 164 4/8/2025
3.0.54 167 4/8/2025
3.0.53 163 4/8/2025
3.0.52 174 4/8/2025
3.0.51 161 4/8/2025
3.0.50 175 4/8/2025
3.0.49 162 4/8/2025
3.0.48 167 4/8/2025
3.0.47 169 4/8/2025
3.0.46 167 4/7/2025
3.0.45 171 4/7/2025
3.0.44 162 4/7/2025
3.0.43 169 4/7/2025
3.0.42 169 4/7/2025
3.0.41 170 4/7/2025
3.0.40 167 4/7/2025
3.0.39 166 4/7/2025
3.0.38 164 4/7/2025
3.0.37 161 4/7/2025
3.0.36 171 4/7/2025
3.0.35 169 4/7/2025
3.0.34 160 4/7/2025
3.0.33 163 4/7/2025
3.0.32 164 4/7/2025
3.0.31 164 4/7/2025
3.0.30 159 4/7/2025
3.0.29 166 4/7/2025
3.0.28 163 4/7/2025
3.0.27 161 4/7/2025
3.0.26 156 4/7/2025
3.0.25 178 4/7/2025
3.0.24 167 4/7/2025
3.0.23 171 4/7/2025
3.0.22 164 4/7/2025
3.0.21 167 4/7/2025
3.0.20 171 4/7/2025
3.0.19 174 4/7/2025
3.0.18 169 4/7/2025
3.0.17 173 4/7/2025
3.0.16 172 4/7/2025
3.0.15 168 4/7/2025
3.0.14 169 4/7/2025
3.0.13 180 4/7/2025
3.0.12 169 4/7/2025
3.0.11 168 4/7/2025
3.0.10 174 4/7/2025
3.0.9 169 4/7/2025
3.0.8 168 4/7/2025
3.0.7 166 4/7/2025
3.0.6 178 4/7/2025
3.0.5 171 4/7/2025
3.0.4 170 4/7/2025
3.0.3 170 4/7/2025
3.0.2 165 4/7/2025
3.0.1 173 4/7/2025