{"id":17597852,"url":"https://github.com/cvan/firesnaggle","last_synced_at":"2025-03-29T20:27:47.491Z","repository":{"id":12580578,"uuid":"15251245","full_name":"cvan/firesnaggle","owner":"cvan","description":"a REST-ful API for generating a screenshot from a URL in Firefox (using slimerjs)","archived":false,"fork":false,"pushed_at":"2014-03-12T18:57:27.000Z","size":865,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T18:05:00.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"qqq3/good-weather","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cvan.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":"2013-12-17T10:14:07.000Z","updated_at":"2014-10-09T19:15:28.000Z","dependencies_parsed_at":"2022-09-26T16:20:14.125Z","dependency_job_id":null,"html_url":"https://github.com/cvan/firesnaggle","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/cvan%2Ffiresnaggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ffiresnaggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ffiresnaggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ffiresnaggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvan","download_url":"https://codeload.github.com/cvan/firesnaggle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246240485,"owners_count":20745878,"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":[],"created_at":"2024-10-22T09:43:51.409Z","updated_at":"2025-03-29T20:27:47.465Z","avatar_url":"https://github.com/cvan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firesnaggle\n\nWhat's that? You have a website URL. And you need, what, a screenshot (and\nthe HTML) of said website at mobile width in Firefox? Well, gee golly, no\nlook no further! Snaggle up with firesnaggle™ today!\n\nThis tool is made possible by the fantastic [slimerjs](http://slimerjs.org/)\nlibrary.\n\n\n## Installation\n\n* `npm install`\n* `cp settings_local.js.dist settings_local.js`\n* `nodemon app.js`\n* `./install-packages.sh`\n\n\n## Deployment\n\nTo deploy to stackato:\n\n    stackato push --no-prompt\n\n\n## Sample Usage\n\n### Get a screenshot\n\n#### `POST`\n\n    curl -X POST 'http://localhost:5000/screenshot'\n        -d 'width=320\u0026height=480\u0026delay=5000\u0026url=http://www.mysnuggiestore.com'\n        -H 'Accept: image/gif,image/png'\n\n#### `GET`\n\n    curl 'http://localhost:5000/screenshot?width=320\u0026height=480\u0026delay=5000\u0026url=http://www.mysnuggiestore.com'\n        -H 'Accept: image/gif,image/png'\n\n#### Render in a browser\n\nFire up [http://localhost:5000/static/demo.html](http://localhost:5000/static/demo.html)\n\n### Delete a screenshot\n\n#### `DELETE`\n\n    curl -iX DELETE 'http://localhost:5000/screenshot?url=http://www.mysnuggiestore.com'\n        -H 'Accept: image/gif,image/png'\n\n### Get the HTML\n\nTo get the resulting HTML after the JS has been loaded:\n\n#### `GET`\n\n    curl 'http://localhost:5000/html?delay=5000\u0026url=http://www.mysnuggiestore.com'\n\n#### `DELETE`\n\n    curl -X DELETE 'http://localhost:5000/html?url=http://www.mysnuggiestore.com'\n\n### Get the HTML, page title, and final URL\n\nTo get the resulting HTML, page title, and final URL after the JS has been loaded:\n\n#### `GET`\n\n    curl 'http://localhost:5000/json?delay=5000\u0026url=http://www.mysnuggiestore.com'\n\n#### `DELETE`\n\n    curl -X DELETE 'http://localhost:5000/json?url=http://www.mysnuggiestore.com'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ffiresnaggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvan%2Ffiresnaggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ffiresnaggle/lists"}