RouteLens

module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2026 License: MIT

README ΒΆ

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•    β•šβ•β•   β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•

πŸ‡¨πŸ‡³ δΈ­ζ–‡ζ–‡ζ‘£

πŸ›°οΈ RouteLens

Go Report Card Release Docker Image


Introduction

RouteLens is a modern, agentless network observability platform that traces paths, measures latency/loss/bandwidth, and visualizes routes end-to-end.

✨ Features

  • 🌍 Auto GeoIP Injection: GeoIP is downloaded automatically from the P3TERX mirror and injected into hop data.
  • ⚑ True Latency Mode: MTR last-hop analysis ensures accurate target latency and loss.
  • 🎨 Modern UI: Ant Design v5 with a dark mode algorithm.
  • πŸ“Š Historical Metrics: Time-series trend charts for latency, loss, and speed.
  • πŸ“¦ Single Binary: One-file deployment with systemd support.
  • πŸ”„ In-App Updates: One-click update from Settings β†’ About & Updates (AdGuard Home style).

πŸ›  Architecture

flowchart LR
  A["Scheduler"] --> B["MTR (JSON)"]
  B --> C["Analyzer (Last Hop)"]
  C --> D["SQLite"]
  E["Bootstrapper"] --> F["GeoIP Downloader (P3TERX)"]
  G["Gin API"] --> H["React App (AntD v5)"]

πŸš€ Quick Start

wget https://github.com/yuanweize/RouteLens/releases/latest/download/routelens_linux
chmod +x routelens_linux
./routelens_linux service install --port 8080

Open http://localhost:8080 β†’ /setup to initialize admin. GeoIP will be downloaded automatically on first run.

Docker Compose
version: '3.8'
services:
  routelens:
    image: ghcr.io/yuanweize/routelens:latest
    container_name: routelens
    cap_add:
      - NET_RAW
    ports:
      - "8080:8080"
    volumes:
      - ./data:/data
    restart: unless-stopped

βš™οΈ Configuration

Env Description Default
RS_PORT HTTP port (alias) 8080
RS_HTTP_PORT HTTP bind address :8080
RS_DB_PATH SQLite path ./data/routelens.db
RS_JWT_SECRET JWT secret auto-generated
RS_GEOIP_PATH GeoIP dir ./data/geoip
RS_GEOIP_CITY_DB GeoIP City DB empty
RS_GEOIP_ISP_DB GeoIP ISP DB empty
RS_PROBE_INTERVAL Probe interval (seconds) 30

πŸ“‚ Directory Structure

.
β”œβ”€β”€ cmd/          # Entrypoints
β”œβ”€β”€ internal/     # API, monitor, auth
β”œβ”€β”€ pkg/          # Prober, storage, geoip
└── web/          # React frontend (Vite)

πŸ”„ In-App Updates

RouteLens supports one-click updates directly from the web UI, similar to AdGuard Home.

Requirements:

  • The running process must have write permission to its own binary file
  • For systemd deployments, ensure the service user owns the binary

Usage:

  1. Go to Settings β†’ About & Updates tab
  2. Click Check for Updates
  3. If an update is available, click Install Update
  4. The service will automatically restart with the new version

Note: If using systemd, the service will exit after update and systemd will restart it automatically.

License

MIT. See LICENSE.

Directories ΒΆ

Path Synopsis
cmd
probe_test command
server command
internal
api
cli
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL