RabstackQuery.DevTools 0.3.0

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

RabStack Query DevTools

Core DevTools engine for RabStack Query. Observes cache events and builds displayable snapshots of query and mutation state.

This package provides the platform-agnostic CacheObserver and display models. For a ready-to-use UI, install one of:

Installation

dotnet add package RabstackQuery.DevTools

Usage

var observer = new CacheObserver(queryClient, new DevToolsOptions());

observer.SnapshotsChanged += () =>
{
    foreach (var query in observer.Queries)
    {
        Console.WriteLine($"[{query.DisplayStatus}] {query.QueryHash} — observers: {query.ObserverCount}");
    }

    foreach (var mutation in observer.Mutations)
    {
        Console.WriteLine($"[{mutation.Status}] {mutation.MutationId}");
    }
};

// Don't forget to dispose when done
observer.Dispose();

Key Types

Type Description
CacheObserver Subscribes to QueryCache and MutationCache events, rebuilds snapshots on a debounced interval (250ms)
QueryListItem Display model for a single query: hash, key, status, observer count, last update time
MutationListItem Display model for a single mutation: ID, status, variables
QueryDisplayStatus Status classification: Fresh, Stale, Fetching, Paused, Inactive, Error
DevToolsOptions Configuration including DataFormatter (custom serialization for display) and DevToolsColorValues
SortOption Built-in and custom sort configurations

Building a Custom UI

Use this package directly to build DevTools integrations for platforms beyond Blazor and MAUI. The CacheObserver exposes:

  • Queries / Mutations — current snapshot lists
  • QueryCount — total tracked queries
  • SnapshotsChanged — event fired when snapshots are rebuilt
  • FindQueryByHash(string) — look up the underlying Query for detail views
  • ForceRefresh() — trigger an immediate snapshot rebuild

Documentation

See the GitHub repository for full documentation, architecture guide, and examples.

License

MIT

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 (2)

Showing the top 2 NuGet packages that depend on RabstackQuery.DevTools:

Package Downloads
RabstackQuery.DevTools.Maui

Package Description

RabstackQuery.DevTools.Blazor

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 96 4/5/2026
0.2.0 111 3/29/2026
0.1.0 120 3/28/2026