Pagefind.Net.Frontend 0.6.0

dotnet add package Pagefind.Net.Frontend --version 0.6.0
                    
NuGet\Install-Package Pagefind.Net.Frontend -Version 0.6.0
                    
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="Pagefind.Net.Frontend" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pagefind.Net.Frontend" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Pagefind.Net.Frontend" />
                    
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 Pagefind.Net.Frontend --version 0.6.0
                    
#r "nuget: Pagefind.Net.Frontend, 0.6.0"
                    
#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 Pagefind.Net.Frontend@0.6.0
                    
#: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=Pagefind.Net.Frontend&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Pagefind.Net.Frontend&version=0.6.0
                    
Install as a Cake Tool

Pagefind.Net.Frontend

pagefind.net

Ships the Pagefind 1.5.2 browser query runtime (pagefind.js and wasm.en.pagefind) for indexes written by Pagefind.Net. An MSBuild target extracts the files into your project on build: no npm install required.

NuGet

Install

dotnet add package Pagefind.Net.Frontend

Quick start

Install the package and the frontend files appear in wwwroot/pagefind/ after every build. The output path is configurable in your .csproj, and extraction can be turned off:

<PropertyGroup>
  <PagefindFrontendOutputPath>wwwroot/pagefind</PagefindFrontendOutputPath>
  
</PropertyGroup>

Or extract from code:

using Pagefind.Net.Frontend;

// Writes pagefind.js and wasm.en.pagefind, unless the same version is already there (force: true overwrites).
string[] written = await PagefindFrontend.ExtractToAsync("wwwroot/pagefind");

An overload accepting IFileSystem is available for testing.

ASP.NET

ASP.NET does not recognise Pagefind's file extensions. Register them in your static file middleware, or the Pagefind runtime gets 404 responses when loading index data:

using Microsoft.AspNetCore.StaticFiles;

var app = WebApplication.CreateBuilder(args).Build();

var contentTypeProvider = new FileExtensionContentTypeProvider();
contentTypeProvider.Mappings[".pf_meta"] = "application/octet-stream";
contentTypeProvider.Mappings[".pf_index"] = "application/octet-stream";
contentTypeProvider.Mappings[".pf_fragment"] = "application/octet-stream";
contentTypeProvider.Mappings[".pagefind"] = "application/wasm";

app.UseStaticFiles(new StaticFileOptions { ContentTypeProvider = contentTypeProvider });
app.Run();

More: https://pagefind.nullean.net/getting-started/asp-net/ and https://pagefind.nullean.net/reference/frontend/

Learn more

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

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
0.6.0 72 11/12/2026
0.5.0 371 11/11/2026
0.4.2 504 11/11/2026
0.4.1 21,537 7/28/2026
0.4.0 153 7/28/2026
0.3.0 172 7/24/2026
0.2.0 133 7/24/2026
0.1.0 134 7/24/2026