{"id":17909014,"url":"https://github.com/jpbede/ratiocheck","last_synced_at":"2026-02-12T19:33:47.224Z","repository":{"id":50314332,"uuid":"518743670","full_name":"jpbede/ratiocheck","owner":"jpbede","description":"Microservice to check image to content ratio of HTML pages","archived":false,"fork":false,"pushed_at":"2026-02-05T12:31:34.000Z","size":189,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-05T23:54:56.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/jpbede.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["jpbede"]}},"created_at":"2022-07-28T07:24:15.000Z","updated_at":"2026-01-19T06:36:38.000Z","dependencies_parsed_at":"2025-12-29T20:00:59.233Z","dependency_job_id":null,"html_url":"https://github.com/jpbede/ratiocheck","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jpbede/ratiocheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbede%2Fratiocheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbede%2Fratiocheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbede%2Fratiocheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbede%2Fratiocheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpbede","download_url":"https://codeload.github.com/jpbede/ratiocheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbede%2Fratiocheck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29378819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T19:05:20.189Z","status":"ssl_error","status_checked_at":"2026-02-12T19:01:44.216Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-28T19:19:37.427Z","updated_at":"2026-02-12T19:33:47.199Z","avatar_url":"https://github.com/jpbede.png","language":"Go","funding_links":["https://github.com/sponsors/jpbede"],"categories":[],"sub_categories":[],"readme":"# ratiocheck\nMicroservice to check image to content ratio of HTML pages\n\n## Requirements\nWhen running outside the docker container a Chrome installation is required. \n\n## Installing\n\n### Binaries\nYou find pre-compiled binaries and packages for the most common OS under the [releases](https://github.com/jpbede/ratiocheck/releases).\n\n### Docker\n```shell\ndocker run -p 3000:3000 ghcr.io/jpbede/ratiocheck:latest\n```\n\nor via `docker-compose.yml`\n\n```yaml\nversion: \"3\"\nservices:\n  ratiocheck:\n    image: ghcr.io/jpbede/ratiocheck:latest\n    ports:\n      - 3000:3000\n```\n\n### macOS\nSimply use `homebrew` (https://brew.sh/)\n\nTo install `ratiocheck` use following command `brew install jpbede/tap/ratiocheck`\n\n## Using it\n### Shell\n\nYou can run a check by issuing following command:\n\n```shell\nratiocheck check \u003curl to check\u003e\n```\n\n### REST API\n\n#### HTML\nDo an HTTP POST call to `/html` endpoint with following JSON body:\n\n```json\n{\n  \"html\": \"\u003cyour html\u003e\"\n}\n```\n\nAs a result you will get the ratio image area to content area, the size of the content area and the size of the image area:\n\n```json\n{\n  \"content_area\": 1591200,\n  \"image_area\": 948332,\n  \"ratio\": 59.598541980894915\n}\n```\n\n#### URL\nDo an HTTP POST call to `/url` endpoint with following JSON body:\n\n```json\n{\n  \"url\": \"\u003cyour url\u003e\"\n}\n```\n\nAs a result you will get the ratio image area to content area, the size of the content area and the size of the image area:\n\n```json\n{\n  \"content_area\": 1591200,\n  \"image_area\": 948332,\n  \"ratio\": 59.598541980894915\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbede%2Fratiocheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpbede%2Fratiocheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbede%2Fratiocheck/lists"}