{"id":13426721,"url":"https://github.com/addyosmani/tmi","last_synced_at":"2025-05-15T13:07:12.980Z","repository":{"id":22671129,"uuid":"26014537","full_name":"addyosmani/tmi","owner":"addyosmani","description":"TMI (Too Many Images) - discover your image weight on the web","archived":false,"fork":false,"pushed_at":"2017-02-14T07:36:56.000Z","size":267,"stargazers_count":1631,"open_issues_count":6,"forks_count":44,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-05-14T03:21:09.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/addyosmani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-31T12:01:59.000Z","updated_at":"2025-03-17T14:44:44.000Z","dependencies_parsed_at":"2022-08-21T10:31:27.388Z","dependency_job_id":null,"html_url":"https://github.com/addyosmani/tmi","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addyosmani%2Ftmi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addyosmani%2Ftmi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addyosmani%2Ftmi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addyosmani%2Ftmi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/addyosmani","download_url":"https://codeload.github.com/addyosmani/tmi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T00:01:42.629Z","updated_at":"2025-05-15T13:07:07.958Z","avatar_url":"https://github.com/addyosmani.png","language":"JavaScript","readme":"# tmi - too many images [![Build Status](https://travis-ci.org/addyosmani/tmi.svg?branch=master)](https://travis-ci.org/addyosmani/tmi)\n\n\u003e Discover your image weight on the web\n\n\u003cimg src=\"screenshot.png\" width=\"547\"\u003e\n\nFind out the image weight in your pages, compare to the BigQuery quantiles and discover what images you can optimize further.\n\n\n## Install\n\n```\n$ npm install --global tmi\n```\n\n\n## Usage\n\n```\n$ tmi --help\n\n  Usage\n    $ tmi \u003curl\u003e [options]\n\n  Options\n    --verbose    Detailed summary\n    --key        Google API Key. By default the free tier is used\n    --strategy   Strategy to use when analyzing the page: mobile|desktop\n    --locale     Locale results should be generated in\n    --threshold  Threshold score to pass the PageSpeed test\n\n  Example\n    $ tmi todomvc.com --strategy=desktop\n```\n\n\n## Verbose mode\n\nVerbose mode will show you a detailed summary of which images needs improving.\n\n\u003cimg src=\"screenshot-verbose.png\" width=\"756\"\u003e\n\n\n## Good test URLs\n\n* [LG Watch](http://www.lg.com/us/smart-watches)\n* [MySpace homepage](http://myspace.com)\n* [Mercedes Benz](https://www.mercedes-benz.com/)\n* [Apple iMac](http://www.apple.com/imac/)\n* [Cyclemon](http://www.cyclemon.com/)\n\n\n## Local testing\n\nWe plan on adding support for testing localhost and local files in the very near future. Until then, [ngrok](https://ngrok.com/) should be able to help get you mostly there.\n\n\n## API\n\nSee [`psi`](https://github.com/addyosmani/psi) if you need a programmatic API for PageSpeed Insights.\n\n\n## License\n\nApache-2.0\nCopyright 2015 Google Inc\n","funding_links":[],"categories":["JavaScript","Web 后端","Miscellaneous"],"sub_categories":["Meetups"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddyosmani%2Ftmi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddyosmani%2Ftmi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddyosmani%2Ftmi/lists"}