npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

render-debugger

v1.6.5

Published

CLI tool for profiling Chromium-based browsers via CDP and identifying rendering bottlenecks with actionable fixes

Readme

render-debugger

A CLI tool for profiling Chromium-based browsers via CDP and identifying rendering bottlenecks with actionable fixes.

npm version License: MIT

Architecture

┌─────────────────────────────────────────────────────────────────┐
│                         CLI Interface                           │
├─────────────────────────────────────────────────────────────────┤
│  init │ profile │ analyze │ compare │ fix │ monitor │ rules    │
└───────────────────────────┬─────────────────────────────────────┘
                            │
┌───────────────────────────▼─────────────────────────────────────┐
│                        Core Engine                              │
├─────────────┬─────────────┬─────────────┬─────────────┬─────────┤
│   Recorder  │  Analyzer   │  Suggester  │   Patcher   │ Monitor │
│             │             │             │             │         │
│  • CDP      │  • Layout   │  • CSS      │  • Diff     │ • Roll  │
│  • Trace    │  • GPU      │  • JS       │  • Git      │ • Alert │
│  • Scenario │  • Tasks    │  • Native   │  • Apply    │ • Trend │
└─────────────┴─────────────┴─────────────┴─────────────┴─────────┘
                            │
┌───────────────────────────▼─────────────────────────────────────┐
│                     Browser Adapters                            │
├─────────────────────────────┬───────────────────────────────────┤
│     Chromium CDP Adapter    │      WebKit Native Adapter        │
│  (Chrome, Edge, Arc, Dia)   │    (Safari via Swift SDK)         │
└─────────────────────────────┴───────────────────────────────────┘

Installation

npm install -g render-debugger

Quick Start

# Initialize workspace
render-debugger init --browser-path /path/to/chrome

# Profile a page
render-debugger p --url "https://example.com" --scenario scroll-heavy

# Analyze (auto-detects latest trace)
render-debugger a

# Compare baseline against latest trace
render-debugger c baseline.json

# Generate fixes
render-debugger f

CLI Commands

| Command | Alias | Description | |---------|-------|-------------| | analyze [trace] | a | Analyze trace (auto-detects latest if omitted) | | profile | p | Profile a web page under a specific scenario | | compare <base> [head] | c | Compare traces (uses latest for head if omitted) | | fix [trace] | f | Generate and optionally apply patches | | monitor | m | Continuous performance monitoring | | init | - | Initialize workspace with config and scenarios | | rules list | - | Display configured rules | | rules validate | - | Validate rules configuration |

Command Examples

Analyze

# Auto-detect and analyze latest trace
render-debugger a

# Analyze specific trace
render-debugger a trace.json

# With custom name and JSON output
render-debugger a trace.json --name "homepage" --json report.json

# Generate HTML report
render-debugger a trace.json --out report.html

Profile

# Basic profile
render-debugger p --url "https://example.com" --scenario scroll-heavy

# With options
render-debugger p \
  --url "https://example.com" \
  --scenario scroll-heavy \
  --profile-duration 30 \
  --fps-target 60 \
  --headless

Compare

# Compare baseline against latest trace
render-debugger c baseline.json

# Compare two specific traces
render-debugger c baseline.json current.json

# Fail CI on high severity regressions
render-debugger c baseline.json --fail-on high --json diff.json

Impact Score Interpretation:

  • 0-40: Minor changes - Small optimizations or negligible regressions
  • 41-70: Moderate impact - Noticeable improvements or concerning regressions
  • 71-100: Major impact - Significant improvements or critical regressions

The impact score uses enterprise-grade weighted scoring:

  • Critical metrics (FPS, dropped frames) weighted 2x
  • Severity-based weighting for regressions (info: 1x, warning: 2x, high: 4x, critical: 8x)
  • Normalized across all detected changes for consistent scoring

Fix

# Preview fixes for latest trace
render-debugger f

# Preview fixes for specific trace
render-debugger f trace.json --dry-run

# Auto-apply with Git
render-debugger f --auto-apply --git-branch perf/fixes

Monitor

# Basic monitoring
render-debugger m --url "https://example.com" --scenario scroll-heavy

# With rolling window and alerts
render-debugger m \
  --url "https://example.com" \
  --scenario scroll-heavy \
  --rolling 60 \
  --alert-cmd "notify-send 'Performance Alert'"

CI/CD Integration

# GitHub Actions
- name: Performance Check
  run: |
    npm install -g render-debugger
    render-debugger init --browser-path /usr/bin/chromium-browser
    render-debugger p --url "$APP_URL" --scenario scroll-heavy --headless
    render-debugger a --json report.json
    render-debugger c baseline.json --fail-on high

Exit Codes

| Code | Description | |------|-------------| | 0 | Success | | 1-9 | General errors | | 10-19 | CDP/Browser errors | | 20-29 | Git/Patch errors | | 30-39 | Trace errors | | 40-49 | Rule errors | | 50-59 | CI threshold exceeded |

Tech Stack

  • Runtime: Node.js 18+
  • Framework: NestJS
  • Language: TypeScript
  • CDP: chrome-remote-interface
  • Testing: Jest

Browser Support

| Browser | Adapter | Method | |---------|---------|--------| | Chrome | CDP | Remote debugging | | Edge | CDP | Remote debugging | | Arc | CDP | Remote debugging | | Safari | WebKit | Swift SDK |

Requirements

  • Node.js 18+
  • npm 9+
  • Chromium-based browser
  • Git (for --auto-apply)

Documentation

License

MIT © Aryan Yadav