{"id":17459080,"url":"https://github.com/arjunattam/playwright-azure-functions","last_synced_at":"2026-03-10T02:31:45.962Z","repository":{"id":50035952,"uuid":"235861774","full_name":"arjunattam/playwright-azure-functions","owner":"arjunattam","description":"Example project to run Playwright on Azure Functions","archived":false,"fork":false,"pushed_at":"2021-06-05T19:54:32.000Z","size":25,"stargazers_count":22,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-22T10:47:45.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/arjunattam.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-01-23T18:43:47.000Z","updated_at":"2024-04-17T21:18:23.000Z","dependencies_parsed_at":"2022-08-30T20:42:11.675Z","dependency_job_id":null,"html_url":"https://github.com/arjunattam/playwright-azure-functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arjunattam/playwright-azure-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Fplaywright-azure-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Fplaywright-azure-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Fplaywright-azure-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Fplaywright-azure-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjunattam","download_url":"https://codeload.github.com/arjunattam/playwright-azure-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Fplaywright-azure-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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-10-18T04:41:56.693Z","updated_at":"2026-03-10T02:31:45.943Z","avatar_url":"https://github.com/arjunattam.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright on Azure Functions\n\nWorking reference example for running [Playwright](https://github.com/microsoft/playwright/) scripts on Azure Functions. Supports Chromium, WebKit and Firefox. Tested with Playwright v0.11.1.\n\n```\nhttps://az-functions-pw-test.azurewebsites.net/api/HttpExample?browser=webkit\n```\n\n## Usage\n\nThis example currently requires a Linux premium plan on Azure Functions. The project was bootstrapped with [this tutorial](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=portal%2Cbash\u0026pivots=programming-language-javascript).\n\nThe project sets up a basic HTTP trigger function which returns a screenshot of a web page in the browser of your choice.\n\n### Running locally\n\n* Clone the repo and run `npm install`\n* Build the docker image with `docker build .`\n* Run the docker container with `docker run -p 8080:80 \u003ccontainer-id\u003e`\n* Open `localhost:8080/api/HttpExample` and pass the browser as a query parameter `?browser=webkit`\n\n### Deploy\n\nOnce the pieces work locally, deploy them to Azure by following the steps in [this tutorial](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=portal%2Cbash\u0026pivots=programming-language-javascript). Broadly speaking, these steps will be:\n\n* Create a resource group, storage account and premium plan on your Azure subscription\n* Push the Docker image to Docker Hub\n* Create a function with an HTTP trigger, pointed at the Docker image\n\n## Usage with a single browser\n\nIt is also possible to use this example for a single browser (instead of 3). To do this\n\n* Use a different NPM package: `playwright-chromium`, `playwright-firefox`, or `playwright-webkit` instead of `playwright`\n* Optionally, modify the Dockerfile to remove browser-specific changes\n* Update the `index.js` to require the correct NPM package\n\n## Contributing\n\nDoes this example not work for your needs? File an issue so we can make it work better. Thank you!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjunattam%2Fplaywright-azure-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjunattam%2Fplaywright-azure-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjunattam%2Fplaywright-azure-functions/lists"}