# State of the Art Browser Tools

<div class="beside">
<div class="beside-text">

Shelley uses the excellent [ChromeDP](https://github.com/chromedp/chromedp) package for Go
to control a Chromium or Chrome browser using the Chrome
Developer Protocol. As such, it can browse web pages,
take screenshots, execute JavaScript, read logs,
take profiles, resize to mobile sizes, and so on. Anything you can do with
the Chrome dev console, Shelley is able to do.

On [exe.dev](https://exe.dev/) VMs, Shelley uses [`/headless-shell`](https://github.com/chromedp/docker-headless-shell) for its browser.
Elsewhere, it will find a Chromium in your PATH.

Most of the demos on this page were one-shot by asking Shelley
to record a feature.

</div>
<figure class="phone">
<video muted loop playsinline preload="none" data-autoplay width="390" height="844" aria-label="Asked why a storefront's search box is laggy, Shelley starts the server, opens it in its browser, records a CPU profile while typing, shows a flame graph pointing at levenshtein(), fixes the sort, and measures again: from hundreds of milliseconds per keystroke to about 30.">
<source src="/media/browser-profile-dark.mp4" type='video/mp4; codecs="avc1.640032"' media="(prefers-color-scheme: dark)">
<source src="/media/browser-profile-dark.webm" type='video/webm; codecs="vp9"' media="(prefers-color-scheme: dark)">
<source src="/media/browser-profile-light.mp4" type='video/mp4; codecs="avc1.640032"'>
<source src="/media/browser-profile-light.webm" type='video/webm; codecs="vp9"'>
</video>
</figure>
</div>
