The full-stack .NET web framework
The whole stack,
in C#.
Data, queries, auth, background jobs, email, realtime and deploy — one framework and one C# codebase, for a team of one or fifty.
Write the business rules and nothing else: a value object carries its rule, an aggregate's method is its write, a form is Form.For over that method, and a test proves it on SQLite in memory. Ship it with rask deploy.
// A value object carries its rule; a typed id is one line.
public readonly partial record struct ProductId(Guid Value);
public sealed partial record ProductName(string Value)
: Text(Value, MaxLength: 200);
public sealed partial record UnitPrice(decimal Value)
: Number(Value, Min: 0, Scale: 2);
// The aggregate is the table, and each method is one write.
public sealed class Product
: Aggregate<ProductId>, IHasTimestamps, IVersioned, IDeletable
{
public ProductName Name { get; private set; }
public UnitPrice Price { get; private set; }
public bool Discontinued { get; private set; }
// The factory: Product.Create(…) saves what it makes.
private static Product Create(ProductName n, UnitPrice p) =>
new() { Id = ProductId.Create(), Name = n, Price = p };
public void Reprice(UnitPrice price)
{
Refuse.When(Discontinued, () => Price,
"A discontinued product keeps its price.");
Price = price;
}
public void Discontinue() => Discontinued = true;
}The whole stack · one codebase
Everything behind the page, already built.
Data, queries, auth, jobs, email, cache, files, realtime, tenants and search ship with the framework and ride your app's own database — no broker to stand up, no Redis to run, and a Redis you already have plugs in as the cache. They are built on the standard .NET pieces — EF Core, hosted services, ILogger, IDistributedCache — so each is a package reference, not a new box to operate.
Value objects that carry their rule in one line, typed ids, and aggregates whose methods are their writes — each one transaction, refused with Refuse.When(…) under the field it is about. No service layer.
Derive from Aggregate<ProductId>, say what it carries — IHasTimestamps, IVersioned — and the class is the table, with a generated read face to query. The same code on SQLite, PostgreSQL or SQL Server — no SQL, no provider API.
TestDatabase.Start() is SQLite in memory, a database per test, run side by side; Test.Refuses(…) and Test.FormShows assert what the domain says.
QueryClient.Query(…) in Render — cached, deduplicated, refetched after a write. Source-generated CQRS underneath, and the same call from the browser or the server.
Register, sign in, passkeys and a session row per device with no auth code — sign-in pages scaffolded into your app, the first account made admin. OIDC providers when you need them.
Enqueued, delayed and recurring work stored in your database and run by a hosted worker — at-least-once, with exponential backoff.
Mail queued on the same database and delivered over SMTP off the request thread; the bodies are components.
Each handler chooses: in memory at once, or durable — its outbox row committed in the same transaction as the data, then run at-least-once. Crash-safe, no message broker.
A database-backed IDistributedCache plus Cache.Remember(key, load).For(10.Minutes) — or point it at the Redis you already run.
Rask.Storage keeps uploads on disk, in S3-compatible storage, in Azure Blob or in your own database, with a row per file — public or expiring links, and the content type sniffed from the bytes.
QueryClient.Subscribe<OrderPlaced>() in a page, and every OrderPlaced published afterwards re-renders it — narrowed by a record, opened only through a policy.
Send Web Push from your backend on your own VAPID keys (RFC 8292/8291) — zero external dependencies.
IBelongsTo<Tenant> on a table adds the tenant column, a foreign key to the tenant, the query filter and tenant-prefixed indexes; Tenant.Across() is the one greppable way around them.
Product.Search("red anvil") — ranked, best match first, with highlights and snippets, on SQLite FTS5 or PostgreSQL.
A dashboard at /_rask over every battery's own table — queue depth, dead letters and the errors behind them, cache, a log tail, SQLite status. Fail-closed behind an authorization policy.
rask new scaffolds a working app with data, auth and the batteries wired; rask dev runs it with hot reload; rask db migrates and backs up.
rask deploy takes a bare VPS to a live HTTPS site — Docker, a non-root deploy user, firewall + SSH hardening, and zero-downtime swaps.
Frontend · C# components
The UI is C# too.
Components are plain C# classes — no .razor, no JavaScript, no second language. Roslyn source generators build each one's chain and typed route URLs, trim-safe and reflection-free.
[Route("/counter")]
public sealed partial class Counter : Component
{
private int _count;
protected override Component? Render() =>
Button.OnClick(() => _count++)[$"Current count: {_count}"];
}Current count
Each click ships a ~41-byte diff — not a re-render of the page.
A chain surface per component — Card.Title(…) — that demands what the component can't do without, plus type-safe Routes.* URL builders. Rename a route, break the build — never a dead link.
Form.For(Product.Reprice, id) is a form whose fields are the method's parameters, checked by its value objects and its Refuse as they are typed. Rows, value groups and Ui.EditorDialog with Delete.
Drop a sibling {Component}.css/.ts. Auto-scoped, no leaks — a mismatch is a build error. Tailwind v4 compiles from dotnet build, with no npm and no config file.
Flux UI's components as C# components — Ui.Button, Ui.Table, Ui.Chart — accessible and themed, with no npm and no Tailwind config.
IndexedDB, passkeys, WebRTC with its signaling and view transitions as awaitable C# — and every other web API straight from MDN through Rask.Web. Serial, USB, HID and Bluetooth pickers are WebAssembly's.
A typed manifest, a default service worker, offline and push — the wasm template is installable out of the box.
Edit Render() or scoped css/js under rask dev and it re-renders live — the closest a compiled framework gets to a no-build loop.
A WASM app renders every route to real HTML at publish, so a crawler is served the page rather than a spinner. On the server, every page is live, and its first response waits for its data.
A missing required step, a public setter on an aggregate, an image with no alt text — each is a RASK error at build time that names the fix, several with an IDE quick-fix.
One component model · every host
Write it once. Ship it where you need it.
The identical C# component runs unchanged across every host — you choose the runtime per project, not per component.
Server
ASP.NET host. State lives on the server; a live diff streams to the browser over a WebSocket. Nothing to compile client-side.
AddRask() · MapRask<TApp>()WebAssembly
The same component runs fully client-side on the browser's Mono/WASM runtime via JSImport/JSExport. Ships as an installable, offline PWA.
WasmHostBuilder.CreateDefault()WebAssembly host
Serves a Rask WebAssembly app from the ASP.NET host that answers its API, cached by what its publish guarantees, with pre-compressed variants.
AddRaskSpaHost() · MapRaskSpa()Prerequisite · .NET 11 SDK
Up and running in one command.
ASP.NET live-server app, batteries includedcurl -sSL https://rask.sh/rask.sh | shrask new MyAppcd MyApp && rask devNothing preinstalled — it adds the .NET SDK too, under $HOME, no sudo. Windows: irm https://rask.sh/rask.ps1 | iex.
Accounts and cookie sign-in are already on · full path in the getting-started guide.