Skip to main content

Capstan: The Webhook Inspector

Capstan is a modern, lightweight, and terminal-based webhook inspector for local development. It provides a TUI ( Terminal User Interface) to monitor and inspect incoming HTTP requests, making it the perfect companion for debugging webhooks and API integrations without leaving your terminal.

Features

  • Overview: Quick view of method, path, host, and timestamp.
  • Headers & Cookies: Complete breakdown of all request headers and cookies.
  • Query Parameters: Easy-to-read table of all URL parameters.
  • Body Analysis:
    • Syntax Highlighting: Built-in support for JSON, XML, and more.
    • Hexdump: Automatic fallback to a polished hexdump for binary or unknown content.

Capstan is designed to be a simple and lightweight tool. As such, it does not support:

  • Persistence: Captured requests are stored in-memory and are lost when the application is closed.
  • HTTPS/SSL: The local server only supports HTTP. Use a tunnel like ngrok if you need to receive webhooks from HTTPS sources or from the internet.
  • Dynamic Responses: It returns a static response (status, body, headers) for all requests.
  • Request Replay: There is no functionality to "replay" or "resend" captured requests.

mitmproxy can be used instead should those advanced features be needed.

Installation

You can install Capstan using uv (recommended) :

uv tool install capstan

Alternatively, you could install it with pipx:

pipx install capstan

Quick Start

Simply run capstan to start the inspector:

capstan

By default, Capstan will start a server on http://127.0.0.1:8080. You can now send requests to this address (or any path under it), and they will appear in the TUI.

You can send then HTTP requests to that address with arbitrary paths. Example:

curl -X POST http://127.0.0.1:8080/test-webhook \
     -H "Content-Type: application/json" \
     -d '{"event": "user_signup", "user_id": 123}'

Usage

See the help documentation for more information:

$ capstan --help
Usage: capstan COMMAND [OPTIONS]

A webhook inspector for local development.

╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ --help (-h)           Display this message and exit.                         │
│ --install-completion  Install shell completion for this application.         │
│ --version             Display application version.                           │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ─────────────────────────────────────────────────────────────────╮
│ --host    The listen address for the endpoint [default: 127.0.0.1]           │
│ --port    The port for the endpoint [default: 8080]                          │
│ --status  The response status code for the webhook [default: 201]            │
╰──────────────────────────────────────────────────────────────────────────────╯

Metadata

Release files for capstan 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capstan 1.0.0
File Size Uploaded
capstan-1.0.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for capstan 1.0.0
File Interpreter ABI Platform
capstan-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / capstan-1.0.0.tar.gz

Download URL capstan-1.0.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7d2f611cf1cccab31f46a9377faf8a60e6aa152da8d9c954e0b2e9a05e00e442
BLAKE2b-256 checksum
How to use checksums
f764dacc5b2c7e7957a01630acb618fcf11eb3704977b3b02d65566590fe4b42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / capstan-1.0.0-py3-none-any.whl

Download URL capstan-1.0.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b550fd44ed6bbafbeffba7d9e2053df4af34a75b184a2d5f81660878b5c758f6
BLAKE2b-256 checksum
How to use checksums
95028bbf1c29c2f20548db8ccda5e643443523217648b7dce13e219304254dcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page