Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

WebPerf Snippets

Latest version: v1.20.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
MCP server Transport: stdio Publisher: nucliweb
1,458 Stars
92 Forks
21 Versions
JavaScript Repo language

Scan summary

WebPerf Snippets was last scanned on 26 Nov 2026 at version 1.20.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 21 versions; the latest was published on 26 Nov 2026.
  • Findings: No rules fired in version 1.20.0.
  • MCP server: Runs over stdio.

Versions

21 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.20.0 LATEST 26 Nov 2026 No rules fired
1.19.0 19 Nov 2026 No rules fired
1.18.0 18 Nov 2026 No rules fired
1.17.0 15 Nov 2026 Not shown
1.16.0 14 Nov 2026 Not shown

No rules fired in 1.20.0

Findings

Findings for v1.20.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.20.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

WebPerf Snippets

Tested JavaScript snippets that measure and debug web performance. Your AI agent runs them for you, or you run them yourself in DevTools: the same code every time.

CI Release Snippets License Star History

WebPerf Snippets

AI agents are good at interpreting performance data and unreliable when they write measurement code on the fly. WebPerf Snippets keeps both apart: the measurement is fixed code, tested in CI, that returns structured data, and the agent reasons about the result. The same snippets run in the console, the CLI, the DevTools extension and the Agent Skills, and every one returns an object that follows a single contract (snippets/SCHEMA.md).

→ Why AI audits need deterministic scripts

Run them with an AI agent

You want to Use
Audit a URL with any agent that has a terminal The Copy prompt to measure button on each snippet page
Give an agent the snippets as tools The MCP server
Let the agent drive your Chrome (login, interactions) The Agent Skills with Chrome DevTools MCP
Run snippets from scripts or CI The CLI
Give an agent the whole documentation llms.txt (details)

Not sure which snippet to run? Start from the symptom in Which snippet should I use?

Copy prompt to measure

Snippet pages have a Copy prompt to measure button above the code. It copies a prompt that asks any AI agent with a terminal to run that snippet with the CLI on the URL you give it, and to report the value, the cause and the issues. The agent runs the published snippet instead of rewriting it or estimating the result.

MCP server

The CLI includes an MCP server: an agent in any MCP client (Claude Code, Cursor, VS Code, Gemini CLI) calls the snippets and the workflows as tools, on a headless Chromium, and reads the object each one returns. It is listed in the MCP Registry as io.github.nucliweb/webperf-snippets.

claude mcp add webperf -- npx -y webperf-snippets mcp

In Claude Code, the webperf plugin installs the same server:

/plugin install webperf --marketplace nucliweb/webperf-snippets

See the MCP server documentation for other clients, the tools, the resources and prompts, and the CrUX key.

Agent skills

The snippets are packaged as Agent Skills for Claude Code, Cursor, OpenCode, Gemini CLI, VS Code extensions and other compatible agents. With Chrome DevTools MCP, the agent runs the snippets in your browser and reads the object they return.

npx skills add nucliweb/webperf-snippets

This installs the skills from the GitHub repository into ~/.claude/skills/. To install them from a clone instead:

git clone https://github.com/nucliweb/webperf-snippets.git
cd webperf-snippets
npm run install-skills   # into .claude/skills/ of the current project
npm run install-global   # into ~/.claude/skills/, for every project

The skills pass each script to Chrome DevTools MCP by path, and the server only reads files inside its workspace roots. For skills outside the project, such as in ~/.claude/skills/, add --workspace to the arguments of the server, with the real folder of the skills and not a symlink to it:

"args": ["-y", "chrome-devtools-mcp@latest", "--workspace=/absolute/path/to/skills"]

Without it the skills still work: the server answers Access denied and the agent sends the code of the script instead, at the cost of one failed call in each session.

Skill Snippets What it covers
webperf 57 Main entry point for all web performance analysis
webperf-core-web-vitals 7 LCP, CLS, INP measurements with detailed breakdowns
webperf-loading 35 TTFB, FCP, script and font analysis, resource hints, service workers
webperf-interaction 10 Long tasks, animation frames, scroll jank, INP debugging
webperf-media 4 Image and video audits, lazy loading validation, SVG analysis
webperf-resources 1 Network bandwidth, connection quality, adaptive loading

The skills include workflows (predefined sequences, such as a complete loading audit or a font loading investigation) and decision trees that pick the next snippet from the result of the previous one: when TTFB is above 600 ms, the agent runs TTFB-Sub-Parts to find whether the time goes to DNS, the connection or the server.

User: "Analyze loading performance"

Agent:
1. Runs TTFB.js → 1.9 s (poor)
2. Follows the decision tree → runs TTFB-Sub-Parts.js
3. Finds that the server response takes most of the time
4. Runs Service-Worker-Analysis.js
5. Reports the findings with specific fixes

Skills activate when the request matches them:

Audit this page for Core Web Vitals
Debug slow LCP
Why is my TTFB so high?
Check for image optimization issues

See SKILLS.md for every skill, its workflows and its triggers.

→ Read more about WebPerf Agent Skills

CLI

The CLI runs the same snippets headlessly with Playwright. It diagnoses LCP regressions in CI, gates pull requests on performance budgets and automates the audits you run by hand. The --json output is what an agent or a script reads.

npx webperf-snippets https://example.com --json
npx webperf-snippets https://example.com --snippet LCP-Subparts
npx webperf-snippets https://example.com --workflow audit
npx webperf-snippets https://example.com --budget-lcp 2500 --budget-cls 0.1

The core-web-vitals, audit, loading and interaction workflows chain several snippets in one run. A composite GitHub Action (nucliweb/webperf-snippets/.github/actions/webperf-snippets) wraps the CLI for CI, with budgets and a Markdown output ready to post as a pull request comment.

The CLI is published to npm as webperf-snippets. See the CLI documentation and cli/README.md for installation, usage and CI integration.

Run them in your browser

Every snippet also runs by hand in the DevTools console, with the same code the agents use. All snippets are tested in Google Chrome; most also work in other Chromium-based browsers and in Firefox, and Safari has limited Performance API support. Each snippet page shows the browser support of the APIs it needs.

Run in the console
  1. Copy any snippet from webperf-snippets.net
  2. Open DevTools (F12 or Cmd+Option+I / Ctrl+Shift+I)
  3. Go to the Console tab
  4. Paste and press Enter
Save as a DevTools snippet
  1. Open DevTools → Sources tab → Snippets panel
  2. Click + New snippet
  3. Name it (e.g., "LCP")
  4. Paste the code
  5. Right-click → Run (or Cmd+Enter / Ctrl+Enter)
DevTools extension (beta)

A DevTools panel runs the snippets on the inspected page without pasting them, shows their results, and audits the page with the checks of the CLI. It installs from a zip while it is in beta.

→ DevTools extension

Video tutorial

https://github.com/nucliweb/webperf-snippets/assets/1307927/2987a2ca-3eef-4b73-8f6b-7b1e06b50040

What you can measure

Category Snippets What it includes
Core Web Vitals 7 LCP, CLS and INP, with LCP sub-parts, trail, image entropy and video candidate
Loading 34 TTFB, FCP, render-blocking resources, resource and priority hints, scripts, fonts, CSS, caching, compression, back/forward cache
Interaction 10 Long animation frames with script attribution, interactions, input latency, long tasks, layout shifts, forced layout, scroll performance, DOM size
Media 4 Image and video element audits, oversized images, SVG with embedded bitmaps
Resources 1 Network bandwidth and connection quality
DevTools Overrides 2 Fetch and XHR timeline, injected with a local override before the page scripts

Documentation for agents

  • llms.txt: an index of every page, with a short description of each snippet.
  • llms-full.txt: the documentation and the code of every snippet in one file.
  • Every page has a Markdown version at the same URL with .md (for example, /CoreWebVitals/LCP.md).

Contributing

Contributions are welcome. CONTRIBUTING.md explains how to add or change a snippet, its tests and its documentation page.

Resources

Star History

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.nucliweb/webperf-snippets

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229