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

find-bottleneck-perf

v1.0.0

Published

CLI tool that analyzes web performance and tells you who to blame: Frontend, Backend, or Infrastructure

Readme

find-bottleneck-perf 🔍

One command. One answer. Who's slowing down your website—Frontend, Backend, or Infrastructure?

npx find-bottleneck-perf https://your-website.com

Node.js License npm


Why?

You've got a slow website. Lighthouse gives you 47 metrics. DevTools shows 200 network requests. Your PM asks: "Is it the frontend team or the backend team?"

find-bottleneck-perf answers that question in seconds.


Install

# Run directly (no install)
npx find-bottleneck-perf https://example.com

# Or install globally
npm install -g find-bottleneck-perf
find-bottleneck https://example.com

Usage

# Basic analysis
find-bottleneck https://example.com

# Simulate slow network (Slow 3G, Fast 3G, 4G, WiFi)
find-bottleneck https://example.com --network slow-3g

# Export full report to JSON
find-bottleneck https://example.com --export report.json

# Combine options
find-bottleneck https://example.com --network fast-3g --export report.json

What You Get

════════════════════════════════════════════════════════════
  FIND-BOTTLENECK  │  Performance Analysis Report
════════════════════════════════════════════════════════════

┌─ THE VERDICT
│
│  🖥️  Primary Bottleneck: FRONTEND
│
│  Scores: Frontend=19  Backend=5  Infra=2
└───────────────────────────────────────────────────────────

┌─ EVIDENCE
│
│  [Frontend]
│    ▸ Massive JS bundle (5.66 MB). Implement code splitting.
│    ▸ 35 render-blocking resources. Use async/defer.
└───────────────────────────────────────────────────────────

┌─ RECOMMENDATIONS
│
│  👉 Implement code splitting (dynamic imports) and tree shaking.
│  👉 Profile JavaScript with Chrome DevTools Performance tab.
└───────────────────────────────────────────────────────────

Verdicts Explained

| Verdict | What It Means | Typical Causes | |---------|---------------|----------------| | Frontend | Browser is struggling | Large JS bundles, render-blocking resources, heavy images | | Backend | Server is slow | Slow APIs, database queries, missing caching | | Infra | Network is the problem | High latency, slow DNS, distant servers | | Mixed | Multiple issues | Problems in more than one area | | Optimized | You're good! | No significant issues detected |


Metrics Collected

| Category | Metrics | |----------|---------| | Navigation | DNS, TCP, TLS, TTFB, Server Processing | | Web Vitals | FCP, LCP, Total Blocking Time | | Resources | JS/CSS/Image sizes, Render-blocking count | | APIs | Request count, Avg/Max latency, Failed requests |


Network Throttling

Test how your site performs on real-world connections:

find-bottleneck https://example.com --network slow-3g

| Preset | Speed | Latency | Use Case | |--------|-------|---------|----------| | slow-3g | 500 Kbps | 400ms | Worst-case mobile | | fast-3g | 1.6 Mbps | 150ms | Typical mobile | | 4g | 4 Mbps | 20ms | Good mobile | | wifi | 30 Mbps | 2ms | Office/Home WiFi |


JSON Export

find-bottleneck https://example.com --export report.json
{
  "url": "https://example.com",
  "verdict": {
    "primary": "Frontend",
    "scores": { "Frontend": 15, "Backend": 5, "Infra": 2 }
  },
  "metrics": { ... },
  "evidence": [
    { "category": "Frontend", "message": "Massive JS bundle (5.15 MB)..." }
  ],
  "recommendations": [
    "Implement code splitting...",
    "Profile database queries..."
  ]
}

How It Works

  1. Launches headless Chrome via Puppeteer
  2. Intercepts all network requests (APIs, JS, CSS, images)
  3. Extracts Navigation Timing API and PerformanceObserver data
  4. Applies weighted heuristics to score Frontend/Backend/Infra
  5. Generates evidence-based recommendations

Requirements

  • Node.js 18+
  • ~400MB disk space (for Chromium, installed automatically)

License

ISC © Karthik Sake