httpstat
$ httpstat Community Low Riskhttpstat (reorx/httpstat) wraps curl to visualize HTTP request phase timings (DNS, TCP, TLS, server processing/TTFB, content transfer) cleanly in the terminal. Supports passing standard curl flags directly and HTTPSTAT_METRICS_ONLY=true for JSON timing metrics.
brew install httpstat httpstat measures real local network socket DNS/TCP/TLS/TTFB latency directly from the execution host using curl.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive single-shot execution and HTTPSTAT_METRICS_ONLY=true emits clean JSON timings, though default output is ASCII art with ANSI colors.
HTTPSTAT_METRICS_ONLY=trueoutputs pure JSON latency metrics- Default output uses ASCII timing diagram and ANSI colors
Stateless read-oriented wrapper around curl, though forwarding arbitrary curl flags (-X POST, -d) can still send mutating HTTP requests.
- No local state or credential storage
- Forwards raw
curlflags directly
Zero-dependency single Python script installable via brew install httpstat, pip, or uvx (requires curl).
- Available on Homebrew and PyPI; requires
curlbinary
Focused single-purpose diagnostic tool for isolating DNS vs TLS vs TTFB bottlenecks.
- Immediate phase latency breakdown without memorizing
curl -wformat strings
Stable, mature MIT utility (reorx/httpstat) with minimal ongoing changes.
- Single-purpose MIT repo (
reorx/httpstat)
Concise README documenting environment variables (HTTPSTAT_METRICS_ONLY, HTTPSTAT_SHOW_BODY) and curl pass-through.
- Clear README env var table
Security, Auth & Guardrails
Stateless; accepts optional ad-hoc headers passed through curl flags (e.g. -H).
MIT open-source Python CLI; completely free.
# httpstat Agent Rules - Set `HTTPSTAT_METRICS_ONLY=true` when you want structured JSON timing metrics instead of ASCII diagrams. - Pass `-X GET` or avoid mutating `-X POST`/`-X DELETE` `curl` flags during diagnostics. - Avoid passing `-d` with large payloads or unredacted secrets.
Agent-Ready Command Recipes
Safe Read-Only Queries
HTTPSTAT_METRICS_ONLY=true httpstat https://example.com
Outputs pure JSON timing metrics (time_namelookup, time_connect, time_pretransfer, time_starttransfer, time_total) without ASCII art.
httpstat https://example.com -H "Accept: application/json" -L
Forwards -H and -L flags to curl and displays phase-by-phase latency.
Strengths for Agents
- +
HTTPSTAT_METRICS_ONLY=trueturns latency diagnostics into clean machine-readable JSON. - + Passes standard
curlflags directly with zero learning curve.
Caveats & Pitfalls
- ! Default stdout renders ASCII diagrams and ANSI color sequences unless
HTTPSTAT_METRICS_ONLY=trueis set. - ! Single-purpose latency tool; relies on system
curl.