Soenneker.Blazor.Chatwoot 3.0.158

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.158
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.158
                    
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.158" />
                    
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.158" />
                    
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.158
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.158"
                    
#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.
#addin nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.158
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.158
                    
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.189 4 6/28/2025
3.0.188 7 6/28/2025
3.0.187 6 6/28/2025
3.0.186 7 6/28/2025
3.0.185 9 6/28/2025
3.0.184 6 6/28/2025
3.0.183 19 6/27/2025
3.0.182 13 6/27/2025
3.0.181 14 6/27/2025
3.0.180 23 6/27/2025
3.0.179 22 6/27/2025
3.0.178 25 6/27/2025
3.0.177 100 6/24/2025
3.0.176 371 6/11/2025
3.0.175 274 6/11/2025
3.0.174 272 6/11/2025
3.0.173 272 6/10/2025
3.0.172 269 6/10/2025
3.0.171 272 6/10/2025
3.0.170 269 6/10/2025
3.0.169 271 6/10/2025
3.0.168 276 6/10/2025
3.0.167 148 6/3/2025
3.0.166 139 6/2/2025
3.0.165 163 5/28/2025
3.0.164 139 5/28/2025
3.0.163 138 5/28/2025
3.0.162 136 5/27/2025
3.0.161 133 5/27/2025
3.0.160 132 5/27/2025
3.0.159 137 5/27/2025
3.0.158 136 5/27/2025
3.0.157 135 5/27/2025
3.0.156 133 5/27/2025
3.0.155 136 5/27/2025
3.0.154 139 5/27/2025
3.0.153 94 5/25/2025
3.0.152 103 5/23/2025
3.0.151 111 5/23/2025
3.0.150 115 5/23/2025
3.0.149 117 5/23/2025
3.0.148 118 5/23/2025
3.0.147 117 5/23/2025
3.0.146 122 5/23/2025
3.0.145 120 5/23/2025
3.0.144 143 5/22/2025
3.0.143 134 5/22/2025
3.0.142 139 5/22/2025
3.0.141 160 5/21/2025
3.0.140 145 5/19/2025
3.0.139 137 5/18/2025
3.0.138 96 5/18/2025
3.0.137 227 5/14/2025
3.0.136 238 5/14/2025
3.0.135 221 5/14/2025
3.0.134 219 5/14/2025
3.0.133 217 5/14/2025
3.0.132 221 5/14/2025
3.0.131 214 5/14/2025
3.0.130 216 5/13/2025
3.0.129 180 5/8/2025
3.0.128 135 5/8/2025
3.0.127 133 5/8/2025
3.0.126 135 5/8/2025
3.0.125 136 5/8/2025
3.0.124 135 5/8/2025
3.0.123 138 5/8/2025
3.0.122 137 5/8/2025
3.0.121 137 5/8/2025
3.0.120 134 5/8/2025
3.0.119 137 5/7/2025
3.0.118 136 5/7/2025
3.0.117 136 5/7/2025
3.0.116 147 5/6/2025
3.0.115 139 5/5/2025
3.0.114 133 5/5/2025
3.0.113 140 5/5/2025
3.0.112 132 5/5/2025
3.0.111 133 5/5/2025
3.0.110 143 5/5/2025
3.0.109 131 5/5/2025
3.0.108 139 5/5/2025
3.0.107 131 5/5/2025
3.0.106 132 5/5/2025
3.0.105 135 5/5/2025
3.0.104 135 5/5/2025
3.0.103 133 5/5/2025
3.0.102 133 5/5/2025
3.0.101 140 5/5/2025
3.0.99 133 5/5/2025
3.0.98 134 5/5/2025
3.0.97 134 5/5/2025
3.0.96 137 5/5/2025
3.0.95 135 4/27/2025
3.0.94 75 4/26/2025
3.0.93 179 4/9/2025
3.0.92 146 4/9/2025
3.0.91 158 4/9/2025
3.0.90 151 4/9/2025
3.0.89 148 4/9/2025
3.0.88 150 4/9/2025
3.0.87 158 4/8/2025
3.0.86 156 4/8/2025
3.0.85 153 4/8/2025
3.0.84 152 4/8/2025
3.0.83 146 4/8/2025
3.0.82 146 4/8/2025
3.0.81 144 4/8/2025
3.0.80 148 4/8/2025
3.0.79 156 4/8/2025
3.0.78 153 4/8/2025
3.0.77 162 4/8/2025
3.0.76 158 4/8/2025
3.0.75 155 4/8/2025
3.0.74 155 4/8/2025
3.0.73 156 4/8/2025
3.0.72 159 4/8/2025
3.0.71 164 4/8/2025
3.0.70 157 4/8/2025
3.0.69 147 4/8/2025
3.0.68 155 4/8/2025
3.0.67 165 4/8/2025
3.0.66 153 4/8/2025
3.0.65 150 4/8/2025
3.0.64 156 4/8/2025
3.0.63 155 4/8/2025
3.0.62 157 4/8/2025
3.0.61 161 4/8/2025
3.0.60 152 4/8/2025
3.0.59 155 4/8/2025
3.0.58 153 4/8/2025
3.0.57 151 4/8/2025
3.0.56 154 4/8/2025
3.0.55 153 4/8/2025
3.0.54 158 4/8/2025
3.0.53 153 4/8/2025
3.0.52 163 4/8/2025
3.0.51 151 4/8/2025
3.0.50 160 4/8/2025
3.0.49 152 4/8/2025
3.0.48 156 4/8/2025
3.0.47 155 4/8/2025
3.0.46 157 4/7/2025
3.0.45 158 4/7/2025
3.0.44 151 4/7/2025
3.0.43 153 4/7/2025
3.0.42 157 4/7/2025
3.0.41 155 4/7/2025
3.0.40 154 4/7/2025
3.0.39 155 4/7/2025
3.0.38 154 4/7/2025
3.0.37 151 4/7/2025
3.0.36 150 4/7/2025
3.0.35 151 4/7/2025
3.0.34 150 4/7/2025
3.0.33 153 4/7/2025
3.0.32 156 4/7/2025
3.0.31 156 4/7/2025
3.0.30 149 4/7/2025
3.0.29 154 4/7/2025
3.0.28 152 4/7/2025
3.0.27 152 4/7/2025
3.0.26 147 4/7/2025
3.0.25 164 4/7/2025
3.0.24 152 4/7/2025
3.0.23 162 4/7/2025
3.0.22 153 4/7/2025
3.0.21 158 4/7/2025
3.0.20 159 4/7/2025
3.0.19 155 4/7/2025
3.0.18 160 4/7/2025
3.0.17 162 4/7/2025
3.0.16 160 4/7/2025
3.0.15 154 4/7/2025
3.0.14 159 4/7/2025
3.0.13 159 4/7/2025
3.0.12 154 4/7/2025
3.0.11 156 4/7/2025
3.0.10 163 4/7/2025
3.0.9 159 4/7/2025
3.0.8 154 4/7/2025
3.0.7 154 4/7/2025
3.0.6 162 4/7/2025
3.0.5 159 4/7/2025
3.0.4 155 4/7/2025
3.0.3 160 4/7/2025
3.0.2 156 4/7/2025
3.0.1 160 4/7/2025