{"id":17726513,"url":"https://github.com/anttiromppanen/viewsnap","last_synced_at":"2026-02-27T17:40:35.868Z","repository":{"id":259061890,"uuid":"875542911","full_name":"anttiromppanen/viewsnap","owner":"anttiromppanen","description":"Creates a collection of snapshots of a webpage for various viewport dimensions.","archived":false,"fork":false,"pushed_at":"2024-10-26T06:25:43.000Z","size":1092,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T01:19:01.972Z","etag":null,"topics":["css","frontend","frontend-web","html","javascript","playwright","responsive","responsive-design","responsive-web-design","web","web-development"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/viewsnap","language":"TypeScript","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/anttiromppanen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2024-10-20T09:08:24.000Z","updated_at":"2025-01-14T18:58:17.000Z","dependencies_parsed_at":"2024-10-25T21:18:03.878Z","dependency_job_id":"a792ba30-c861-4cba-8a67-445d82518470","html_url":"https://github.com/anttiromppanen/viewsnap","commit_stats":null,"previous_names":["anttiromppanen/viewsnap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/anttiromppanen/viewsnap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anttiromppanen%2Fviewsnap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anttiromppanen%2Fviewsnap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anttiromppanen%2Fviewsnap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anttiromppanen%2Fviewsnap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anttiromppanen","download_url":"https://codeload.github.com/anttiromppanen/viewsnap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anttiromppanen%2Fviewsnap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29906536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T17:28:36.873Z","status":"ssl_error","status_checked_at":"2026-02-27T17:28:20.970Z","response_time":57,"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":["css","frontend","frontend-web","html","javascript","playwright","responsive","responsive-design","responsive-web-design","web","web-development"],"created_at":"2024-10-25T17:05:35.418Z","updated_at":"2026-02-27T17:40:35.829Z","avatar_url":"https://github.com/anttiromppanen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Viewsnap\n\n![Viewsnap logo](https://github.com/anttiromppanen/viewsnap/blob/main/public/logo.png)\n\nA Node.js CLI tool that captures responsive snapshots of a website, generating images for multiple viewport sizes. This allows developers to quickly test and visualize how their web pages appear across different devices and browsers, from mobile to desktop, streamlining the process of ensuring a responsive design.\n\n\u003e **_NOTE:_** Animations on a website may produce various different results on the images.\n\n## Usage\n\n**Option 1:** Use directly with npx\n```javascript\nnpx viewsnap generate \u003curl\u003e\n```\n\n**Option 2:**\nInstall viewsnap package globally\n```javascript\nnpm install -g viewsnap\n```\n```javascript\nviewsnap generate \u003curl\u003e\n```\n\n**Option 3:** install to project scope, and add the command to PATH variable\n```javascript\nnpm install viewsnap --save-dev\n```\nAdd the viewsnap command to PATH variable:\n```javascript\nexport PATH=$PATH:$(npm bin -g)\n```\n```javascript\nviewsnap generate \u003curl\u003e\n```\n\n*Snapshots* and an overview page *snapshots.html* are stored in .viewsnap directory.\n\n## Commands\n\n### `generate` Command\n\nThe generate command takes snapshots of a website URL given as a parameter. Snapshots are taken with multiple viewport sizes covering the most common device viewports from desktop, tablet, and mobile devices. Viewport snapshots are taken with three different headless browsers (Chrome, Firefox, WebKit).\n\n**Syntax:**\n\n```javascript\nviewsnap generate \u003curl\u003e [options]\n```\n\n**URL**\n* URL for a website, can be local or web-hosted\n\n**Options**\n* -f, --full-height, option sets the viewport height for full height of the page.\n\n**Example output:**\n\n```\nnpm viewsnap generate http://localhost:5137\n```\n\n![snapshots.html preview](https://github.com/anttiromppanen/viewsnap/blob/main/public/generate1.png)\n\n*snapshots.html:*\n\n\n![snapshots.html preview](https://github.com/anttiromppanen/viewsnap/blob/main/public/generate2.png)\n\n## Contributing\nAll contributions are welcome, please read [how to contribute](CONTRIBUTING.md) first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanttiromppanen%2Fviewsnap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanttiromppanen%2Fviewsnap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanttiromppanen%2Fviewsnap/lists"}