NetWasmMvc.SDK
1.0.6
<Sdk Name="NetWasmMvc.SDK" Version="1.0.6" />
#:sdk NetWasmMvc.SDK@1.0.6
🧬 NetWasmMvc.SDK
The first complete ASP.NET MVC runtime for WebAssembly.
Write MVC applications with Controllers, Views, SignalR Hubs, EF Core SQLite, and Identity — all running entirely in the browser. No server required.
Powered by Cepha — inspired by Physarum polycephalum, the intelligent slime mold that solves complex problems through decentralized networks.
✨ Features
| Feature | Description |
|---|---|
| 🎮 MVC Controllers | Full ASP.NET-style controllers with [Route] attributes |
| 📄 Razor Views | .cshtml templates with @ViewBag, @Model, @foreach |
| 📡 SignalR Hubs | Real-time communication (WebSocket-style) in WASM |
| 🗄️ EF Core SQLite | Full database with Entity Framework — in the browser |
| 🔐 Identity | User management, roles, authentication — client-side |
| 🌐 SPA Router | Automatic client-side navigation, history support |
| 🚀 CephaKit | Optional Node.js WASM backend server |
🚀 Quick Start
1. Create a new project
<Project Sdk="NetWasmMvc.SDK">
</Project>
2. Write your Program.cs
var app = CephaApp.Create();
await app.RunAsync();
3. Add a Controller
using WasmMvcRuntime.Abstractions;
public class HomeController : Controller
{
[Route("/")]
[Route("/home/index")]
public ViewResult Index()
{
ViewBag["Title"] = "Hello, Cepha!";
return View();
}
}
4. Add a View
Create Views/Home/Index.cshtml:
<h1>@ViewBag.Title</h1>
<p>Running in WebAssembly! 🧬</p>
5. Build & Run
dotnet build
# Serve wwwroot with any static file server
📦 What's Included
The SDK bundles everything — zero additional PackageReferences needed:
WasmMvcRuntime.Abstractions— Base classes (Controller, Hub, Route, ViewResult)WasmMvcRuntime.Core— MVC Engine, SignalR Engine, View RenderingWasmMvcRuntime.Identity— User/Role managementWasmMvcRuntime.Data— EF Core SQLite for WASMWasmMvcRuntime.App— Shared Controllers, Hubs, Models, Repositories- JsInterop —
[JSImport]bindings (DOM, storage, navigation) - JsExports —
[JSExport]handlers (Navigate, Forms, SignalR) - CephaApp — One-call bootstrap builder
- main.js — Default SPA runtime (override with your own)
- Deployment templates — Local, Cloudflare Pages, Azure Static Web Apps
🏗️ Architecture
Browser
└── WebAssembly (.NET 10)
├── MVC Engine (route → controller → view)
├── SignalR Engine (real-time hubs)
├── EF Core + SQLite (IndexedDB-backed)
├── Identity (auth & roles)
└── JS Interop (DOM, navigation, storage)
🔗 Links
- Repository: github.com/sbay-dev/WasmMvcRuntime
- License: MIT
Built with 🧬 by sbay-dev
| Product | Versions 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. |
| .NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.