{"id":31836154,"url":"https://github.com/domderen/playwright-session","last_synced_at":"2025-10-12T01:26:11.881Z","repository":{"id":49999237,"uuid":"273816205","full_name":"domderen/playwright-session","owner":"domderen","description":"Visual Debugger for Playwright automation.","archived":false,"fork":false,"pushed_at":"2024-06-18T15:20:14.000Z","size":36051,"stargazers_count":44,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-12T01:26:11.683Z","etag":null,"topics":["automation","debugger","playwright","typescript","visualizes","web"],"latest_commit_sha":null,"homepage":"https://playwright-session.hotdata.co","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/domderen.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}},"created_at":"2020-06-21T01:55:19.000Z","updated_at":"2025-07-19T21:36:40.000Z","dependencies_parsed_at":"2022-09-10T06:23:20.444Z","dependency_job_id":"aa9ec77e-cf34-4b69-bccb-7bb56393ecbb","html_url":"https://github.com/domderen/playwright-session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/domderen/playwright-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domderen%2Fplaywright-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domderen%2Fplaywright-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domderen%2Fplaywright-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domderen%2Fplaywright-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domderen","download_url":"https://codeload.github.com/domderen/playwright-session/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domderen%2Fplaywright-session/sbom","scorecard":{"id":350390,"data":{"date":"2025-08-11","repo":{"name":"github.com/domderen/playwright-session","commit":"b14d81068ab7b4a697c84dd080f188a8e8aa94ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/workflow.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/domderen/playwright-session/workflow.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/domderen/playwright-session/workflow.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/domderen/playwright-session/workflow.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/workflow.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/domderen/playwright-session/workflow.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/domderen/playwright-session/workflow.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/domderen/playwright-session/workflow.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w7q9-p3jq-fmhm","Warn: Project is vulnerable to: GHSA-xvf7-4v9q-58w6","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T08:10:35.635Z","repository_id":49999237,"created_at":"2025-08-18T08:10:35.635Z","updated_at":"2025-08-18T08:10:35.635Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009770,"owners_count":26084645,"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-10-11T02:00:06.511Z","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":["automation","debugger","playwright","typescript","visualizes","web"],"created_at":"2025-10-12T01:26:10.110Z","updated_at":"2025-10-12T01:26:11.866Z","avatar_url":"https://github.com/domderen.png","language":"TypeScript","readme":"# Playwright-Session\n\n![Build \u0026 Publish](https://github.com/domderen/playwright-session/workflows/Build%20\u0026%20Publish/badge.svg?branch=master)\n![npm](https://img.shields.io/npm/v/playwright-session)\n\n[Playwright-Session UI](https://playwright-session.hotdata.co/) visualizes a recorded Playwright session in a UI containing:\n\n- Video from the session,\n- DOM HTML Viewer,\n- Network Requests Viewer,\n- Console Viewer,\n- Playwright actions listed in console view to easily understand what your script was doing,\n\n![Playwright-Session in action](https://playwright-session.hotdata.co/Playwright-Session-UI-Small.gif)\n\n## Recording Session\n\nTo record your own Playwright session, start by adding this package to your project:\n\n```bash\nnpm install playwright-session --save-dev\n```\n\nOnce you have the package installed, you need to initialize your playwright script with the recorder:\n\n```javascript\nimport { chromium } from \"playwright\";\nimport initializeRecorder from \"playwright-session\";\n\n(async () =\u003e {\n  const browser = await chromium.launch();\n\n  // Recorder is initalizing required events collection,\n  // to later be able to replay a Playwright session in the UI.\n  // Session file, that can be loaded in the UI,\n  // will be saved to ./vuetify-session-events.ldjson\n  const { page, context } = await initializeRecorder(\n    browser,\n    \"vuetify-session-events\"\n  );\n\n  await page.goto(\"https://vuetifyjs.com/en/\");\n\n  await page.evaluate(() =\u003e console.log(\"Adding sample console log 1\"));\n  await page.evaluate(() =\u003e console.warn(\"Adding sample console log 2\"));\n  await page.evaluate(() =\u003e console.info(\"Adding sample console log 3\"));\n  await page.evaluate(() =\u003e console.error(\"Adding sample console log 4\"));\n  await page.evaluate(() =\u003e console.debug(\"Adding sample console log 5\"));\n\n  await page.click('a[href=\"/en/getting-started/quick-start/\"]');\n\n  await page.click('text=\"UI Components\"');\n\n  await page.click('text=\"Form inputs \u0026 controls\"');\n\n  await page.click('text=\"Forms\"');\n\n  await page.waitForSelector('#usage .v-example input[type=\"text\"]');\n\n  const inputs = await page.$$('#usage .v-example input[type=\"text\"]');\n\n  await page.click(\"#usage h2\");\n\n  // Adding timeouts here, to show down Playwright,\n  // and make recorded session a bit smoother.\n  await new Promise((r) =\u003e setTimeout(r, 1000));\n\n  await inputs[0].fill(\"Welcome\");\n  await new Promise((r) =\u003e setTimeout(r, 500));\n  await inputs[1].fill(\"To\");\n  await new Promise((r) =\u003e setTimeout(r, 500));\n  await inputs[2].fill(\"Playwright-Session\");\n\n  await new Promise((r) =\u003e setTimeout(r, 3000));\n\n  await browser.close();\n})();\n```\n\n## Replaying Session\n\nOnce you have your session file recorded, head over to the [Playwright-Session UI](https://playwright-session.hotdata.co/), upload your session file by clicking on the Upload button in the top-left corner of the UI, and play your session. You can also provide a link to your custom session file via a query string parameter like this: [https://playwright-session.hotdata.co/?session_url=https://playwright-session.hotdata.co/vuetify-session-events.ldjson](https://playwright-session.hotdata.co/?session_url=https://playwright-session.hotdata.co/vuetify-session-events.ldjson).\n\n## API\n\n```typescript\n/**\n * Bootstraps session recording on top of the open browser connection.\n * Session recording will be saved to a file defined by `sessionFilePath` argument.\n * Once bootstrapped, this function will return a new BrowserContext \u0026 Page.\n * @param browser ChromiumBrowser Browser instance.\n * @param [sessionFilePath] [OPTIONAL] Path where session recoeding file should be saved.\n * Defaults to `${process.cwd()}/playwright-session-events-${new Date().toISOString()}.ldjson`.\n * @param contextOpts [OPTIONAL] Options that can be passed to `browser.newContext` call, used when creating new BrowserContext.\n */\nexport default async function initializeRecorder(\n  browser: ChromiumBrowser,\n  sessionFilePath: string = undefined,\n  contextOpts: any = undefined\n): Promise\u003cInitializeRecorderResponse\u003e;\n\n/**\n * Recorder is extending browser methods, and returns both page \u0026 context objects for further modifications.\n */\ntype InitializeRecorderResponse = {\n  page: Page;\n  context: ChromiumBrowserContext;\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomderen%2Fplaywright-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomderen%2Fplaywright-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomderen%2Fplaywright-session/lists"}