.NET 5.0
There is a newer version of this package available.
See the version list below for details.
Install-Package Datasilk.Core.Mvc -Version
dotnet add package Datasilk.Core.Mvc --version
<PackageReference Include="Datasilk.Core.Mvc" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Datasilk.Core.Mvc --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Datasilk.Core.Mvc,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Datasilk.Core.Mvc as a Cake Addin
#addin nuget:?package=Datasilk.Core.Mvc&version=

// Install Datasilk.Core.Mvc as a Cake Tool
#tool nuget:?package=Datasilk.Core.Mvc&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Datasilk Logo

Datasilk Core MVC

An MVC Framework for ASP.NET Core

Datasilk Core is an ultra-fast, light-weight alternative to ASP.NET Core MVC, it supports Views using HTML with mustache variables, hierarchical Controller rendering, and RESTful web services.


Make sure to include the middleware within Startup.cs.

app.UseDatasilkMvc(new MvcOptions()
	IgnoreRequestBodySize = true,
	WriteDebugInfoToConsole = true,
	Routes = new Routes()

Page Requests

All page request URLs are mapped to controllers that inherit the Datasilk.Core.Web.IController interface. For example, the URL http://localhost:7770/products would map to the class MyProject.Controllers.Products.


<div class="hero">


namespace MyProject.Controllers
    public class Home: Datasilk.Core.Web.Controller
        public override string Render(string body = "")
			//render page
			var view = new View("/Views/Home/home.html");
			view["title"] = "Welcome";
			view["description"] = "I like to write software";
			return view.Render();		

Web Services

The Datasilk Core MVC framework comes with the ability to call RESTful web APIs. All web API calls are executed from Datasilk.Core.Web.IService interfaces.

namespace MyProject.Services
    public class User: Datasilk.Core.Web.Service
		public string Authenticate(string email, string password)
			//authenticate user
			if(Authenticated(email, password))
				return Success();
				return AccessDenied("Incorrect email and/or password");

Read more Documentation on Github

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Datasilk.Core.Mvc:

Package Downloads

Core MVC classes & interfaces used in the Saber website builder.


The core interfaces, classes, and middleware for Kandu, used by plugin developers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 67 3/4/2022 54 2/23/2022 138 11/28/2021 161 11/3/2021 169 11/3/2021 105 11/2/2021 107 11/2/2021 145 10/17/2021
1.0.7 448 3/14/2021 206 12/10/2020 213 12/10/2020 246 11/24/2020 346 11/14/2020
1.0.6 246 11/12/2020 220 11/12/2020
1.0.5 280 11/10/2020 572 11/6/2020 220 11/6/2020
1.0.4 204 11/6/2020
1.0.3 234 9/29/2020
1.0.2 315 11/9/2019
1.0.1 276 11/9/2019
1.0.0 284 11/9/2019

Reverted View library to treat mustache variables that have parameters as non-unique keys. All mustache variables must have a unique name outside of their parameters.