MCPcopy Index your code
hub / github.com/addyosmani/tmi

github.com/addyosmani/tmi @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
7 symbols 11 edges 3 files 2 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tmi - too many images Build Status

Discover your image weight on the web

Find out the image weight in your pages, compare to the BigQuery quantiles and discover what images you can optimize further.

Install

$ npm install --global tmi

Usage

$ tmi --help

  Usage
    $ tmi <url> [options]

  Options
    --verbose    Detailed summary
    --key        Google API Key. By default the free tier is used
    --strategy   Strategy to use when analyzing the page: mobile|desktop
    --locale     Locale results should be generated in
    --threshold  Threshold score to pass the PageSpeed test

  Example
    $ tmi todomvc.com --strategy=desktop

Verbose mode

Verbose mode will show you a detailed summary of which images needs improving.

Good test URLs

Local testing

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.

API

See psi if you need a programmatic API for PageSpeed Insights.

License

Apache-2.0 Copyright 2015 Google Inc

Core symbols most depended-on inside this repo

compareWeights
called by 2
index.js
process
called by 2
index.js
compareWeightPercentile
called by 1
index.js
constructor
called by 0
index.js
getHighestPercentile
called by 0
index.js

Shape

Method 5
Class 2

Languages

TypeScript100%

Modules by API surface

index.js7 symbols

For agents

$ claude mcp add tmi \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page