Runlight.AspNetCore
0.1.7
See the version list below for details.
dotnet add package Runlight.AspNetCore --version 0.1.7
NuGet\Install-Package Runlight.AspNetCore -Version 0.1.7
<PackageReference Include="Runlight.AspNetCore" Version="0.1.7" />
<PackageVersion Include="Runlight.AspNetCore" Version="0.1.7" />
<PackageReference Include="Runlight.AspNetCore" />
paket add Runlight.AspNetCore --version 0.1.7
#r "nuget: Runlight.AspNetCore, 0.1.7"
#:package Runlight.AspNetCore@0.1.7
#addin nuget:?package=Runlight.AspNetCore&version=0.1.7
#tool nuget:?package=Runlight.AspNetCore&version=0.1.7
Runlight for .NET
Runlight is privacy friendly web analytics that runs inside your own ASP.NET Core app. It counts visitors without cookies and without storing anyone’s IP address. The numbers stay in your database, and the dashboard is served from your domain at /runlight.
These packages are the .NET version of Runlight. They need .NET 10 or later, and the runlight tool also runs Runlight on a domain of its own. They answer every request the way the TypeScript library does and use the same tables, so either one can read the other’s database.
| Package | What it is |
|---|---|
Runlight |
The library, with no dependencies of its own. |
Runlight.AspNetCore |
MapRunlight() and UseRunlight() for ASP.NET Core. |
Runlight.Server |
The runlight tool, which runs the standalone server. |
Get started
Add the ASP.NET Core package and the driver for your database.
dotnet add package Runlight.AspNetCore
dotnet add package Microsoft.Data.Sqlite
Create one instance for your app, and map its routes.
using Microsoft.Data.Sqlite;
using Runlight;
using Runlight.Store;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton(new Runlight.Runlight(new RunlightOptions
{
Store = Stores.Sqlite(SqliteFactory.Instance, "data/runlight.db"),
Site = new SiteOptions { Name = "example.com", Hostnames = ["example.com"], Timezone = "Europe/London" },
}));
var app = builder.Build();
app.MapRunlight();
app.Run();
Add the script to every page, just before </head>.
<script defer src="/runlight/s.js"></script>
Set RUNLIGHT_TOKEN to a long random string, then open /runlight/?token= followed by that string to sign in.
To run Runlight on a domain of its own, install the tool and start it in an empty folder.
dotnet tool install --global Runlight.Server
runlight serve
The .NET guide has the Postgres, MySQL, and MariaDB stores, the scheduled check, sign-in accounts, and the standalone server’s settings.
License
Runlight is MIT licensed.
| 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. |
-
net10.0
- Runlight (>= 0.1.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0 | 46 | 11/15/2026 |
| 0.4.3 | 60 | 11/10/2026 |
| 0.4.2 | 56 | 11/10/2026 |
| 0.4.1 | 59 | 11/10/2026 |
| 0.4.0 | 72 | 11/9/2026 |
| 0.3.3 | 89 | 11/6/2026 |
| 0.3.2 | 111 | 10/27/2026 |
| 0.3.1 | 93 | 10/26/2026 |
| 0.3.0 | 105 | 10/24/2026 |
| 0.2.0 | 104 | 10/18/2026 |
| 0.1.8 | 104 | 10/17/2026 |
| 0.1.7 | 125 | 10/15/2026 |
| 0.1.6 | 108 | 10/14/2026 |
| 0.1.5 | 95 | 10/14/2026 |
| 0.1.4 | 99 | 10/14/2026 |
| 0.1.3 | 101 | 10/12/2026 |
| 0.1.2 | 100 | 10/12/2026 |
| 0.1.1 | 104 | 10/11/2026 |
| 0.1.0 | 100 | 10/10/2026 |