RH

reorx/httpstat

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

6,2 тыс. stars Качество 68 Тренд 29MIT

reorx/httpstat — это кандидат на навык агента, импортированный из https://github.com/reorx/httpstat.

Обзор

reorx/httpstat — это кандидат на навык агента, импортированный из https://github.com/reorx/httpstat.

Обзор (машинный перевод)

httpstat визуализирует статистику curl(1) с точки зрения красоты и ясности.

Это один файл🌟 скрипт на Python, который не имеет зависимостей👏 и совместим с Python 3🍻.

Особенности

  • Красивый выход терминала — тайминговый разбивок DNS, TCP, TLS, серверной обработки и передачи контента
  • Структурированный вывод JSON — --format json / jsonl для потребления машины с стабильной схемой v1
  • SLO проверка порога — --slo total=500,connect=100 выходит с кодом 4 при нарушении
  • Сохранить результаты в файл — --save path.json для многоступенчатых рабочих процессов
  • NO_COLOR поддерживать — уважает конвенцию NO_COLOR
  • Навык агента — встроенный навык для диагностики производительности HTTP с помощью агента

Установка

Существует три способа получить httpstat:

  • Скачать сценарий напрямую: wget https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py

  • Через пип: pip install httpstat

  • Через homebrew (только для macOS): brew install httpstat

Для пользователей Windows рекомендуется версия @davecheney для Go. → ссылка для скачивания

Навыки

httpstat поставляется с навыком агента, который обучает ассистентов по программированию ИИ (Claude Code, Cursor и др.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

httpstat

httpstat visualizes curl(1) statistics in a way of beauty and clarity.

It is a single file🌟 Python script that has no dependency👏 and is compatible with Python 3🍻.

Features

  • Beautiful terminal output — timing breakdown of DNS, TCP, TLS, server processing, and content transfer
  • Structured JSON output — --format json / jsonl for machine consumption with a stable v1 schema
  • SLO threshold checking — --slo total=500,connect=100 exits with code 4 on violation
  • Save results to file — --save path.json for multi-step workflows
  • NO_COLOR support — respects the NO_COLOR convention
  • Agent skill — built-in skill for agent-assisted HTTP performance diagnostics

Installation

There are three ways to get httpstat:

  • Download the script directly: wget https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py

  • Through pip: pip install httpstat

  • Through homebrew (macOS only): brew install httpstat

For Windows users, @davecheney’s Go version is suggested. → download link

Skills

httpstat ships with an agent skill that teaches AI coding assistants (Claude Code, Cursor, etc.) how to use httpstat for HTTP performance diagnostics — automatic installation, bottleneck identification, and actionable fix suggestions.

Install the skill into your project:

npx skills add reorx/httpstat

Once installed, your agent will automatically use httpstat when you ask questions like “why is this API slow?” or “debug this endpoint’s latency”.

Usage

Simply:

python httpstat.py httpbin.org/get

If installed through pip or brew, you can use httpstat as a command:

httpstat httpbin.org/get

cURL Options

Because httpstat is a wrapper of cURL, you can pass any cURL supported option after the url (except for -w, -D, -o, -s, -S which are already used by httpstat):

httpstat httpbin.org/post -X POST --data-urlencode "a=b" -v

Structured Output

Use --format (-f) to get machine-readable output:

httpstat httpbin.org/get --format json
{
  "schema_version": 1,
  "url": "httpbin.org/get",
  "ok": true,
  "exit_code": 0,
  "response": {
    "status_line": "HTTP/2 200",
    "status_code": 200,
    "remote_ip": "...",
    "remote_port": "443",
    "headers": {"Content-Type": "application/json", "Server": "nginx", "...": "..."}
  },
  "timings_ms": {
    "dns": 5, "connect": 10, "tls": 15,
    "server": 50, "transfer": 20, "total": 100,
    "namelookup": 5, "initial_connect": 15,
    "pretransfer": 30, "starttransfer": 80
  },
  "speed": { "download_kbs": 1234.5, "upload_kbs": 0.0 },
  "slo": null
}

Use --format jsonl for compact single-line JSON (useful for log pipelines).

Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add reorx/httpstat
Новичок в MCP? Начните с руководства на mcpskill.org →