httpstat wraps curl to show DNS, TCP, TLS, server, and transfer timing in readable terminal output. A single Python 3 script supports JSON export, SLO checks, and optional agent skill integration.
Overview
httpstat runs curl underneath and reorganizes curl's timing data into a clear breakdown for humans or scripts. Installation options include downloading the standalone script, pip install httpstat, or Homebrew on macOS.
Machine-readable modes emit JSON or JSONL with a documented v1 schema. SLO flags let you fail with exit code 4 when thresholds for total, connect, TTFB, DNS, or TLS are exceeded.
You can pass through most curl options after the URL, except flags httpstat reserves for its own output handling. Environment variables toggle body preview, IP display, speed lines, curl binary selection, and color suppression.
An bundled agent skill teaches coding assistants to run httpstat during HTTP latency troubleshooting. Related implementations in other languages are listed for users who prefer Go, PHP, or bash variants.
Key features
- Terminal timing breakdown
- JSON and JSONL output
- SLO threshold exit codes
- Save results to JSON files
- curl option passthrough
- Configurable via environment variables
Use cases
- Debug slow API endpoints
- Automate latency SLO checks
- Pipe timings into logs
- Teach agents HTTP diagnostics