![]() |
VOOZH | about |
dotnet add package MeshWeaver.Kernel --version 2.5.0
NuGet\Install-Package MeshWeaver.Kernel -Version 2.5.0
<PackageReference Include="MeshWeaver.Kernel" Version="2.5.0" />
<PackageVersion Include="MeshWeaver.Kernel" Version="2.5.0" />Directory.Packages.props
<PackageReference Include="MeshWeaver.Kernel" />Project file
paket add MeshWeaver.Kernel --version 2.5.0
#r "nuget: MeshWeaver.Kernel, 2.5.0"
#:package MeshWeaver.Kernel@2.5.0
#addin nuget:?package=MeshWeaver.Kernel&version=2.5.0Install as a Cake Addin
#tool nuget:?package=MeshWeaver.Kernel&version=2.5.0Install as a Cake Tool
MeshWeaver.Kernel provides the API for interacting with .NET Interactive kernels in the MeshWeaver mesh. It defines the core message types and events for kernel communication.
// Event envelope for kernel responses
public record KernelEventEnvelope(string Envelope);
// Command envelope for kernel execution
public record KernelCommandEnvelope(string Command)
{
public string IFrameUrl { get; init; }
public string ViewId { get; init; } = Guid.NewGuid().AsString();
}
// Code submission request
public record SubmitCodeRequest(string Code)
{
public string IFrameUrl { get; init; }
public string Id { get; init; } = Guid.NewGuid().AsString();
}
// Event subscription management
public record SubscribeKernelEventsRequest;
public record UnsubscribeKernelEventsRequest;
There are two ways to handle code execution output:
Used when output should update a specific area in the mesh, typically for interactive components like markdown editors:
// Output will update an area with the specified ID
var request = new SubmitCodeRequest("Console.WriteLine(\"Hello\");")
{
Id = "specific-area-id" // Updates area with this ID
};
client.Post(request, o => o.WithTarget(new KernelAddress()));
Used when output should be rendered in a notebook iframe:
// Output will be rendered in a notebook iframe
var request = new SubmitCodeRequest("Console.WriteLine(\"Hello\");")
{
IFrameUrl = "http://localhost/area" // Renders in notebook iframe
};
client.Post(request, o => o.WithTarget(new KernelAddress()));
// Subscribe to kernel events
client.Post(new SubscribeKernelEventsRequest(),
o => o.WithTarget(new KernelAddress()));
// Unsubscribe from kernel events
client.Post(new UnsubscribeKernelEventsRequest(),
o => o.WithTarget(new KernelAddress()));
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on MeshWeaver.Kernel:
| Package | Downloads |
|---|---|
|
MeshWeaver.Markdown
Package Description |
|
|
MeshWeaver.Hosting
Package Description |
|
|
MeshWeaver.Blazor
Package Description |
|
|
MeshWeaver.Kernel.Hub
Package Description |
|
|
MeshWeaver.Graph
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-preview1 | 229 | 4/16/2026 |
| 2.5.0 | 431 | 11/3/2025 |
| 2.4.0 | 405 | 10/2/2025 |
| 2.3.0 | 420 | 8/4/2025 |
| 2.2.0 | 704 | 7/21/2025 |
| 2.1.0 | 353 | 4/6/2025 |
| 2.0.3 | 676 | 3/24/2025 |
| 2.0.2 | 650 | 3/24/2025 |
| 2.0.1 | 302 | 3/21/2025 |
| 2.0.0 | 343 | 3/20/2025 |
| 2.0.0-preview3 | 264 | 2/28/2025 |
| 2.0.0-Preview2 | 282 | 2/10/2025 |
| 2.0.0-preview1 | 250 | 1/6/2025 |