Soenneker.Blazor.Chatwoot 3.0.202

Prefix Reserved
dotnet add package Soenneker.Blazor.Chatwoot --version 3.0.202
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.202
                    
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.202" />
                    
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.202" />
                    
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.202
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.202"
                    
#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.202
                    
#: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.202
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.202
                    
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.202 154 7/9/2025
3.0.201 129 7/9/2025
3.0.200 132 7/9/2025
3.0.199 130 7/9/2025
3.0.198 134 7/9/2025
3.0.197 135 7/8/2025
3.0.196 128 7/8/2025
3.0.195 132 7/8/2025
3.0.194 144 7/7/2025
3.0.193 111 7/4/2025
3.0.192 141 7/3/2025
3.0.191 130 7/3/2025
3.0.190 130 7/2/2025
3.0.189 121 6/28/2025
3.0.188 57 6/28/2025
3.0.187 58 6/28/2025
3.0.186 58 6/28/2025
3.0.185 62 6/28/2025
3.0.184 59 6/28/2025
3.0.183 69 6/27/2025
3.0.182 61 6/27/2025
3.0.181 67 6/27/2025
3.0.180 71 6/27/2025
3.0.179 71 6/27/2025
3.0.178 74 6/27/2025
3.0.177 135 6/24/2025
3.0.176 380 6/11/2025
3.0.175 278 6/11/2025
3.0.174 276 6/11/2025
3.0.173 277 6/10/2025
3.0.172 277 6/10/2025
3.0.171 276 6/10/2025
3.0.170 273 6/10/2025
3.0.169 275 6/10/2025
3.0.168 280 6/10/2025
3.0.167 156 6/3/2025
3.0.166 144 6/2/2025
3.0.165 168 5/28/2025
3.0.164 144 5/28/2025
3.0.163 143 5/28/2025
3.0.162 141 5/27/2025
3.0.161 142 5/27/2025
3.0.160 137 5/27/2025
3.0.159 142 5/27/2025
3.0.158 144 5/27/2025
3.0.157 139 5/27/2025
3.0.156 142 5/27/2025
3.0.155 141 5/27/2025
3.0.154 144 5/27/2025
3.0.153 103 5/25/2025
3.0.152 108 5/23/2025
3.0.151 117 5/23/2025
3.0.150 120 5/23/2025
3.0.149 122 5/23/2025
3.0.148 123 5/23/2025
3.0.147 125 5/23/2025
3.0.146 130 5/23/2025
3.0.145 126 5/23/2025
3.0.144 152 5/22/2025
3.0.143 142 5/22/2025
3.0.142 143 5/22/2025
3.0.141 166 5/21/2025
3.0.140 151 5/19/2025
3.0.139 143 5/18/2025
3.0.138 102 5/18/2025
3.0.137 233 5/14/2025
3.0.136 243 5/14/2025
3.0.135 228 5/14/2025
3.0.134 226 5/14/2025
3.0.133 222 5/14/2025
3.0.132 227 5/14/2025
3.0.131 219 5/14/2025
3.0.130 220 5/13/2025
3.0.129 190 5/8/2025
3.0.128 146 5/8/2025
3.0.127 138 5/8/2025
3.0.126 141 5/8/2025
3.0.125 141 5/8/2025
3.0.124 140 5/8/2025
3.0.123 143 5/8/2025
3.0.122 141 5/8/2025
3.0.121 143 5/8/2025
3.0.120 139 5/8/2025
3.0.119 143 5/7/2025
3.0.118 141 5/7/2025
3.0.117 141 5/7/2025
3.0.116 152 5/6/2025
3.0.115 144 5/5/2025
3.0.114 138 5/5/2025
3.0.113 145 5/5/2025
3.0.112 137 5/5/2025
3.0.111 142 5/5/2025
3.0.110 149 5/5/2025
3.0.109 136 5/5/2025
3.0.108 144 5/5/2025
3.0.107 135 5/5/2025
3.0.106 142 5/5/2025
3.0.105 140 5/5/2025
3.0.104 139 5/5/2025
3.0.103 137 5/5/2025
3.0.102 141 5/5/2025
3.0.101 147 5/5/2025
3.0.99 137 5/5/2025
3.0.98 141 5/5/2025
3.0.97 139 5/5/2025
3.0.96 143 5/5/2025
3.0.95 140 4/27/2025
3.0.94 81 4/26/2025
3.0.93 184 4/9/2025
3.0.92 156 4/9/2025
3.0.91 163 4/9/2025
3.0.90 157 4/9/2025
3.0.89 153 4/9/2025
3.0.88 156 4/9/2025
3.0.87 163 4/8/2025
3.0.86 160 4/8/2025
3.0.85 157 4/8/2025
3.0.84 158 4/8/2025
3.0.83 153 4/8/2025
3.0.82 151 4/8/2025
3.0.81 156 4/8/2025
3.0.80 152 4/8/2025
3.0.79 161 4/8/2025
3.0.78 158 4/8/2025
3.0.77 167 4/8/2025
3.0.76 167 4/8/2025
3.0.75 160 4/8/2025
3.0.74 160 4/8/2025
3.0.73 161 4/8/2025
3.0.72 164 4/8/2025
3.0.71 169 4/8/2025
3.0.70 161 4/8/2025
3.0.69 152 4/8/2025
3.0.68 159 4/8/2025
3.0.67 170 4/8/2025
3.0.66 158 4/8/2025
3.0.65 154 4/8/2025
3.0.64 167 4/8/2025
3.0.63 162 4/8/2025
3.0.62 162 4/8/2025
3.0.61 167 4/8/2025
3.0.60 158 4/8/2025
3.0.59 165 4/8/2025
3.0.58 158 4/8/2025
3.0.57 155 4/8/2025
3.0.56 159 4/8/2025
3.0.55 158 4/8/2025
3.0.54 162 4/8/2025
3.0.53 158 4/8/2025
3.0.52 168 4/8/2025
3.0.51 155 4/8/2025
3.0.50 169 4/8/2025
3.0.49 157 4/8/2025
3.0.48 160 4/8/2025
3.0.47 160 4/8/2025
3.0.46 161 4/7/2025
3.0.45 163 4/7/2025
3.0.44 156 4/7/2025
3.0.43 162 4/7/2025
3.0.42 164 4/7/2025
3.0.41 163 4/7/2025
3.0.40 162 4/7/2025
3.0.39 161 4/7/2025
3.0.38 159 4/7/2025
3.0.37 157 4/7/2025
3.0.36 162 4/7/2025
3.0.35 160 4/7/2025
3.0.34 154 4/7/2025
3.0.33 158 4/7/2025
3.0.32 160 4/7/2025
3.0.31 160 4/7/2025
3.0.30 154 4/7/2025
3.0.29 161 4/7/2025
3.0.28 157 4/7/2025
3.0.27 157 4/7/2025
3.0.26 152 4/7/2025
3.0.25 172 4/7/2025
3.0.24 161 4/7/2025
3.0.23 166 4/7/2025
3.0.22 158 4/7/2025
3.0.21 162 4/7/2025
3.0.20 164 4/7/2025
3.0.19 167 4/7/2025
3.0.18 165 4/7/2025
3.0.17 167 4/7/2025
3.0.16 165 4/7/2025
3.0.15 163 4/7/2025
3.0.14 164 4/7/2025
3.0.13 164 4/7/2025
3.0.12 163 4/7/2025
3.0.11 161 4/7/2025
3.0.10 168 4/7/2025
3.0.9 165 4/7/2025
3.0.8 162 4/7/2025
3.0.7 159 4/7/2025
3.0.6 173 4/7/2025
3.0.5 167 4/7/2025
3.0.4 162 4/7/2025
3.0.3 164 4/7/2025
3.0.2 160 4/7/2025
3.0.1 166 4/7/2025