PHPackages                             clayfreeman/browser-debug-utils - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. clayfreeman/browser-debug-utils

ActiveProject[CLI &amp; Console](/categories/cli)

clayfreeman/browser-debug-utils
===============================

A collection of command-line utilities to aid in debugging browser engines.

1.0.0(2y ago)97MITPHPPHP &gt;=7.2

Since May 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/clayfreeman/browser-debug-utils)[ Packagist](https://packagist.org/packages/clayfreeman/browser-debug-utils)[ Docs](https://github.com/clayfreeman/browser-debug-utils)[ RSS](/packages/clayfreeman-browser-debug-utils/feed)WikiDiscussions 1.1.x Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Browser debug utilities
=======================

[](#browser-debug-utilities)

This project contains several scripts that make the process of debugging browser engines much easier (some special cases excepted). The hallmark feature of this project is its integration with `uncss` to automate the process of removing unused CSS rules.

Overview
--------

[](#overview)

- `bdu-outline-scripts`: replaces all inline script elements with references to outline script files.
- `bdu-outline-styles`: replaces all inline style elements with references to outline style files.
- `bdu-replace-outlined-styles`: deletes all outlined styles and inserts the contents of STDIN at the top of the document.
- `bdu-prepare`: automatically runs `bdu-outline-scripts` and `bdu-outline-styles`, then pipes the output of `uncss` into `bdu-replace-outlined-styles` to remove all unused CSS rules.

Dependencies
------------

[](#dependencies)

This project requires `composer` and `npm` to be available, and both of their respective bin directories should be in your PATH environment variable. Additionally, PHP 7.2 or greater is required.

Installation
------------

[](#installation)

```
npm install -g prettier uncss
composer global require clayfreeman/browser-debug-utils
```

Usage
-----

[](#usage)

1. Create your minimum viable test case using the inspector in your favorite browser (e.g., delete all unnecessary elements and external resources).
2. Save the modified page in a way that is completely accessible offline.
3. Run the aggregate script, `bdu-prepare /path/to/index.html`, or any of the other scripts provided by this project.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1086d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ac013c9e01441cfb5d67ed6cacc41a7d155f24f41bec16eb04ac10f8423d9f?d=identicon)[clayfreeman](/maintainers/clayfreeman)

---

Top Contributors

[![clayfreeman](https://avatars.githubusercontent.com/u/182658?v=4)](https://github.com/clayfreeman "clayfreeman (2 commits)")

### Embed Badge

![Health badge](/badges/clayfreeman-browser-debug-utils/health.svg)

```
[![Health](https://phpackages.com/badges/clayfreeman-browser-debug-utils/health.svg)](https://phpackages.com/packages/clayfreeman-browser-debug-utils)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
