Lantern
Lantern is a zero-dependency, ultra-lightweight status dashboard and monitoring server built in Go. It provides a sleek, single-page application (SPA) UI with dark/light themes and a completely push-based "heartbeat" API for tracking service uptimes, downtimes, and maintenance windows.
It uses a modernc.org/sqlite backend (no CGO required, cross-compiles easily) and compiles down to a single tiny binary or a lightweight Docker container.

Features (v0.3.0)
- Push-based Heartbeats: Services report their own status. No active scraping means Lantern can run securely behind NATs or on the edge.
- Background Stale Detection: Automatically marks services as "Down" (Stale) if they miss their heartbeat window (configurable via
LANTERN_STALE_HOURS).
- Webhooks & Notifications: Native integrations with Discord, Telegram, Gotify, and generic webhooks to alert you immediately on service degradation.
- Maintenance Mode: One-click UI toggles to silence alerts and ignore downtime during planned maintenance.
- Sleek UI Dashboard: A dependency-free HTML/JS frontend featuring Grid and List views, historical 30-day sparklines, diagnostic drawers, and real-time DOM diffing.
- Scoped API Tokens: Secure your ingest APIs using Bearer tokens while keeping your status dashboard public via unauthenticated read-only routes.
Screenshots



Quick Start (Docker)
The easiest way to get started is with Docker Compose.
services:
lantern:
image: ghcr.io/manasvinyadav/lantern:latest
container_name: lantern
restart: unless-stopped
ports:
- "7654:7654"
volumes:
- lantern_data:/data
environment:
# Secure your API
- LANTERN_AUTH_TOKEN=your_secret_token
# Configure Notifications
- LANTERN_WEBHOOK_DISCORD=https://discord.com/api/webhooks/...
volumes:
lantern_data:
docker compose up -d
Access the dashboard at http://localhost:7654/.
Documentation Suite
Lantern is highly configurable. Dive into the detailed guides below:
Quick API Example
Pushing a heartbeat is as simple as a single POST request:
curl -X POST http://localhost:7654/api/status \
-H "Authorization: Bearer your_secret_token" \
-H "Content-Type: application/json" \
-d '{
"service_name": "database",
"status": "up",
"message": "Latency normal"
}'
Building from Source
Lantern can be natively compiled into a standalone binary:
go mod download
go build -ldflags="-s -w" -o lantern .
./lantern
License
MIT License