Soenneker.Blazor.Cloudflare.AiSearch 4.0.97

Prefix Reserved
dotnet add package Soenneker.Blazor.Cloudflare.AiSearch --version 4.0.97
                    
NuGet\Install-Package Soenneker.Blazor.Cloudflare.AiSearch -Version 4.0.97
                    
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.Cloudflare.AiSearch" Version="4.0.97" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Cloudflare.AiSearch" Version="4.0.97" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Cloudflare.AiSearch" />
                    
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.Cloudflare.AiSearch --version 4.0.97
                    
#r "nuget: Soenneker.Blazor.Cloudflare.AiSearch, 4.0.97"
                    
#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.Cloudflare.AiSearch@4.0.97
                    
#: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.Cloudflare.AiSearch&version=4.0.97
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Cloudflare.AiSearch&version=4.0.97
                    
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 alternate text is missing from this package README image

Soenneker.Blazor.Cloudflare.AiSearch

Blazor components for Cloudflare AI Search's search bar, search modal, chat bubble, and full-page chat snippets.

Cloudflare setup

In the AI Search instance, enable its public endpoint and add the application's origin to Authorized hosts. Use that public endpoint in the component; do not put Cloudflare API tokens or other secrets in a Blazor application.

Installation and registration

dotnet add package Soenneker.Blazor.Cloudflare.AiSearch
using Soenneker.Blazor.Cloudflare.AiSearch.Registrars;

builder.Services.AddCloudflareAiSearchInteropAsScoped();
@using Soenneker.Blazor.Cloudflare.AiSearch
@using Soenneker.Blazor.Cloudflare.AiSearch.Configuration

<CloudflareAiSearchBar Configuration="_search" />

@code {
    private readonly CloudflareAiSearchBarConfiguration _search = new()
    {
        ApiUrl = "https://your-instance.search.ai.cloudflare.com/",
        HideSubmitButton = true,
        Placeholder = "Search the documentation...",
        MaxResults = 50,
        MaxRenderResults = 10,
        DebounceMilliseconds = 250,
        ShowUrl = true,
        ShowDate = true
    };
}

The component loads Cloudflare's ES module after its first render. ApiUrl must be an absolute HTTPS endpoint without credentials, a query, or a fragment. Loopback HTTP is accepted for local development.

Available components

Component Configuration Use
CloudflareAiSearchBar CloudflareAiSearchBarConfiguration Inline search input and results
CloudflareAiSearchModal CloudflareAiSearchModalConfiguration Search dialog, including keyboard shortcut options
CloudflareAiSearchChatBubble CloudflareAiSearchChatBubbleConfiguration Floating conversational search
CloudflareAiSearchChatPage CloudflareAiSearchChatPageConfiguration Full-page conversational search

All configurations support Theme, Placeholder, HideBranding, and JSON Translations. Search configurations add result limits, debounce, URL/date display, grouping, and JSON RequestOptions. Chat configurations add JSON ChatQueryRewrite.

Snippet version and hosting

By default, the module URL is built from the public endpoint and snippet version 0.0.25:

private readonly CloudflareAiSearchBarConfiguration _search = new()
{
    ApiUrl = "https://your-instance.search.ai.cloudflare.com/",
    ScriptVersion = "0.0.25"
};

Set ScriptUrl to an absolute module URL when self-hosting or pinning a different distribution:

ScriptUrl = "https://static.example.com/cloudflare/search-snippet.es.js"

The module URL must use HTTPS, except for loopback HTTP development URLs. It is executable browser code, so only configure an origin you trust and allow it in the application's Content Security Policy. Search queries and chat messages are sent to the configured public endpoint; apply appropriate disclosure and consent for the indexed content and user input.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.Blazor.Cloudflare.AiSearch:

Package Downloads
Soenneker.Quark.Suite

Shadcn-powered Blazor UI, refined and modular.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.97 1,251 10/15/2026
4.0.96 115 10/15/2026
4.0.95 291 10/15/2026
4.0.94 196 10/14/2026
4.0.93 379 10/14/2026
4.0.89 269 10/14/2026
4.0.88 70 10/14/2026
4.0.87 68 10/14/2026
4.0.82 436 10/13/2026
4.0.81 87 10/12/2026
4.0.79 667 10/12/2026
4.0.78 80 10/12/2026
4.0.77 82 10/12/2026
4.0.76 79 10/11/2026
4.0.75 86 10/11/2026
4.0.74 4,827 10/4/2026
4.0.73 100 10/3/2026
4.0.72 92 10/3/2026
4.0.71 2,157 9/30/2026
4.0.70 1,148 9/29/2026
Loading failed

Updated Multiple NuGet packages