{"id":15233851,"url":"https://github.com/davekiss/json-to-playwright","last_synced_at":"2026-01-31T02:01:22.821Z","repository":{"id":215996545,"uuid":"740199696","full_name":"davekiss/json-to-playwright","owner":"davekiss","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-14T12:30:49.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T09:14:34.680Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davekiss.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-07T20:05:48.000Z","updated_at":"2024-01-12T01:30:33.000Z","dependencies_parsed_at":"2024-09-29T06:08:31.614Z","dependency_job_id":"3b3d236c-8ff8-4b4a-a94f-6a49cc3e83f6","html_url":"https://github.com/davekiss/json-to-playwright","commit_stats":null,"previous_names":["davekiss/json-to-playwright"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davekiss/json-to-playwright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davekiss%2Fjson-to-playwright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davekiss%2Fjson-to-playwright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davekiss%2Fjson-to-playwright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davekiss%2Fjson-to-playwright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davekiss","download_url":"https://codeload.github.com/davekiss/json-to-playwright/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davekiss%2Fjson-to-playwright/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28926630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"online","status_checked_at":"2026-01-31T02:00:09.179Z","response_time":128,"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-09-29T06:08:28.223Z","updated_at":"2026-01-31T02:01:22.782Z","avatar_url":"https://github.com/davekiss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-to-playwright\n\n## How to use\n\n```\n// JSON input (assuming this is read from a file or other sources)\nconst jsonInput = `\n{\n    \"title\": \"Recording 12/30/2023 at 8:49:56 AM\",\n    \"steps\": [\n        {\n            \"type\": \"setViewport\",\n            \"width\": 723,\n            \"height\": 993\n        },\n        {\n            \"type\": \"navigate\",\n            \"url\": \"https://vuoriclothing.com/\"\n        },\n        ...\n    ]\n}\n`;\n\n// Convert the JSON string to an object\nconst data: JsonInput = JSON.parse(jsonInput);\n\n// Generate the script\nconst playwrightScript = generatePlaywrightScript(data);\n\n// Write to a file (optional)\nwriteFile('playwrightTest.ts', playwrightScript, (err) =\u003e {\n    if (err) throw err;\n    console.log('The file has been saved!');\n});\n\n// Or you can directly log the script\nconsole.log(playwrightScript);\n```\n\n## Generating actions only\n\nTo skip the `test` wrapper and `expect` assertions, you can output actions only by passing a second config object:\n\n```js\nconst playwrightScript = generatePlaywrightScript(data, { actionsOnly: true });\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavekiss%2Fjson-to-playwright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavekiss%2Fjson-to-playwright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavekiss%2Fjson-to-playwright/lists"}