Scry.Server.Explorer 0.1.0-beta.1

This is a prerelease version of Scry.Server.Explorer.
dotnet add package Scry.Server.Explorer --version 0.1.0-beta.1
                    
NuGet\Install-Package Scry.Server.Explorer -Version 0.1.0-beta.1
                    
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="Scry.Server.Explorer" Version="0.1.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scry.Server.Explorer" Version="0.1.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="Scry.Server.Explorer" />
                    
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 Scry.Server.Explorer --version 0.1.0-beta.1
                    
#r "nuget: Scry.Server.Explorer, 0.1.0-beta.1"
                    
#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 Scry.Server.Explorer@0.1.0-beta.1
                    
#: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=Scry.Server.Explorer&version=0.1.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Scry.Server.Explorer&version=0.1.0-beta.1&prerelease
                    
Install as a Cake Tool

Scry.Server.Explorer

An opt-in, GraphiQL-style query explorer for Scry. It serves a self-contained Blazor WebAssembly UI that runs Roslyn in the browser: write strongly-typed C# LINQ against the allow-listed sources with real IntelliSense and diagnostics, see the serialized wire request, execute it, and inspect the results. Only validated requests reach the server.

Map it alongside your query endpoint (it is off unless mapped, and Development-only by default):

app.MapScry("/api/query");
app.MapScryExplorer("/scry");

Then browse to /scry. Configure via the options overload — for example to expose it outside Development behind your own authorization check:

app.MapScryExplorer(options =>
{
    options.Route = "/scry";
    options.QueryEndpoint = "/api/query";
    options.EnableGuard = _ => _.User.IsInRole("admin");
});

<a id='snippet-explorerOptions'></a>

/// <summary>Sub-path the explorer UI is served under. Default <c>/scry</c>.</summary>
public string Route { get; set; } = "/scry";

/// <summary>The existing <c>MapScry</c> query endpoint the explorer POSTs validated requests to.
/// Default <c>/api/query</c>.</summary>
public string QueryEndpoint { get; set; } = "/api/query";

/// <summary>
/// Decides, per request, whether the explorer is reachable. Defaults to Development-only:
/// the explorer reveals the full queryable schema, so it stays off in production unless a host
/// opts in explicitly (e.g. behind an admin authorization check).
/// </summary>
public Func<HttpContext, bool> EnableGuard { get; set; } = DevelopmentOnly;

<sup><a href='/src/Scry.Server.Explorer/ScryExplorerOptions.cs#L10-L24' title='Snippet source file'>snippet source</a> | <a href='#snippet-explorerOptions' title='Start of snippet'>anchor</a></sup>

Docs: Query explorer

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.1.0-beta.1 29 7/26/2026