Soenneker.Blazor.Chatwoot 3.0.101

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.101
                    
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 3.0.101
                    
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.101" />
                    
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.101" />
                    
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.101
                    
#r "nuget: Soenneker.Blazor.Chatwoot, 3.0.101"
                    
#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.101
                    
Install Soenneker.Blazor.Chatwoot as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=3.0.101
                    
Install Soenneker.Blazor.Chatwoot 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.176 283 6/11/2025
3.0.175 268 6/11/2025
3.0.174 267 6/11/2025
3.0.173 267 6/10/2025
3.0.172 264 6/10/2025
3.0.171 268 6/10/2025
3.0.170 265 6/10/2025
3.0.169 267 6/10/2025
3.0.168 272 6/10/2025
3.0.167 140 6/3/2025
3.0.166 136 6/2/2025
3.0.165 161 5/28/2025
3.0.164 136 5/28/2025
3.0.163 134 5/28/2025
3.0.162 133 5/27/2025
3.0.161 130 5/27/2025
3.0.160 130 5/27/2025
3.0.159 133 5/27/2025
3.0.158 132 5/27/2025
3.0.157 133 5/27/2025
3.0.156 130 5/27/2025
3.0.155 133 5/27/2025
3.0.154 137 5/27/2025
3.0.153 91 5/25/2025
3.0.152 101 5/23/2025
3.0.151 107 5/23/2025
3.0.150 107 5/23/2025
3.0.149 114 5/23/2025
3.0.148 114 5/23/2025
3.0.147 110 5/23/2025
3.0.146 118 5/23/2025
3.0.145 118 5/23/2025
3.0.144 137 5/22/2025
3.0.143 128 5/22/2025
3.0.142 131 5/22/2025
3.0.141 157 5/21/2025
3.0.140 140 5/19/2025
3.0.139 134 5/18/2025
3.0.138 86 5/18/2025
3.0.137 223 5/14/2025
3.0.136 234 5/14/2025
3.0.135 215 5/14/2025
3.0.134 216 5/14/2025
3.0.133 210 5/14/2025
3.0.132 218 5/14/2025
3.0.131 211 5/14/2025
3.0.130 211 5/13/2025
3.0.129 173 5/8/2025
3.0.128 132 5/8/2025
3.0.127 131 5/8/2025
3.0.126 131 5/8/2025
3.0.125 131 5/8/2025
3.0.124 131 5/8/2025
3.0.123 134 5/8/2025
3.0.122 134 5/8/2025
3.0.121 133 5/8/2025
3.0.120 130 5/8/2025
3.0.119 134 5/7/2025
3.0.118 131 5/7/2025
3.0.117 131 5/7/2025
3.0.116 144 5/6/2025
3.0.115 132 5/5/2025
3.0.114 131 5/5/2025
3.0.113 135 5/5/2025
3.0.112 130 5/5/2025
3.0.111 131 5/5/2025
3.0.110 137 5/5/2025
3.0.109 129 5/5/2025
3.0.108 133 5/5/2025
3.0.107 129 5/5/2025
3.0.106 130 5/5/2025
3.0.105 133 5/5/2025
3.0.104 131 5/5/2025
3.0.103 129 5/5/2025
3.0.102 127 5/5/2025
3.0.101 133 5/5/2025
3.0.99 130 5/5/2025
3.0.98 131 5/5/2025
3.0.97 131 5/5/2025
3.0.96 130 5/5/2025
3.0.95 131 4/27/2025
3.0.94 68 4/26/2025
3.0.93 173 4/9/2025
3.0.92 142 4/9/2025
3.0.91 150 4/9/2025
3.0.90 148 4/9/2025
3.0.89 146 4/9/2025
3.0.88 146 4/9/2025
3.0.87 153 4/8/2025
3.0.86 151 4/8/2025
3.0.85 149 4/8/2025
3.0.84 146 4/8/2025
3.0.83 142 4/8/2025
3.0.82 138 4/8/2025
3.0.81 142 4/8/2025
3.0.80 146 4/8/2025
3.0.79 152 4/8/2025
3.0.78 151 4/8/2025
3.0.77 158 4/8/2025
3.0.76 149 4/8/2025
3.0.75 152 4/8/2025
3.0.74 153 4/8/2025
3.0.73 154 4/8/2025
3.0.72 150 4/8/2025
3.0.71 159 4/8/2025
3.0.70 152 4/8/2025
3.0.69 144 4/8/2025
3.0.68 151 4/8/2025
3.0.67 156 4/8/2025
3.0.66 148 4/8/2025
3.0.65 145 4/8/2025
3.0.64 154 4/8/2025
3.0.63 150 4/8/2025
3.0.62 154 4/8/2025
3.0.61 155 4/8/2025
3.0.60 147 4/8/2025
3.0.59 150 4/8/2025
3.0.58 147 4/8/2025
3.0.57 149 4/8/2025
3.0.56 150 4/8/2025
3.0.55 150 4/8/2025
3.0.54 155 4/8/2025
3.0.53 149 4/8/2025
3.0.52 158 4/8/2025
3.0.51 149 4/8/2025
3.0.50 155 4/8/2025
3.0.49 150 4/8/2025
3.0.48 153 4/8/2025
3.0.47 152 4/8/2025
3.0.46 153 4/7/2025
3.0.45 153 4/7/2025
3.0.44 149 4/7/2025
3.0.43 151 4/7/2025
3.0.42 155 4/7/2025
3.0.41 149 4/7/2025
3.0.40 152 4/7/2025
3.0.39 151 4/7/2025
3.0.38 149 4/7/2025
3.0.37 149 4/7/2025
3.0.36 147 4/7/2025
3.0.35 145 4/7/2025
3.0.34 145 4/7/2025
3.0.33 150 4/7/2025
3.0.32 149 4/7/2025
3.0.31 150 4/7/2025
3.0.30 144 4/7/2025
3.0.29 148 4/7/2025
3.0.28 148 4/7/2025
3.0.27 148 4/7/2025
3.0.26 143 4/7/2025
3.0.25 162 4/7/2025
3.0.24 151 4/7/2025
3.0.23 158 4/7/2025
3.0.22 150 4/7/2025
3.0.21 156 4/7/2025
3.0.20 157 4/7/2025
3.0.19 153 4/7/2025
3.0.18 157 4/7/2025
3.0.17 159 4/7/2025
3.0.16 157 4/7/2025
3.0.15 152 4/7/2025
3.0.14 156 4/7/2025
3.0.13 155 4/7/2025
3.0.12 151 4/7/2025
3.0.11 152 4/7/2025
3.0.10 160 4/7/2025
3.0.9 155 4/7/2025
3.0.8 152 4/7/2025
3.0.7 152 4/7/2025
3.0.6 157 4/7/2025
3.0.5 156 4/7/2025
3.0.4 150 4/7/2025
3.0.3 158 4/7/2025
3.0.2 154 4/7/2025
3.0.1 156 4/7/2025