Sylin.Koan.Web.OpenGraph 0.20.2

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

Sylin.Koan.Web.OpenGraph

Project Entity-owned social metadata into a SPA shell for link previews and HTML navigations—without SSR, user-agent sniffing, or an application middleware call.

dotnet add package Sylin.Koan.Web.OpenGraph

Smallest meaningful result

Configure the shell, then declare the route-to-Entity projection while Koan composes the application:

{
  "Koan": {
    "Web": {
      "OpenGraph": {
        "ShellPath": "wwwroot/index.html",
        "SiteName": "My Site"
      }
    }
  }
}
builder.Services.AddKoan(() =>
    SocialCards.For<Article>("/articles/{id}", id => Article.Get(id))
        .Title(article => article.Title)
        .Description(article => article.Summary)
        .Url(article => $"/articles/{article.Id}")
        .Type("article"));

The package contributes its Web pipeline behavior automatically. A matching HTML navigation receives encoded title, canonical, OpenGraph, and Twitter metadata. Unknown entities and unmatched routes receive configured defaults; asset, API, non-HTML, disabled, and unavailable-shell requests pass through.

Each declaration and its Entity lifecycle warming plan belong to the composing host. Resolvers should use Entity statics and selectors should remain pure over the Entity value; application services are not captured.

Image projection

CardImage.Recipe("share-card", mediaId) projects /media/{id}/share-card, CardImage.Raw(mediaId) projects the original, and CardImage.Url(...) preserves an external URL. This package composes URLs only; Media owns rendering.

Boundaries

  • The application owns its SPA fallback and shell file.
  • SocialCards.For<T> must run inside AddKoan(() => ...) or a KoanModule.Register method.
  • One host may declare one card per Entity type; separate hosts are isolated.
  • Snapshots use the Entity data path and optional Cache capability; no CDN purge or distributed shell cache is claimed.
  • No SSR, prerender, headless browser, oEmbed, JSON-LD, sitemap, or routing ownership is provided.

See the OpenGraph guide and technical contract.

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.20.2 100 7/22/2026
0.20.1 156 7/21/2026