Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Chrome DevTools Protocol Proxy - intelligent proxy for debugging purposes
Go Shell Dockerfile
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
docker
.gitignore
.goreleaser.yml
Dockerfile
LICENSE
README.md
filter.go
flags.go
go.mod
go.sum
logger.go Fix loggers closing Oct 1, 2019
main.go
protocol.go Flatted session support Sep 28, 2019
proxy.go
utils.go Flatted session support Sep 28, 2019

README.md

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 = )
-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	shorten requests and responses
-version
   display version information

Demo

asciicast

You can’t perform that action at this time.