GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LLM-4-People/ModelWatcher: Real-time dashboard that monitors LLM API endpoints by periodically sending streaming completion requests and benchmarking them

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
backend
backend
 
 
config
config
 
 
docs
docs
 
 
frontend
frontend
 
 
scripts
scripts
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
compose.modelwatcher.build.yaml
compose.modelwatcher.build.yaml
 
 
compose.modelwatcher.yaml
compose.modelwatcher.yaml
 
 
package.json
package.json
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

ModelWatcher

Real-time dashboard that monitors LLM API endpoints by periodically sending streaming completion requests and benchmarking them.

Live instance: https://stats.ai4fun.dev

Table of contents

  • Features - What ModelWatcher does
  • Tech stack - Backend, frontend, database, real-time
  • Quick start (Docker compose) - 3-step setup
  • Configuration - Three YAML config files
  • API - 15 REST endpoints, Swagger UI, ReDoc
  • Architecture - System design overview
  • Development - Local setup and testing
  • PWA and notifications - Installable app, push notifications
  • Contributing - Branch strategy, code style, PRs
  • Security - Vulnerability reporting, deployment hardening
  • License - MIT

Features

  • Benchmarks - Long streaming tests measuring TTFT, TPS, inter-token latency (ITL), stall/hiccup detection, batching, and tail latency
  • Health checks - Lightweight requests verifying endpoint reachability and measuring TTFT only, running more frequently than benchmarks
  • Audits - Automated compliance test suites for evaluating model quality. Currently compatible with SynBad; additional suite providers will be added in the future
  • Probes - Capability detection tests for vision, tool use, structured output, cache support, and thinking/reasoning
  • WebSocket live updates - Push-based real-time updates with no polling required for active connections
  • Push notifications - Web Push API (VAPID) for offline and degraded alerts; webhook delivery with HMAC signing
  • Tier system - Five quality tiers (Excellent / Good / OK / Bad / Critical) with per-metric thresholds and composite C/S/R scores
  • Charts - Chart.js time-scale charts with four views (speed, consistency, scores, health) and bucketed server-side aggregation
  • Hot-reload - Configuration changes (providers, intervals, thresholds) take effect without a server restart
  • PWA - Installable progressive web app with offline-capable shell, background push notifications, and service-worker-based auto-update

Tech stack

Layer Technology
Backend Python 3.13, FastAPI, uvicorn (uvloop)
Database SQLite with WAL mode
Frontend Vanilla JS (ES modules, no bundler), HTML
Charts Chart.js (loaded locally, not CDN)
Styling Tailwind CSS v4 (CSS-native config, no tailwind.config.js)
Real-time WebSocket (FastAPI WebSocket)

Quick start (Docker compose)

1. Create a directory for your config

mkdir modelwatcher && cd modelwatcher
mkdir -p config data

2. Download the compose and env files

curl -sL https://raw.githubusercontent.com/LLM-4-People/ModelWatcher/main/compose.modelwatcher.yaml -o compose.modelwatcher.yaml
curl -sL https://raw.githubusercontent.com/LLM-4-People/ModelWatcher/main/.env.example -o .env
chmod 0600 .env

3. Download the config templates

curl -sL https://raw.githubusercontent.com/LLM-4-People/ModelWatcher/main/config/app.yaml.example -o config/app.yaml
curl -sL https://raw.githubusercontent.com/LLM-4-People/ModelWatcher/main/config/models.yaml.example -o config/models.yaml
curl -sL https://raw.githubusercontent.com/LLM-4-People/ModelWatcher/main/config/audits.yaml.example -o config/audits.yaml

4. Edit config files

  • .env - add your provider API keys
  • config/app.yaml - set app.site_url and app.vapid_email
  • config/models.yaml - add your providers and models

5. Pull and run

docker compose -f compose.modelwatcher.yaml up -d

6. Check status

docker logs -f modelwatcher

The dashboard is available at http://localhost:8080. See docs/DEPLOYMENT.md for the full deployment guide including nginx reverse proxy configuration.

Configuration

ModelWatcher uses three YAML config files in config/:

File Purpose
app.yaml Runtime tuning - intervals, thresholds, notifications, color tiers, scores
models.yaml Provider definitions - API URLs, keys, model lists
audits.yaml Audit suite definitions - SynBad test configurations

Example files are provided (*.example). See docs/CONFIGURATION.md for the complete field reference.

API

15 REST endpoints across 7 tags. Interactive docs are available at runtime:

  • Swagger UI: /api/docs
  • ReDoc: /api/redoc
  • OpenAPI JSON: /api/openapi.json

See docs/API.md for the full reference. All errors return a uniform {"error": "message"} format, including 422 validation errors and 404s.

Architecture

config/*.yaml ──► reload_config() ──► model_registry
                                        │
                          scheduler ────┘│ (per-model due checks)
                              │         │
                    ┌─────────┴─────────┴─────────┐
                    ▼                            ▼
              stream_test()                  run_probe/audit()
              (SSE parsing)                       │
                    │                            │
                    ▼                            ▼
              compute_stream_metrics ──► record_result_async()
                                                │
                              ┌─────────────────┤
                              ▼                 ▼
                        SQLite (WAL)      model_cache (in-memory)
                              │                 │
                              └────────┬────────┘
                                       ▼
                              /api/metrics (ETag cached)
                                       │
                                       ▼
                              WebSocket broadcast ──► Frontend

See docs/ARCHITECTURE.md for the system design document covering the four test types, streaming flow, module graphs, and SQLite schema.

Development

See docs/DEVELOPMENT.md for local setup, project structure, testing, and conventions.

PWA and notifications

ModelWatcher is an installable progressive web app (PWA):

  • Install - Use the browser's "Install app" / "Add to home screen" option. The app runs full-screen with its own window.
  • Background push - Push notifications (offline, degraded, recovery alerts) require the app to be installed or the browser tab to be open. The service worker receives push events even when the tab is closed (browser-dependent; some browsers require installation).
  • Auto-update - The service worker force-reloads all clients on deploy. No stale content is served because the service worker has no fetch handler (it never caches page content).
  • Push prerequisites - HTTPS is required for web push (the VAPID protocol needs a secure context). Set app.site_url and app.vapid_email in config/app.yaml. VAPID keys are auto-generated on first run and stored in data/vapid_private.pem + data/vapid_public.txt.

Contributing

See CONTRIBUTING.md for branch strategy, code style, testing, and pull request guidelines.

Security

See SECURITY.md for supported versions, vulnerability reporting, and deployment security considerations.

License

MIT

About

Real-time dashboard that monitors LLM API endpoints by periodically sending streaming completion requests and benchmarking them

stats.ai4fun.dev

Topics

api-monitoringbenchmarkdashboardfastapillmrealtimesqlitetailwindcsswebsocket

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.