
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
TMI (Too Many Images)
Discover your image weight on the web. Find out the image weight in your pages, compare to the BigQuery medians and discover what images you can optimize further.
$ npm install -g tmi
Summary:
$ tmi <url>
Examples:


Switch between desktop and mobile strategies:
$ tmi <url> --strategy=mobile

Detailed summary with URLs you can optimize:
$ tmi <url> --verbose

This module is modelled on psi and follows a very similar API.
When using this module for a production-level build process, registering for an API key from the Google Developer Console is recommended.
var tmi = require('tmi');
tmi({
// key: '...', optional
url: 'http://html5rocks.com',
paths: '', // optional
locale: 'en_GB', // optional
strategy: 'mobile', // optional
threshold: 80 // optional
});
Optionally, a callback is also available with access to the response:
tmi(options, function (err, data) {
console.log(data.score);
console.log(data.pageStats);
});
Required
Type: string
URL of the page for which the PageSpeed Insights API should generate results.
Type: string
Default: en_US
The locale that results should be generated in (e.g 'en_GB').
Type: string
Default: desktop
The strategy to use when analyzing the page. Valid values are desktop and mobile.
Type: number
Default: 70
Threshold score that is needed to pass the pagespeed test
Type: array
An array of URL paths that are appended to the URL
Type: string
Default: nokey
Unless Specified defaults to use the free tier on PageSpeed Insights. Good for getting a feel for how well this tool works for you.
You will probably want to globally install tmi if using as a CLI. This can be done as follows:
$ npm install --global tmi
You can then casually use it with or without your key:
$ tmi http://www.google.com
$ tmi http://www.google.com --key 'YOUR_KEY_GOES_HERE'
With or without http:// for URLs:
$ tmi chrome.com
Or ask for a more detailed report including image URLs that can be optimized:
$ tmi http://www.google.com --verbose
Similar to gpagespeed, the following optional flags are also supported:
$ tmi <url> --key=<key> --prettyprint=<true> --userIp=<userIp> --locale=<locale> --strategy=<desktop|mobile>
$ tmi http://www.html5rocks.com --strategy=mobile
We plan on adding support for testing localhost and local files in the very near future. Until then, ngrok should be able to help get you mostly there.
Apache 2.
FAQs
Discover your image weight on the web
The npm package tmi receives a total of 91 weekly downloads. As such, tmi popularity was classified as not popular.
We found that tmi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.