How ryukxo-code/watchpost works
Watchpost lets users register HTTP endpoints, then checks them manually or on a configured schedule. Checks update in-memory endpoint status, latency, uptime, and recent history; status changes can trigger email alerts. Users view and manage monitoring from a React dashboard, including latency charts and uptime history, or use the REST API. The sampled backend and frontend show these paths; scheduler and alert capabilities are documented and their wiring is visible in the backend excerpts.
Main entry points: monitor.py Checks and history · main.py REST routes · App.jsx Dashboard and charts · alerts.py Email alerts
Components 10
Dashboard
- Dashboard and charts
frontend/src/App.jsx
API orchestration
- REST routes
app/main.py - Check scheduler
app/main.py
Monitoring domain
- Endpoint models
app/models.py - Checks and history
app/monitor.py - In-memory endpoints
app/monitor.py - Email alerts
app/alerts.py
Other components
- Operator
- Monitored endpoints
- Gmail SMTP
Connections 11
- Operator → Dashboard and charts: manages endpoints
README.md - Dashboard and charts → REST routes: calls REST API
frontend/src/App.jsx - REST routes → Checks and history: invokes checks
app/main.py - REST routes → Checks and history: manages endpoints
app/main.py - REST routes → Check scheduler: registers checks
app/main.py - Check scheduler → Checks and history: runs checks
app/main.py - Checks and history → Endpoint models: creates results
app/monitor.py - Checks and history → In-memory endpoints: updates state
app/monitor.py - Checks and history → Monitored endpoints: sends HTTP checks
app/monitor.py - Checks and history → Email alerts: dispatches alerts
app/monitor.py - Email alerts → Gmail SMTP: sends email
app/alerts.py