
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
page-weight
Advanced tools
🏋 Measure page weight with puppeteer
npm i -g page-weight
page-weight --device 'iPhone X' https://www.google.com
{
"url": "https://www.google.com",
"summary": {
"Document": {
"firstParty": "41.1 kB",
"thirdParty": "0 B",
"total": "41.1 kB"
},
"Image": {
"firstParty": "93.9 kB",
"thirdParty": "3.7 kB",
"total": "97.6 kB"
},
...
}
<url> (anywhere in the arguments list)-d <deviceName> --device <deviceName> device to emulate (See complete device list here)-f <domain1,domain2> --firstPartyDomains <domain1,domain2> specify additional firstparty domains (by default only the tested URL secondary domain is considered firstparty e.g. www.google.com -> google.com)-v output all requests and device data-vv output raw network events, all requests and device data<script>, <style> maybe even <svg>) somehowisLinkPreload field)This module just focuses on page weight and not the ordering or timing of resources therefore avoids any complexity around these.
Especially when using CDP Network events with puppeteer there are some known ordering/timing issues that make it tricky to build HAR files with puppeteer.
To confirm the chrome-har module works perfectly fine with a trace log directly from Chrome and this seems to be limited to how puppeteer is set up.
FAQs
Measure page weight with puppeteer
The npm package page-weight receives a total of 18 weekly downloads. As such, page-weight popularity was classified as not popular.
We found that page-weight demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.