{"id":20138134,"url":"https://github.com/innoq/hotshot","last_synced_at":"2025-04-09T18:06:48.688Z","repository":{"id":30607754,"uuid":"125514438","full_name":"innoq/hotshot","owner":"innoq","description":"Takes screenshots of DOM elements","archived":false,"fork":false,"pushed_at":"2023-02-04T07:10:38.000Z","size":528,"stargazers_count":19,"open_issues_count":4,"forks_count":10,"subscribers_count":66,"default_branch":"main","last_synced_at":"2025-03-23T20:04:13.487Z","etag":null,"topics":["chrome","docker","dom","html","puppeteer"],"latest_commit_sha":null,"homepage":null,"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/innoq.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":"2018-03-16T12:37:33.000Z","updated_at":"2022-02-21T16:00:56.000Z","dependencies_parsed_at":"2023-02-10T14:30:27.144Z","dependency_job_id":null,"html_url":"https://github.com/innoq/hotshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innoq%2Fhotshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innoq%2Fhotshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innoq%2Fhotshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innoq%2Fhotshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innoq","download_url":"https://codeload.github.com/innoq/hotshot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248084299,"owners_count":21045124,"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":["chrome","docker","dom","html","puppeteer"],"created_at":"2024-11-13T21:34:38.831Z","updated_at":"2025-04-09T18:06:48.654Z","avatar_url":"https://github.com/innoq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotshot\n\nTakes screenshots of DOM elements, like Jake Gyllenhaal 📸\n\nCheck out the [blog post](https://www.innoq.com/en/blog/screenshot-dom-elements-puppeteer/).\n\n## Start (without Docker)\n\nMake sure you've got a current node and yarn installed. Then:\n\n    $ yarn install\n    $ TARGET_HOST=\"https://www.innoq.com\" yarn start\n\n## Start (with Docker)\n\nBuild image:\n\n    $ docker build -t innoq/hotshot .\n\nStart server:\n\n    $ docker run --init -p 5000:5000 -e PORT=5000 -e TARGET_HOST='https://www.innoq.com' innoq/hotshot\n\n## Request a screenshot\n\n    $ curl -G \"http://localhost:5000/shoot?path=/relative/path\u0026selector=.my-css-class\" \u003e screenshot.jpeg\n\n## Content negotiation\n\nHotshot can serve webp images if requested in the `Accept` header. Example:\n\n    $ curl -G -H \"accept: image/webp\" \"http://localhost:5000/shoot?path=/relative/path\u0026selector=.my-css-class\" \u003e screenshot.webp\n\nPlease note: any Accept header values not directly specifying webp support (e. g. `*/*`) automatically get served jpeg.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnoq%2Fhotshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnoq%2Fhotshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnoq%2Fhotshot/lists"}