bidulelabs
Back to Bidule Labs
Live Demo

athlete-panel

Self-hosted endurance training telemetry and planning workbench with explicit human-reviewed proposal diffs, durable background workers, and rehearsed encrypted PostgreSQL recovery.

  • Next.js
  • TypeScript
  • PostgreSQL 17
  • Docker Compose
  • Caddy
MIT
Open-source license
PG 17
Atomic revision commits
0
External telemetry backends
4
Isolated Compose services
Interface preview · athlete-panelathlete-panel.bidulelabs.com ↗
Athlete Panel interface showing structured training proposal diff awaiting explicit operator approval before database commit.

Problem

Training and endurance analytics tools usually lock longitudinal telemetry behind proprietary SaaS APIs, or bolt generative assistants directly onto mutable calendars without an audit trail. athlete-panel is a personal R&D experiment exploring what a zero-lock-in, self-hosted planning and telemetry application looks like when every automated suggestion must pass through an explicit human review gate before touching the database.

Architecture

The production Compose stack separates runtime concerns into four minimal processes with zero third-party backend dependencies:

  • Reverse Proxy (Caddy): Terminates HTTPS and routes traffic to the application server.
  • Web App (Next.js): Renders training analytics, schedules, and structured review diffs.
  • Database (PostgreSQL 17): Exposes no host port and persists domain state, durable job queues, and revisioned proposals inside single atomic transactions.
  • Background Worker: Claims long-running and resumable import jobs from PostgreSQL so ingestion and analytics outlive browser sessions.

Durable Proposal Review

Any automated assistant or external integration operates within explicitly granted scopes and writes a structured proposal rather than mutating schedules directly. The operator inspects the exact field-level diff in the UI and either commits or rejects the batch. At commit time, PostgreSQL re-verifies recorded revisions before applying all edits atomically—if a concurrent change occurred, nothing is partially written.

Key Trade-offs & Operational Notes

  • Rehearsed Recovery: Ships with optional scheduled encrypted archive tooling and a documented restore-test procedure that validates recovery against isolated storage without touching live data.
  • Coordinated Upgrades: Draining background jobs and snapping a recovery archive before starting new containers keeps code, schema, and backups matched for clean rollbacks.
  • Decoupled Hosting: Deployed on its own subdomain (athlete-panel.bidulelabs.com) from its dedicated repository so bidulelabs.com stays a pure static index.