We love the HAR file but it's hard to actually see what the page includes only looking at the file. The PageXray converts a HAR file to a JSON format that is easier to read. We use the format internally in the coach and sitespeed.io. And with PageXray you can use it standalone in your browser.
npm install pagexray -g
Or if you want to prettify the HAR
pagexray --pretty /path/to/my.har
And if you want to get info per request/response:
pagexray --includeAssets /path/to/my.har
If you want to use it in node, use it like this:
let pagexray = require('pagexray');let har = // your HARlet pages = pagexray.convert(har);
Include the latest pagexray.min.js (that you find in the relases) on your page. PageXray is exposed as window.PageXray
const pageXray = windowPageXray;
All sizes are in bytes. Expires and timeSinceLastModified are in seconds.