Skip to content

Chrome DevTools Protocol Proxy - intelligent proxy for debugging purposes

License

Notifications You must be signed in to change notification settings

wendigo/chrome-protocol-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c247f44 Â· Jan 31, 2025
Jan 31, 2025
Dec 3, 2019
Jun 11, 2017
Jan 31, 2025
Dec 3, 2019
Apr 17, 2017
Jan 31, 2025
Aug 26, 2017
Jan 31, 2025
Jan 31, 2025
Jan 31, 2025
Jan 31, 2025
Jan 31, 2025
Jan 31, 2025
May 1, 2017
Jan 31, 2025

Repository files navigation

chrome-protocol-proxy

chrome-protocol-proxy is small, reverse proxy designed for working with Chrome's DevTools protocol. It captures all commands sent to and events received from Chrome, coalesce requests with responses, unpack messages from Target domain and provide easy to read, colored output. This tool is a fork of (and heavily inspired by) chromedp-proxy.

chrome-protocol-proxy screenshot

Installation

Via homebrew

brew install wendigo/tap/chrome-protocol-proxy

Via go get

go get -u github.com/wendigo/chrome-protocol-proxy

Via docker

docker run -t -i -p 9222:9222 wendigo/chrome-protocol-proxy:latest

This image bundles headless Chrome in the latest version so debugger is ready to use (head to http://localhost:9222 to validate).

Features

Configuration flags

-d	write logs file per targetId
-delta
   show delta time between log entries
-exclude value
   exclude requests/responses/events matching pattern (default exclude = )
-force-color
   force color output regardless of TTY
-i	include request frames as they are sent
-include value
   display only requests/responses/events matching pattern (default include = )
-l string
   listen address (default "localhost:9223")
-log-dir string
   logs directory (default "logs")
-m	display time in microseconds
-once
   debug single session
-q	do not show logs on stdout
-r string
   remote address (default "localhost:9222")
-s max_length
   shorten requests and responses to max_length
-version
   display version information

Demo

asciicast