{"id":13651710,"url":"https://github.com/playwright-community/heroku-playwright-example","last_synced_at":"2025-04-22T22:32:00.102Z","repository":{"id":37172789,"uuid":"264467662","full_name":"playwright-community/heroku-playwright-example","owner":"playwright-community","description":"Example for running Playwright with Chromium and Firefox on Heroku","archived":true,"fork":false,"pushed_at":"2022-12-13T05:20:56.000Z","size":54,"stargazers_count":20,"open_issues_count":6,"forks_count":29,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T17:01:58.201Z","etag":null,"topics":["chromium","firefox","heroku","playwright"],"latest_commit_sha":null,"homepage":"https://heroku.playwright.tech","language":"HTML","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/playwright-community.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":"2020-05-16T15:31:52.000Z","updated_at":"2024-10-17T07:56:37.000Z","dependencies_parsed_at":"2023-01-28T07:30:59.607Z","dependency_job_id":null,"html_url":"https://github.com/playwright-community/heroku-playwright-example","commit_stats":null,"previous_names":["mxschmitt/heroku-playwright-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playwright-community%2Fheroku-playwright-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playwright-community%2Fheroku-playwright-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playwright-community%2Fheroku-playwright-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playwright-community%2Fheroku-playwright-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playwright-community","download_url":"https://codeload.github.com/playwright-community/heroku-playwright-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250334036,"owners_count":21413495,"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":["chromium","firefox","heroku","playwright"],"created_at":"2024-08-02T02:00:51.706Z","updated_at":"2025-04-22T22:31:59.830Z","avatar_url":"https://github.com/playwright-community.png","language":"HTML","funding_links":[],"categories":["Showcases"],"sub_categories":[],"readme":"# Heroku Playwright Example\n\nThis example demonstrates how to use Playwright with Chromium and Firefox on a Heroku environment.\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/mxschmitt/heroku-playwright-example)\n\n## General\n\nThe setup is based on using the [Playwright Heroku Buildpack](https://github.com/mxschmitt/heroku-playwright-buildpack.git) which installs the necessary dependencies and adjusts the needed Playwright specific settings. It's required to run this before using the [NodeJS Buildpack](https://github.com/heroku/heroku-buildpack-nodejs), because otherwise the NPM dependencies won't be installed correctly.\n\n## Components\n\nIn this minimal setup, we are using an Express web server, which accepts requests with the browser name and the URL as parameters. This demonstrates, that the setup works during the normal Dyno runtime. For a full reference, you can find the HTTP handler in the [`src/index.js`](./src/index.js) file. It's important to run Chromium with the `chromiumSandbox: false` flag, because Heroku has no usable sandbox functionality on their containers.\n\nTo see a live demonstration, you can checkout [heroku.playwright.tech](https://heroku.playwright.tech) or make requests to these URLs to see that a browser is launched, the specified URL is opened and a screenshot is taken and delivered to the user:\n\n- Chromium: [heroku.playwright.tech/browser/chromium?url=https://microsoft.com](https://heroku.playwright.tech/browser/chromium?url=https://microsoft.com)\n- Firefox: [heroku.playwright.tech/browser/firefox?url=https://github.com](https://heroku.playwright.tech/browser/firefox?url=https://github.com)\n\n## Best practises\n\nIt's common to only install the [browser-specific NPM packages](https://playwright.dev/#version=v1.1.1\u0026path=docs%2Finstallation.md\u0026q=download-single-browser-binary), which will reduce installation time and slug size on Heroku in the end, that should fix also the error that the slug size is too large.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaywright-community%2Fheroku-playwright-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplaywright-community%2Fheroku-playwright-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaywright-community%2Fheroku-playwright-example/lists"}