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
<PackageReference Include="Soenneker.Blazor.Cloudflare.AiSearch" Version="4.0.97" />
<PackageVersion Include="Soenneker.Blazor.Cloudflare.AiSearch" Version="4.0.97" />
<PackageReference Include="Soenneker.Blazor.Cloudflare.AiSearch" />
paket add Soenneker.Blazor.Cloudflare.AiSearch --version 4.0.97
#r "nuget: Soenneker.Blazor.Cloudflare.AiSearch, 4.0.97"
#:package Soenneker.Blazor.Cloudflare.AiSearch@4.0.97
#addin nuget:?package=Soenneker.Blazor.Cloudflare.AiSearch&version=4.0.97
#tool nuget:?package=Soenneker.Blazor.Cloudflare.AiSearch&version=4.0.97
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();
Search bar
@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 | Versions 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. |
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.13)
- Soenneker.Asyncs.Initializers (>= 4.0.130)
- Soenneker.Blazor.Utils.ResourceLoader (>= 4.0.1792)
- Soenneker.Gen.EnumValues (>= 4.0.64)
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 |
Updated Multiple NuGet packages