PeakSWC.RemoteWebViewService.Lib 10.0.15.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package PeakSWC.RemoteWebViewService.Lib --version 10.0.15.3
                    
NuGet\Install-Package PeakSWC.RemoteWebViewService.Lib -Version 10.0.15.3
                    
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="PeakSWC.RemoteWebViewService.Lib" Version="10.0.15.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PeakSWC.RemoteWebViewService.Lib" Version="10.0.15.3" />
                    
Directory.Packages.props
<PackageReference Include="PeakSWC.RemoteWebViewService.Lib" />
                    
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 PeakSWC.RemoteWebViewService.Lib --version 10.0.15.3
                    
#r "nuget: PeakSWC.RemoteWebViewService.Lib, 10.0.15.3"
                    
#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 PeakSWC.RemoteWebViewService.Lib@10.0.15.3
                    
#: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=PeakSWC.RemoteWebViewService.Lib&version=10.0.15.3
                    
Install as a Cake Addin
#tool nuget:?package=PeakSWC.RemoteWebViewService.Lib&version=10.0.15.3
                    
Install as a Cake Tool

PeakSWC.RemoteWebViewService.Lib

The RemoteWebViewService as a library. The same code that runs as RemoteWebViewService.exe (and in the Railway container) can be hosted inside your own process, for example a WPF or WinForms app that shows its RemoteBlazorWebView UI in a local browser or a WebView2 iframe without a separate server process.

Embedded (in-process)

using PeakSWC.RemoteWebView;

// Loopback, plain HTTP, free ports. Returns once Kestrel is listening; does not block.
await using var server = await RemoteWebViewServer.StartAsync(new RemoteWebViewServerOptions
{
    MaxClients = 1,
    FrameAncestors = ["'self'", "https://host.example"],   // optional
    ConfigureLogging = lb => lb.AddDebug(),                 // optional; default is silent
});

blazorWebView.ServerUri = server.BaseUri;      // browsers: http://127.0.0.1:<port>/
blazorWebView.GrpcBaseUri = server.GrpcUri;    // native gRPC client: http://127.0.0.1:<grpcPort>/
// The page for a client is new Uri(server.BaseUri, $"app/{blazorWebView.Id}")

await server.StopAsync();                      // or dispose
  • Port = 0 (the default) binds a free port; read the real one from server.Port / server.BaseUri.
  • Plain HTTP is allowed only on a loopback address, so no development certificate is needed. Without TLS there is no ALPN, so browsers (HTTP/1.1, gRPC-Web) and the native gRPC client (HTTP/2) get separate ports. Set UseHttps = true (dev certificate) or Certificate to serve both on one HTTPS port.
  • The embedded host does not change the current directory or thread pool, does not read the host app's appsettings.json or environment variables, and does not hook Ctrl+C or process exit.
  • MaxClients limits concurrent RemoteWebView clients (a new CreateWebView gets 503 / Unavailable); browser requests for connected clients are never blocked. With MaxClients = 1 the client-list and file-watcher services are not mapped. The agent hub (doc/Agents.md) is never mapped when embedded.
  • FrameAncestors adds Content-Security-Policy: frame-ancestors ... to HTML responses and rejects cross-origin script calls whose Origin is not listed. Same-origin calls are always allowed.

Experimental: agent registry

The agent registry (AgentHub / AgentAdmin, see doc/Agents.md in the repository) is experimental and may change or be removed in any release. Its public types are marked [Experimental("RWV001")], so using them produces compiler diagnostic RWV001; add <NoWarn>$(NoWarn);RWV001</NoWarn> to opt in. The rest of this package is not affected.

Standalone

RemoteWebViewServer.Run(args);   // what RemoteWebViewService.exe does
RemoteWebViewServer.Run(5001, maxNumClients: 1, frameAncestors: ["'self'"]);   // blocking, HTTPS on loopback

Two-way voice for WPF sessions

Set BlazorWebView.EnableVoice = true before setting HostPage. Use HTTPS for the browser and host connections, and deploy a relay built with voice support. Open the controller through /app/{id} to get its one-time voice grant. In deployments without sign-in, treat the controller link as a credential. Mirror pages have no voice controls or grant.

The controller can request a call. The person at the PC accepts or declines in a separate local WebView2 window. Both sides can mute or hang up, and closing either endpoint ends the call. Voice uses the default input and output devices. The relay forwards call setup messages and WebRTC carries audio directly or through TURN.

Configure Voice__StunUrl for STUN and Voice__TurnUrl with Voice__TurnSecret for a TURN server that supports shared-secret credentials. For example, use turns:turn.example.com:443?transport=tcp for a TURN TLS listener on port 443. Keep the TURN secret on the relay. Configure the HTTPS proxy to forward WebSocket upgrades and preserve the public Host header on /voice/{id}/signal.

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
11.0.0 98 11/11/2026
10.0.15.3 283 11/23/2026
10.0.15.2 3,237 11/20/2026
10.0.15.1 699 11/11/2026
10.0.14 111 11/8/2026
0.0.2 1,841 7/1/2025
0.0.1 358 6/26/2025

Based on maui 10.0.15.3

Changes since 10.0.14
Bump to 10.0.15.3 with release notes
Merge pull request #114 from budcribar/fix/anycpu-packages
Emit AnyCPU IL for source generators and NuGet library packages
Merge pull request #113 from budcribar/security/remaining-review-fixes
Relay: keep a waiting session entry until its last waiter leaves
Harden relay against remaining security review findings (F1, F5, F6, F8, F9)
Merge pull request #112 from budcribar/claude/project-thread-l4oiwa
Relay: the admin site's service ticket may use the metrics calls
Relay: pass scheduled metrics from agents to Admin
Merge pull request #111 from budcribar/claude/project-thread-w37cul
Merge pull request #110 from budcribar/claude/project-thread-dzkzt6
Give control of agent-started sessions to the user who asked for them
Relay: gRPC error details only in Development, add HSTS
Merge pull request #109 from budcribar/claude/project-thread-pm2nrz
Merge pull request #107 from budcribar/agent-tokens-and-ticket-headers
Accept a newly issued agent token over the remembered one
Add per-agent token binding, ticket role claims, and header/cookie-only ticket reading
Merge pull request #105 from budcribar/claude/project-thread-9is2oo
Merge remote-tracking branch 'origin/net10' into claude/project-thread-9is2oo
Merge pull request #106 from budcribar/claude/project-thread-q0tq2b
Merge pull request #104 from budcribar/claude/project-thread-bf73xe
Apply session sign-in rules to the relay's gRPC calls
Relay: list clients and groups for the signed-in caller
Require a configured RelayTicket signing key of at least 32 bytes
Merge pull request #103 from budcribar/claude/project-thread-24nqqb
Refuse RPCD updates without an admin key and carry the installer log
Merge pull request #102 from budcribar/cursor/forward-update-rpcd-a474
Forward remote RPCD updates from Admin to the fleet agent
Merge pull request #100 from budcribar/claude/project-thread-ghzw1f
Merge pull request #101 from budcribar/claude/project-thread-izqv9b
Log why the relay refused an agent's enrollment key
Photino: fire ReadyToConnect only after WebView2 has started
CI: give manual and release runs a concurrency group of their own
Windows tests: warm up every tutorial build, not only Photino
Windows tests: warm up all three Photino tutorial builds
Tests: wait for the WebView2 page after the DevTools connect
Windows tests: warm up Chrome before the EndToEnd suite
Windows tests: warm up the shards' first browser and WebView2 starts
Windows tests: run the desktop tests as parallel shards
Merge pull request #99 from budcribar/claude/project-thread-kfekiw
Pass the PC's boot time from the agent to Admin
Merge pull request #98 from budcribar/claude/project-thread-xv5i5s
Refuse GetIds on a relay that requires sign-in
Merge pull request #97 from budcribar/claude/project-thread-89es12
Mirror: wait for the WebView before showing the mirror on connect
Tests: say which session is short when the relay's file totals don't match
Merge pull request #96 from budcribar/claude/project-thread-89es12
Bump to 10.0.15.2 with release notes
Merge pull request #90 from budcribar/claude/project-thread-i544zb
Merge pull request #91 from budcribar/claude/project-thread-89es12
Merge pull request #94 from budcribar/claude/project-thread-wg41g7
Set-RailwayAgentKeys: create its link folder under -WhatIf too
Merge pull request #95 from budcribar/claude/project-thread-mj8jra
Set-RailwayAgentKeys: define a function when dot-sourced, link the relay project itself
Relay: send non-owner browsers in shared sessions to the mirror, log page requests
Relay: an EndSession is an expected disconnect, and keeps the requester label
Add scripts/Set-RailwayAgentKeys.ps1 to set the relay's enrollment keys on Railway
AgentHub: add ReleaseAvailableCommand broadcast and AgentAdmin.PublishRelease RPC

Full list: https://github.com/budcribar/RemoteBlazorWebView/compare/10.0.14...b5756b88971ab46b06600ec3edf9d95d074ff078