حول
The .NET One Person Framework — build, run, and ship a whole product solo, in C#, on one server. C# components server-rendered or on WebAssembly, a WebAssembly app on its own ASP.NET host — no Node, no npm. SQLite-first data, auth, jobs, mail, cache, CQRS & one-command deploy.
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- ٠
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلUI, data, auth, background work, realtime and deploy — all in C#, in one codebase, on standard
ASP.NET Core and EF Core. Rask.Data and source-generated CQRS with a
cached query layer; accounts, jobs, email, an
outbox, cache and file storage on your own
database; realtime subscriptions, multi-tenancy and
full-text search; the
/_rask operator console; and rask new → rask db → rask deploy from the
CLI. SQLite is the production default; PostgreSQL and SQL Server are a package away.
Small teams ship like big ones, and one developer can still ship the whole thing alone.
The UI is C# too. Components are plain C# classes that return a tree of HTML from Render(): state is a
field, and an event handler is a delegate.
[Route("/counter")]
public sealed partial class Counter : Component
{
private int _count;
protected override Component? Render() =>
Button.OnClick(() => _count++)[$"Current count: {_count}"];
}
Install
curl -sSL https://rask.sh/rask.sh | sh
On Windows, in PowerShell: irm https://rask.sh/rask.ps1 | iex.
Prerequisites: none. The installer adds whatever is missing — the .NET SDK and the wasm-tools
workload — all under $HOME, no sudo. Already have the SDK and want only the tool?
dotnet tool install -g Rask.Cli. See installation.
Adding Rask to a project you already have is one package — the host, with every battery:
dotnet add package Rask.Server # an ASP.NET app: live pages, database, auth, jobs, mail, …
dotnet add package Rask.Wasm # a browser app on .NET WebAssembly
C# components
Pages are C# components, server-rendered, with every state change streaming to the browser as a minimal diff
over a WebSocket. Pick --template wasm-hosted and the pages run in the browser instead: a WebAssembly app in the
project's Client/ folder, served by the same server that answers its API — no second project to
maintain, and message records in Shared/ compile into both halves. Rask builds on ASP.NET Core and
EF Core rather than replacing them.
rask new Shop
→ Render modes · Building components
Ship it
rask dev # run it — it applies its pending migrations as it starts
rask db add AddProducts # after you change the model
rask deploy --host root@box --domain shop.example.com # bare box → Docker + auto-HTTPS, zero-downtime
Run rask with no arguments for a wizard.
Batteries included
Auth, jobs, mail, cache, events and file storage are on by default, and every one of them keeps its records in the app's own SQLite database (an upload's bytes go to disk or a bucket) — no broker, no Redis, no second service to run. A fresh app can register somebody, sign them in, confirm their address and reset their password with no auth code written.
- Auth — accounts out of the box: register, sign in, sign out, route guards, and the first account to register is the administrator.
- Background jobs — enqueued, delayed and recurring work on your database, at-least-once with exponential backoff.
- Email — transactional mail queued in the same database and delivered over SMTP off the request thread; bodies are Rask components.
- Outbox — domain events committed in the same transaction as your data and relayed at-least-once, with no message broker.
- Cache — the standard
IDistributedCacheplusCache.Remember(key, load).For(10.Minutes)andCache.Forget(key). - Data · CQRS — audit stamps, opt-in soft delete, optimistic concurrency and domain events on EF Core, and a source-generated, reflection-free mediator.
- Production SQLite — WAL and busy-timeout pragmas, continuous Litestream backup, scheduled snapshots.
- Logging — the
ILoggerpipeline kept in a SQLite file of its own, with retention by age and row count. - Operator console —
/_rask: queue depth, dead letters and the errors behind them, cache contents and a log tail, behind an authorization policy. - PWA · Web Push — installable, offline apps, and push sent from your backend on your own VAPID keys.
- File storage — uploads on disk, in S3-compatible storage or in Azure Blob, with a row per file on your database and public or expiring links.
- Deploy —
rask deploytakes a bare VPS to a live HTTPS site with zero-downtime swaps.
They build on the standard .NET pieces — EF Core, hosted services, ILogger, IDistributedCache,
ASP.NET Core authentication — so adding one is a package reference, not a new stack to learn or a new
box to operate.
Documentation
| Philosophy: the One Person Framework | One codebase, one server, the batteries — and why that lets one developer or a whole team ship fast |
| Getting started · Tutorial | The UI end to end; then a whole product, one pillar per chapter |
| Building components · Routing · Forms | How markup is written, the URLs it answers, and the form pipeline |
The rask CLI · Deployment |
new / dev / db / deploy; Docker over SSH, auto-HTTPS, bare-VPS setup |
| DevTools | A panel in the page while you develop: the wire traffic and the component tree with props. Gone from every Release build |
| Data · CQRS · Auth · Jobs · File storage · SQLite | The database-backed pillars |
| HTTP APIs | API controllers and minimal APIs, hosted properly and called through a client generated from them |
| Migrating from Blazor · Diagnostics | Day-to-day differences side by side; every RASK build error and its fix |
The full index is docs/, and the other packages are listed in
NUGET.md. To see it running, rask.sh is a Rask app — landing page,
guides and every live demo — built from src/Rask.Site.
Rask is the Norwegian/Danish/Swedish word for fast.
Status
Rask is pre-1.0; APIs may change between minor versions. Every package ships for .NET 11 (net11.0 for
ASP.NET hosts, net11.0-browser for WASM), and that is what rask new scaffolds. Production use at your own discretion — issues and PRs welcome.
License
MIT.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…