{"id":29993030,"url":"https://github.com/pluto/automation-script-template","last_synced_at":"2025-09-08T12:34:29.348Z","repository":{"id":304052968,"uuid":"1017589987","full_name":"pluto/automation-script-template","owner":"pluto","description":"Template for getting started with Pluto Automation Scripts","archived":false,"fork":false,"pushed_at":"2025-07-10T21:07:29.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T03:16:15.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/pluto.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,"zenodo":null}},"created_at":"2025-07-10T19:16:45.000Z","updated_at":"2025-07-10T22:26:44.000Z","dependencies_parsed_at":"2025-07-11T03:27:01.145Z","dependency_job_id":null,"html_url":"https://github.com/pluto/automation-script-template","commit_stats":null,"previous_names":["pluto/automation-script-template"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pluto/automation-script-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fautomation-script-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fautomation-script-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fautomation-script-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fautomation-script-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pluto","download_url":"https://codeload.github.com/pluto/automation-script-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fautomation-script-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268811836,"owners_count":24311057,"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-08-04T02:00:09.867Z","response_time":79,"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":"2025-08-05T00:41:36.200Z","updated_at":"2025-08-05T00:41:37.211Z","avatar_url":"https://github.com/pluto.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pluto Script Project\n\nThis project allows you to create and test multiple automation scripts using Pluto.\n\n## 🚀 Quick Start\n\n### Create a new script\n\n```bash\nnpm run add-script my-script-name\n```\n\nThis will:\n\n- Create a `scripts/my-script-name/` directory\n- Generate a `main.ts` file with a basic template\n- Add npm commands to your `package.json`\n\n### Run your script\n\n```bash\n# Development mode (builds + watches your script, runs test app)\nnpm run dev:my-script-name\n\n# Build only\nnpm run build:my-script-name\n```\n\n## 📁 Project Structure\n\n```\n├── scripts/           # Your automation scripts\n│   ├── my-script/\n│   │   ├── main.ts    # Your script code\n│   │   └── dist/      # Built output\n├── test-app/          # React app for testing scripts\n├── config/            # Build configuration \u0026 tools\n│   ├── vite.config.scripts.ts # Vite build config\n│   ├── tsconfig.json  # TypeScript config\n│   ├── add-script.js  # Helper to create new scripts\n│   └── main.template.ts # Template for new scripts\n└── package.json       # Project configuration\n```\n\n## ✨ Available Scripts\n\n- `npm run add-script \u003cname\u003e` - Create a new script\n- `npm run dev:\u003cscript-name\u003e` - Develop a specific script\n- `npm run build:\u003cscript-name\u003e` - Build a specific script\n\n## 📝 Writing Scripts\n\nYour scripts should be written in TypeScript and export automation logic using Pluto's APIs. See `main.ts` for a basic template.\n\nExample:\n\n```typescript\nimport { createSession } from \"@plutoxyz/automation\";\nimport { chromium } from \"playwright-core\";\nimport { createPlutoPage } from \"@plutoxyz/automation-utils\";\n\nconst session = await createSession();\nconst browser = await chromium.connectOverCDP(await session.cdp());\nconst context = browser.contexts()[0];\nconst page = createPlutoPage(context);\n\n// Your automation logic here...\n\nawait session.prove(\"my-data\", [{ result: \"success\" }]);\nawait browser.close();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluto%2Fautomation-script-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpluto%2Fautomation-script-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluto%2Fautomation-script-template/lists"}