Mekik.Core
0.7.0
dotnet add package Mekik.Core --version 0.7.0
NuGet\Install-Package Mekik.Core -Version 0.7.0
<PackageReference Include="Mekik.Core" Version="0.7.0" />
<PackageVersion Include="Mekik.Core" Version="0.7.0" />
<PackageReference Include="Mekik.Core" />
paket add Mekik.Core --version 0.7.0
#r "nuget: Mekik.Core, 0.7.0"
#:package Mekik.Core@0.7.0
#addin nuget:?package=Mekik.Core&version=0.7.0
#tool nuget:?package=Mekik.Core&version=0.7.0
Mekik.Core
The realtime serving layer for ilmek
graphs — WebSocket sessions, streaming generative UI, and durable, interactive
human-in-the-loop over the mekik/1 wire protocol. The .NET mirror of the
TypeScript @mekik/core; both are held to one wire by shared golden fixtures.
var graph = Graph.Create("refund")
.Channel("input", Channels.LastWrite(""))
.Channel("reply", Channels.LastWrite(""))
.Node("gate", async (State state, IContext ctx) =>
{
Shuttle.Ui(ctx, "order-card", new Dictionary<string, object?> { ["id"] = state.Get<string>("input") });
var ok = await Shuttle.Approve<Dictionary<string, object?>>(
ctx, new Dictionary<string, object?> { ["title"] = "Refund?" });
return Update.Of("reply", ok.GetValueOrDefault("approved") is true ? "refunded" : "cancelled");
})
.Edge(Graph.Start, "gate").Edge("gate", Graph.End)
.Compile();
var app = new MekikApp(new MekikOptions { Graph = graph, Reply = s => s.GetValueOrDefault("reply") as string });
Serve it with Mekik.AspNetCore. Helpers live on Shuttle (what mekik means —
the loom part that carries the thread across); it can't be named Mekik because a
static class may not share its namespace's name.
Docs and the normative protocol spec: https://github.com/AimTune/mekik
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- Ilmek.Core (>= 0.1.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Mekik.Core:
| Package | Downloads |
|---|---|
|
Mekik.Agents
Microsoft.Extensions.AI integration for mekik — surface an agent's function calls in the UI, gate them behind human approval, and make them exactly-once across an interrupt/resume. |
|
|
Mekik.Redis
Redis horizontal-scale backends for mekik — a SET NX PX turn lock and a Pub/Sub backplane, so a single-node app becomes a fleet with no engine changes. |
|
|
Mekik.AspNetCore
ASP.NET Core WebSocket transport for mekik — serve a MekikApp over the mekik/1 wire protocol with app.MapMekik("/ws", app). |
GitHub repositories
This package is not used by any popular GitHub repositories.