Soenneker.Blazor.Chatwoot 3.0.10

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