Lantern.Umbraco
1.0.2
dotnet add package Lantern.Umbraco --version 1.0.2
NuGet\Install-Package Lantern.Umbraco -Version 1.0.2
<PackageReference Include="Lantern.Umbraco" Version="1.0.2" />
<PackageVersion Include="Lantern.Umbraco" Version="1.0.2" />
<PackageReference Include="Lantern.Umbraco" />
paket add Lantern.Umbraco --version 1.0.2
#r "nuget: Lantern.Umbraco, 1.0.2"
#:package Lantern.Umbraco@1.0.2
#addin nuget:?package=Lantern.Umbraco&version=1.0.2
#tool nuget:?package=Lantern.Umbraco&version=1.0.2
Lantern for Umbraco
Inject the Lantern bug-tracking widget into every frontend page of your Umbraco site — no template changes required. Configure your embed key right from the Umbraco backoffice.
Features
- 🔑 Backoffice settings — paste your Lantern embed key in the Settings → Lantern dashboard
- ⚡ Automatic injection — the
<script>tag is inserted before</body>on all public HTML pages via ASP.NET Core middleware - 🛡️ Backoffice excluded —
/umbracoroutes are always skipped - 📋 Config fallback — set
Lantern:EmbedKeyinappsettings.jsonas a static fallback (database value takes precedence) - 🎛️ Path exclusions — optionally exclude specific path prefixes from injection
- 🏷️ Header badge — a subtle status indicator in the backoffice toolbar
Requirements
| Requirement | Version |
|---|---|
| Umbraco CMS | 17.x |
| .NET | 10.0 |
Installation
NuGet Package Manager
dotnet add package Lantern.Umbraco
Package Manager Console
Install-Package Lantern.Umbraco
No additional
Program.csorStartup.cschanges are needed — the composer handles everything automatically.
Configuration
Option 1: Backoffice (recommended)
- Log into the Umbraco backoffice
- Navigate to Settings → Lantern
- Paste your embed key from lanternhq.app → Settings → Widget
- Click Save embed key
Done — the widget is live on your site immediately.
Option 2: appsettings.json
Add the following to your appsettings.json (or environment-specific variant):
{
"Lantern": {
"EmbedKey": "your-embed-key-here"
}
}
The backoffice-stored value always takes precedence over this configuration value.
Full configuration options
{
"Lantern": {
"EmbedKey": "your-embed-key-here",
"Enabled": true,
"ExcludedPaths": [
"/health",
"/robots.txt",
"/sitemap.xml",
"/api"
]
}
}
| Property | Type | Default | Description |
|---|---|---|---|
EmbedKey |
string |
null |
Your Lantern embed key (backoffice value takes precedence) |
Enabled |
bool |
true |
Set to false to disable injection site-wide |
ExcludedPaths |
string[] |
[] |
Path prefixes to exclude from injection |
How it works
The package registers an ASP.NET Core middleware (LanternWidgetMiddleware) that:
- Buffers HTML responses (responses with
Content-Type: text/html) - Finds the last
</body>tag in the response - Injects
<script src="https://lanternhq.app/api/widget/script" data-key="..." defer></script>immediately before it - Streams the modified response back to the client
Non-HTML responses (JSON, images, CSS, etc.), backoffice routes (/umbraco), and any configured ExcludedPaths are always passed through unmodified.
Management API
The package exposes a management API used by the backoffice dashboard. You can call it directly if needed:
Get settings
GET /umbraco/management/api/v1/lantern/settings
Authorization: Umbraco backoffice session
Response:
{
"embedKey": "ltrn_live_abc123",
"enabled": true,
"isStoredInDatabase": true,
"scriptTagPreview": "<script src=\"https://lanternhq.app/api/widget/script\" data-key=\"ltrn_live_abc123\" defer></script>"
}
Save settings
POST /umbraco/management/api/v1/lantern/settings
Content-Type: application/json
Authorization: Umbraco backoffice session
{
"embedKey": "ltrn_live_abc123"
}
Building from source
git clone https://github.com/lanternhqapp/lantern-umbraco.git
cd lantern-umbraco
dotnet build
Create the NuGet package
dotnet pack src/Lantern.Umbraco/Lantern.Umbraco.csproj \
--configuration Release \
--output ./artifacts
Publish to NuGet.org
dotnet nuget push ./artifacts/Lantern.Umbraco.1.0.0.nupkg \
--api-key YOUR_NUGET_API_KEY \
--source https://api.nuget.org/v3/index.json
Our Umbraco submission
When submitting to the Our Umbraco package repository:
- Build the NuGet package (see above)
- Navigate to our.umbraco.com/member/profile/packages
- Fill in:
- Package name: Lantern
- NuGet package ID:
Lantern.Umbraco - Compatible Umbraco versions: 17+
- Category: Website Utilities
- Tags: bug-tracking, widget, monitoring, feedback
License
MIT — see LICENSE for details.
| 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
- Umbraco.Cms (>= 17.4.2)
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 |
|---|---|---|
| 1.0.2 | 96 | 5/27/2026 |