{"id":16648482,"url":"https://github.com/appliedsoul/headless-screenshot","last_synced_at":"2026-04-21T17:37:14.041Z","repository":{"id":57262104,"uuid":"145778409","full_name":"AppliedSoul/headless-screenshot","owner":"AppliedSoul","description":"High-level library for taking screenshot of websites based on headless chrome (puppeteer)","archived":false,"fork":false,"pushed_at":"2020-06-02T09:07:09.000Z","size":35,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T15:48:06.750Z","etag":null,"topics":["crawler","headless-chromium","javascript","nodejs","scrapper","screenshot","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AppliedSoul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-23T00:32:52.000Z","updated_at":"2020-01-01T08:30:28.000Z","dependencies_parsed_at":"2022-08-25T06:10:59.638Z","dependency_job_id":null,"html_url":"https://github.com/AppliedSoul/headless-screenshot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Fheadless-screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Fheadless-screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Fheadless-screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Fheadless-screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppliedSoul","download_url":"https://codeload.github.com/AppliedSoul/headless-screenshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243204946,"owners_count":20253418,"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":["crawler","headless-chromium","javascript","nodejs","scrapper","screenshot","testing"],"created_at":"2024-10-12T09:04:28.338Z","updated_at":"2025-12-11T17:04:15.800Z","avatar_url":"https://github.com/AppliedSoul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# headless-screenshot\n\n[![npm package](https://nodei.co/npm/headless-screenshot.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/headless-screenshot/)\u003c/br\u003e\n\n[![Build Status](https://travis-ci.org/AppliedSoul/headless-screenshot.svg?branch=master)](https://travis-ci.org/AppliedSoul/headless-screenshot) [![Coverage Status](https://coveralls.io/repos/github/AppliedSoul/headless-screenshot/badge.svg?branch=master)](https://coveralls.io/github/AppliedSoul/crawlmatic?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/AppliedSoul/headless-screenshot.svg)](https://greenkeeper.io/)\n\nheadless-screenshot is a high-level on top of headless embedded chromium browser (puppeteer). It provides safe \u0026 easy to use interface for taking screenshot of websites.\n\nBuilt with :heart:\n\n## Install\n\nheadless-screenshot depends on puppeteer, ensure its installed globally or locally before using this library.\n\n```\nnpm i puppeteer headless-screenshot\n```\n\nUsage:\n\n```javascript\nconst HeadShot = require('headless-screenshot');\nconst Promise = require('bluebird');\nconst writeFile = Promise.promisify(require('fs').writeFile);\n\nlet hc = new HeadShot() // browser instance\nhc.setup() // launches embedded chromium instance\n  .then(() =\u003e\n    hc.getScreenshot('https://example.com')\n    .then( res =\u003e {\n      console.log(`resolvedUrl: ${res.resolvedUrl}, originalUrl: ${res.url}, isReachable: ${res.isReachable}`);\n        writeFile('./example.png',res.data).then(() =\u003e console.log('file is written'));\n    }).finally(() =\u003e hc.destroy())\n```\n\nFor reference look at test cases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappliedsoul%2Fheadless-screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappliedsoul%2Fheadless-screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappliedsoul%2Fheadless-screenshot/lists"}