# NetWasm.UI > A reflection-free, signal-driven C# UI framework for the browser, compiled ahead-of-time to WebAssembly with NetWasm. Inspired by Solid and Svelte rather than Blazor: components build their DOM once, fine-grained signals patch exactly the nodes that changed, and components are written as `.nwui` templates (HTML with Razor-style `@`) or in C#. Key facts for code generation: - Packages are `NwUi.*` on NuGet (`NwUi.Browser` for an app, `NwUi.Templates` for `dotnet new netwasm-ui`); namespaces are `NetWasm.UI.*`. Apps target `net10.0-netwasm` with the NetWasm SDK pinned in `global.json`. - `Build()` and template markup run once. Only reads inside lambdas (`Text(() => …)`, `When`, `Each`, `@expr`) update. - There is no reflection: use source-generated `System.Text.Json`, and libraries that do not rely on reflection. - `.nwui` control flow is only `@if` and `@foreach`; each template, branch and loop body has exactly one root node. - The complete documentation in one file: [llms-full.txt](https://matengo.github.io/NetWasm.UI/llms-full.txt). An agent skill: [skills/netwasm-ui/SKILL.md](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/skills/netwasm-ui/SKILL.md). ## Docs - [Getting started](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/getting-started.md): prerequisites, the `dotnet new` templates, the `nwui-dev` dev server - [Components and the C# API](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/components.md): `Component`, elements, attributes, events, `When`/`Each`, props and slots - [Templates (.nwui)](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/templates.md): the template syntax, props, attribute splatting, slots, generic components - [Reactivity](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/reactivity.md): `Signal`, `[Reactive]`, `Computed`, `Effect`, `Selector`, batching, context, `EventChannel`, lifecycle - [Services and DI](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/services.md): `Services`, `Inject()`, `@inject`, constructor injection - [Async data and Suspense](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/async.md): `Resource`, `Suspense`, `HttpClient` and JSON - [Forms and validation](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/forms.md): `Form`, `Field`, validators, `@bind`, `FieldAttributes` - [Routing](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/routing.md): `Routes`, `Route`, `Link`, `NavLink`, parameters, nested routes, base path - [Error handling](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/error-handling.md): `ErrorBoundary`, `App.OnError` - [JavaScript interop](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/js-interop.md): `[JSImport]`, `[JSExport]`, Promises, callbacks - [Testing](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/testing.md): rendering components in unit tests with `NwUi.Testing` - [Troubleshooting](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/troubleshooting.md): common problems, build errors and known limitations ## Guides - [Build a component library](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/component-library-tutorial.md): a headless library, tests, a themed library, packages - [Building a headless library](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/headless-libraries.md): conventions, compound components, accessibility - [Web Workers](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/workers.md): C# services in Web Workers with `NwUi.Workers` - [Libraries and packages](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/libraries.md): which NuGet packages work, size - [Embedding](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/embedding.md): several apps on one page - [Publishing and size](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/deployment.md): release builds, hosting, ASP.NET Core, prerendering, keeping the Wasm small - [Security](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/security.md): Content Security Policy, Trusted Types, XSS - [AI coding assistants](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/ai-assistants.md): `AGENTS.md`, the agent skill, Context7, `llms.txt` ## Optional - [Architecture](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/architecture.md): the binary op batch, `dom.mjs`, event delegation - [Compatibility and versioning](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/compatibility.md): supported SDKs and browsers - [Benchmarks](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/docs/benchmarks.md): comparison with SolidJS, React and Blazor WebAssembly - [Changelog](https://raw.githubusercontent.com/matengo/NetWasm.UI/main/CHANGELOG.md): every change, with migration notes for breaking ones