{"id":19592629,"url":"https://github.com/smallstack/smallstack-webpage-renderer","last_synced_at":"2025-11-06T23:02:49.884Z","repository":{"id":165507171,"uuid":"68518008","full_name":"smallstack/smallstack-webpage-renderer","owner":"smallstack","description":"Tiny server that renders a webpage and returns it as PNG","archived":false,"fork":false,"pushed_at":"2016-09-26T14:02:56.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T03:35:15.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/smallstack.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-18T11:46:38.000Z","updated_at":"2016-09-18T16:53:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9967a41-1b34-41db-baa7-18b4bac8ffb8","html_url":"https://github.com/smallstack/smallstack-webpage-renderer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smallstack/smallstack-webpage-renderer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstack%2Fsmallstack-webpage-renderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstack%2Fsmallstack-webpage-renderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstack%2Fsmallstack-webpage-renderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstack%2Fsmallstack-webpage-renderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallstack","download_url":"https://codeload.github.com/smallstack/smallstack-webpage-renderer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstack%2Fsmallstack-webpage-renderer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283095890,"owners_count":26778518,"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","status":"online","status_checked_at":"2025-11-06T02:00:06.180Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-11T08:36:22.838Z","updated_at":"2025-11-06T23:02:49.839Z","avatar_url":"https://github.com/smallstack.png","language":"JavaScript","readme":"# smallstack-webpage-renderer\nThis is a tiny server that renders a given url and returns it as PNG image. At smallstack.io we use it to render previews of javascript enabled pages. \n\n**Note:** The server will wait for window.prerenderReady=true to be set unless you set waitforprerender=false!\n\n\n## How-to run\n### via node\n```npm install \u0026\u0026 npm run serve```\n\n### via docker\n``` docker run -p 80:80 -d smallstack/smallstack-webpage-renderer```\n\n\n## How-to use\nThe tiny server has only one endpoint so far, which is ```/render```. Possible Parameters are : \n\nParameter     | Optional  | Default Value       | Example               | Description\n------------  | ------    | -------------       | -------               | -------------\nurl           | no        | -                   | https://smallstack.io | The url to be rendered\nmobile        | yes       | false               | true                  | Sets useragent to iPhone and uses smaller screen size\nwidth         | yes       | 1280 (mobile: 375)  | 3840                  | The browser width\nheight        | yes       | 800 (mobile: 677)   | 2160                  | The browser height\nadditionalWait| yes       | 100                 | 5000                  | additional ms to wait after page got loaded\nwaitforprerender| yes     | true                | true                  | The prerenderReady flag is used by prerender.io and already baked into all of our apps. If you don't use that service or if you don't have that flag set, please set this parameter to false!\n\n### Example\nhttp://localhost/render?url=https://smallstack.io\u0026width=600\u0026height=800\u0026mobile=true\u0026additionalWait=2000\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallstack%2Fsmallstack-webpage-renderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallstack%2Fsmallstack-webpage-renderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallstack%2Fsmallstack-webpage-renderer/lists"}