Jankless.
A repeatable way to measure jank in your web app.
Available for Playwright Chrome MCP
npm install -D playwright-jankless
- Find out which function made your page janky A check that got worse lists the element, the script and the function, with the file and line number.
- Start measuring with one line of code One line in your fixtures file measures the Playwright tests you already have.
- Let your coding agent fix the jank The MCP server lets an agent measure, change the code, and measure again.
- Get nearly the same result every time On GitHub's runners the results varied by about 2% from run to run.
- Get a comment on the pull request The GitHub Action comments on any pull request that makes your page janky.
This page's own frame rate
60
frames per second. This page is measuring itself on your device.
Jankless measures four things: input to paint, long frames, dropped frames and blank rows.
Find out which function made your page janky
When a check gets worse, Jankless lists the element you clicked, the script that ran and the function inside it, with the file and line number.
In React and Angular the browser only names the framework's event dispatcher, so Jankless uses the CPU profile to name your own handler. It follows your source maps when the build is minified.
"checkout" is less smooth than its baseline:
input-to-paint (p95) 64ms (+48ms, +300%),
slowest: click on button#heavy
Scripts blocking the interaction:
1. onHeavyClick in click.js
(BUTTON#heavy.onclick): ran 60ms,
12.6ms of it blocking,
during click on button#heavy
Start measuring your Playwright tests with one line of code
tests/fixtures.ts
withJankless(base, { auto: true })
- It adds about 0.1s to each test.
- You don't have to change the tests themselves.
- Each test is compared with its recent passing runs on your main branch.
Let your coding agent find the jank and fix it
The MCP server lets a coding agent measure an interaction, change the code, and measure again to check that the change helped. It measures in the Chrome you already have installed.
npm install -D jankless-mcp
claude mcp add --transport stdio \
jankless -- npx jankless-mcp
- The agent measures the click
- It finds the slow function
- It changes the code
- It measures the click again
An example chat with a coding agent
- You: The filters panel is slow to open. Can you make it faster?
- Agent: I'll measure it first so I have a baseline.
-
The agent calls jankless
measure_interactionurl: "http://localhost:5173/products", click "#filters"Recorded a baseline for "click #filters on /products"
-
The agent calls jankless
get_hot_functions"click #filters on /products"onFilterClick in app.js used the most CPU
- Agent: Most of the time was in onFilterClick, so I've changed that. I'll measure the click again.
-
The agent calls jankless
compare_baseline"click #filters on /products" is smoother than its baseline: input-to-paint (p95) 32ms (−64ms, −66.7%), slowest: click on button#filters No clear change: frames on time 96% (+1.2 points) Measured in full mode, CPU slowed 4x, the median of 5 runs. - Agent: The click now paints in 32ms. It took 96ms before my change.
Get nearly the same result every time you run it
-
4x
Jankless slows the CPU 4x while it measures.
-
5
It runs your click or scroll 5 times after a warm-up run, and reports the median.
-
2%
On GitHub's runners the results varied by about 2% from run to run within one CI job.
Get a comment on any pull request that makes your page janky
The GitHub Action compares each pull request with your main branch and comments on the ones that got worse.
It's two steps that go around the step that already runs your Playwright tests.
A check only warns until you set it to enforce: 'fail'.
Watch a slow-motion replay of the jank
In full mode, a check that gets worse comes with a replay of the run at a quarter of real speed. The replay shows the frame rate at each moment and marks the frames where a list was blank.
Here's what else it can do
-
Measure a page without writing a test
The
measurecommand opens a running page and compares the result with the last one recorded.npx jankless measure http://localhost:5173 \ --click "#filters" -
Set your own limits
A budget such as no long frames fails the test when it's missed.
-
Find the right threshold for each check
calibrateruns your suite 5 times on unchanged code and suggests a limit for each check. -
Use it with any framework
The measurements come from the browser. React and Angular are tested.
-
Keep your data on your machine
There's no telemetry, and the engine and the Playwright package have no third-party runtime dependencies.
-
Find out how your page would run at 120Hz
Full mode can predict how the page would run on a 120Hz screen.
-
It only measures in Chromium
In Firefox and WebKit the measurements are skipped.
Use it with Lighthouse and your field data
| Lighthouse | Field data, such as INP | Jankless | |
|---|---|---|---|
| It measures | A page load | Real users on real devices | The clicks, typing and scrolling in your tests |
| It runs | In a lab | In production | In your tests and in CI |
| You find out | When you run it | After the change has shipped | In the pull request that caused it |
Field data still tells you what real users get after a release. Jankless runs before the merge.
Set it up in three steps
-
Install the package
npm install -D playwright-jankless -
Add one line to your fixtures file
withJankless(base, { auto: true }) -
Add the GitHub Action to your workflow
- uses: denodell/jankless/setup@v1 - run: npx playwright test - uses: denodell/jankless/report@v1 if: always()
“You find out that a change made the page janky while you're still working on it, and you fix it then. That's what I mean by Fast by Default.”
1 got worse, 4 within baseline
Scripts blocking the interaction: onFilterClick in app.js (BUTTON#filters.onclick) ran 108ms, 58ms of it blocking, during click on button#filters
An example comment, shortened.