{"id":20252981,"url":"https://github.com/torus-tools/seo_fix","last_synced_at":"2026-05-10T07:39:34.078Z","repository":{"id":49624708,"uuid":"208549368","full_name":"torus-tools/seo_fix","owner":"torus-tools","description":"Use the power of webpack to minify/compress all your static assets.","archived":false,"fork":false,"pushed_at":"2022-12-30T20:40:43.000Z","size":17353,"stargazers_count":2,"open_issues_count":33,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T03:53:15.339Z","etag":null,"topics":["compression","css","html","javascript","minification","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torus-tools.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":"2019-09-15T05:59:11.000Z","updated_at":"2021-06-08T18:51:36.000Z","dependencies_parsed_at":"2023-01-31T16:16:05.088Z","dependency_job_id":null,"html_url":"https://github.com/torus-tools/seo_fix","commit_stats":null,"previous_names":["gkpty/torus-cms-build-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/torus-tools/seo_fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torus-tools%2Fseo_fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torus-tools%2Fseo_fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torus-tools%2Fseo_fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torus-tools%2Fseo_fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torus-tools","download_url":"https://codeload.github.com/torus-tools/seo_fix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torus-tools%2Fseo_fix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281925795,"owners_count":26584821,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compression","css","html","javascript","minification","webpack"],"created_at":"2024-11-14T10:20:30.839Z","updated_at":"2025-10-31T03:53:17.104Z","avatar_url":"https://github.com/torus-tools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/arjan-tools/site/blob/master/img/arjan_optimize_logo.svg\" alt=\"Arjan Localize\" width=\"200\" style=\"max-width:100%;\"\u003e\n\n[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://gkpty.mit-license.org)\n[![Build Status](https://travis-ci.com/arjan-tools/optimize.svg?branch=master)](https://travis-ci.com/arjan-tools/optimize)\n\n# Arjan Optimize\n\n\n## Intro\n\nArjan Optimize helps you optimize all of your static assets with a single command. It takes into account several of the modern web dev directives and uses some of the most popular node modules for minification/compression of assets with a couple of neat features of its own. For more info read the [docs](https://arjan.tools/docs)\n\n\n## How it works\n\nArjan optimize scans your current directory recursively and for each file with a different module depending on the files MIME type. Arjan Optimize uses:\n\n- [Terser](https://github.com/terser/terser)\n- [csso](https://github.com/css/csso)\n- [html-minifier](https://github.com/kangax/html-minifier)\n- [Sharp](https://github.com/lovell/sharp)\n- [svgo](https://github.com/svg/svgo)\n## Formats supported\n| **Input** | **Module used** | **Output** | **options**                                                        | **reason used**                                                                                                                                               |\n| --------- | --------------- | ---------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| html      | html-minifier   | html       | options                                                            | [best compression](https://www.npmjs.com/package/html-minifier#minification-comparison)                                                                       |\n| css       | csso            | css        | [options](https://www.npmjs.com/package/csso#minifysource-options) | [best](http://goalsmashers.github.io/css-minification-benchmark/) overall size+[speed+compression](http://goalsmashers.github.io/css-minification-benchmark/) |\n| js        | terser          | js         | Parse, Compress, Mangle                                            | support for [ES6](http://www.ecma-international.org/ecma-262/6.0/), best speed \u0026 compression                                                                  |\n| svg       | svgo            | svg        | [options](https://www.npmjs.com/package/svgo#what-it-can-do)       | most widely used open source option                                                                                                                           |\n| jpeg      | sharp           | jpeg       | options                                                            | [fastest option](https://sharp.pixelplumbing.com/performance#results)                                                                                         |\n| png       | sharp           | png        | options                                                            | fastest option                                                                                                                                                |\n| webp      | sharp           | webp       | options                                                            | fastest option                                                                                                                                                |\n| gif       | sharp           | png        | options                                                            | fastest option                                                                                                                                                |\n| tiff      | sharp           | tiff       | options                                                            | fastest option                                                                                                                                                |\n\n## Webp Images\n\nThe webp option in Arjan Optimize does 2 things:\n\n1. converts all your images to webp using sharp and saves them (without overwritting images in original format)\n2. In the HTML files, it replaces each img tag with a picture tag that holds both its original compressed version and its webp version.\n\n Because webp is a relatively new format, it [is not supported by all browsers](https://caniuse.com/#feat=webp). The picture tag is a solution that allows unsupported browsers to fall back to the original version of the image. [This article](https://web.dev/serve-images-webp/) goes more in depth on webp and the picture tag. \n \n suppose we have the following image tag:\n\n    \u003cimg src=\"img/arjan-logo.png\" class=\"img-fluid\"\u003e\n\nthis will be replaced by:\n\n    \u003cpicture\u003e\n      \u003csource type=\"image/webp\" srcset=\"img/arjan-logo.png\"\u003e\n      \u003csource type=\"image/png\" srcset=\"img/arjan-logo.png\"\u003e\n      \u003cimg src=\"img/arjan-logo.png\" class=\"img-fluid\"\u003e\n    \u003c/picture\u003e\n      \n## CLI command\n\narjan optimize SITENAME [FILENAME] --img --webp --responsive --html --css --rcss --js\n\n\n\n    USAGE\n      $ arjan optimize [FILENAME]\n    \n    ARGUMENTS\n      FILENAME  name of the file i.e. index.html\n    \n    OPTIONS\n      -c, --css     minifiy css using cssnano\n      -h, --html    compress html using html-minifier\n      -i, --images  compress images and if possible maintain the format, otherwise its converted to png.\n      -j, --js      minify js using uglify js\n    \n      -w, --webp    saves a webp version of each image, then replaces each image instance in the html files with a picture tag.\n      \n  \n ## Programmatic usage\n\n### For more info read the [docs](https://arjan.tools/docs) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorus-tools%2Fseo_fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorus-tools%2Fseo_fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorus-tools%2Fseo_fix/lists"}