AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
Natrix 是一個 .NET WebAssembly 工具包,用於在 C# 中構建瀏覽器應用程式,具備響應式信號、自動生成的 Web API 綁定以及伺服器端渲染。
AI 翻譯
Natrix is a .NET WebAssembly toolkit for building browser applications in C#, with reactive signals, generated Web API bindings and server-side rendering.
開發工具C# · JavaScriptGitHub @miroljub1995上線中營運者未確認
試用過了嗎? 點一下就好,不需要登入。
正在載入完整 README。 以下為已儲存的摘錄。
Natrix is a .NET WebAssembly toolkit for building browser applications in C#. It combines a JavaScript interop foundation, generated browser API bindings, and an experimental component layer for reactive UI rendering.
The repository is split into a few focused projects:檢視完整 README ↗Website and docs: natrix.wiki
Natrix is a .NET framework for building web UIs in C# that run in the browser on WebAssembly. Pages render on the server first, then fine-grained signals update exactly the DOM nodes that changed. There's no virtual DOM, no Razor and no JavaScript to write, and Tailwind CSS is compiled at build time.
Install the template and create an app. It writes a server project and a WebAssembly client project into the current directory:
dotnet new install Natrix.Templates
mkdir MyNatrixApp && cd MyNatrixApp
dotnet new natrix -n MyNatrixApp
dotnet run --project MyNatrixApp/MyNatrixApp.csproj
The app comes with server-side rendering, client-side routing and Tailwind CSS already wired up. The Quick Start walks through it.
A component is a C# class. Setup runs once, and from then on only the parts that read a signal update:
public class Counter : BaseComponent<NoProps, NoEvents, NoSlots, NoExpose>
{
protected override IComponent[] Setup(out NoExpose exposed)
{
exposed = default;
var count = new Signal<int>(0);
var doubled = new Computed<int>(() => count.Value * 2);
return
[
new Button
{
Props = new ButtonProps(),
Events = new ButtonEvents { OnClick = _ => count.Value++ },
Children = [new DomText { Text = "Click me".ToConstSignal() }],
},
new P
{
Props = new PProps(),
Children = [new DomText { Text = new Computed<string>(
() => $"{count.Value} × 2 = {doubled.Value}") }],
},
];
}
}
Building apps
Signal, Computed, Effect) that drive updates.Div, A, Input, Select and the rest), rendering both in the browser and on the server.UseHead for the document title and meta tags.dotnet new natrix template.Browser APIs and interop
UseHead.Building this repository also needs Node.js and npm on PATH: the Tailwind generator bundles its JavaScript from source during the build. Apps that use the packages don't need either.
Natrix is under active development and APIs may still change between releases.
This project is licensed under the MIT License. See LICENSE for details.