Speedtest-Tracker

command module
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Speedtest Tracker v2

GitHub Container Registry GitHub Workflow Status last_commit issues commit_freq license

Speedtest Tracker runs scheduled Ookla Speedtest CLI checks, stores the results, and presents them in a web UI. Version 2 is a Go service with a Nuxt frontend; it is a rewrite of the previous Laravel/React application.

Ookla's EULA and privacy agreement must be accepted before the application will start.

homepage screenshot test result screenshot

Features

  • Scheduled speed tests using a cron expression, plus on-demand runs from the UI or API.
  • A static Nuxt web UI served by the Go application.
  • SQLite and PostgresSQL database support
  • Paginated results, latest-result, and time-series API endpoints.
  • Generated OpenAPI schema and Swagger UI.
  • Prometheus metrics, including a native histogram of Speedtest duration.
  • OpenTelemetry tracing support.
  • Optional OpenID Connect (OIDC) authentication.

Quick start with Docker Compose

For a simple deployment, use SQLite with a persistent Docker volume. Create an empty directory and add this compose.yaml file:

services:
  app:
    image: ghcr.io/henrywhitaker3/speedtest-tracker:v2
    restart: unless-stopped
    ports:
      - "8080:8080"
    env_file: .env
    environment:
      APP_URL: "https://speedtest.example.org"
      ACCEPT_EULA: "true"
      DB_DRIVER: sqlite
      DB_URL: /data/speedtest-tracker.db
    volumes:
      - speedtest-tracker:/data

volumes:
  speedtest-tracker:

Create a .env file beside it with a private runtime key:

RUNTIME_PSK=replace-with-the-output-of-openssl-rand-hex-32

For example:

openssl rand -hex 32

Then start the application:

docker compose up -d

Open http://localhost:8080. The SQLite database is stored in the speedtest-tracker Docker volume and survives container recreation.

To stop the stack without removing its data:

docker compose down

The repository's docker-compose.yaml starts PostgreSQL and Jaeger too; it is intended for local development.

Configuration

Configuration is read from environment variables (and a local .env file when running the binary directly). See the full configuration reference, including result retention, scheduled tests, Healthchecks.io, and observability.

For optional OpenID Connect authentication setup, see Authentication.

To import results from a Speedtest Tracker v1 JSON backup, see Restore a v1 backup.

Local development

The project uses mise to provision the backend tooling. The frontend has its own frontend/mise.toml for Node.js and pnpm.

mise install

cd frontend
mise install
mise exec -- pnpm install --frozen-lockfile
cd ..

mise run build-ui

Create a local .env file:

ACCEPT_EULA=true
RUNTIME_PSK=replace-with-a-random-value
APP_UI_DIR=frontend/.output/public
DB_DRIVER=sqlite
DB_URL=speedtest-tracker.db

Start the application and its development dependencies:

mise run serve

For iterative frontend development, run the Nuxt development server separately:

cd frontend
mise run ui

The frontend API base URL defaults to http://localhost:8080. Generate its TypeScript client from the running service with:

cd frontend
mise run client

Run backend tests with:

mise run test

Building the container image

The Dockerfile builds the Nuxt UI first, copies its static output to /ui, then builds the Go binary into a small non-root runtime image.

docker build -t speedtest-tracker:local .

The image expects a database and the configuration described above. Use the supplied Compose stack when you need a ready-to-run PostgreSQL deployment.

Notes on v2

This branch is a new implementation. The v1 Laravel/React configuration, authentication, notification, and external-service integration instructions do not apply to v2. v1 JSON result backups can be imported using the restore process.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api
Package api
Package api
api/auth
Package auth
Package auth
api/compat
Package compat
Package compat
api/config
Package config
Package config
api/restore
Package restore
Package restore
api/speedtest
Package speedtest
Package speedtest
api/units
Package units
Package units
auth
Package auth
Package auth
bootstrap
Package bootstrap
Package bootstrap
config
Package config
Package config
database
Package database
Package database
meta
Package meta
Package meta
notifications
Package notifications
Package notifications
ookla
Package ookla
Package ookla
results
Package results
Package results
testutils
Package testutils
Package testutils

Jump to

Keyboard shortcuts

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