{"id":29974330,"url":"https://github.com/divy-work/autopilot-deno","last_synced_at":"2025-08-04T07:07:05.217Z","repository":{"id":37177972,"uuid":"266062612","full_name":"littledivy/autopilot-deno","owner":"littledivy","description":":rocket: Cross-platform desktop automation module for Deno.","archived":false,"fork":false,"pushed_at":"2022-07-22T04:55:21.000Z","size":2673,"stargazers_count":504,"open_issues_count":9,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-29T22:55:59.997Z","etag":null,"topics":["automation","autopilot","corefoundation","cross-platform","deno","desktop-automation","hacktoberfest","js","macos","rust","ts","windows","x11"],"latest_commit_sha":null,"homepage":"https://autopilot.mod.land","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/littledivy.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-05-22T08:46:30.000Z","updated_at":"2025-07-26T13:12:27.000Z","dependencies_parsed_at":"2022-06-24T04:29:40.295Z","dependency_job_id":null,"html_url":"https://github.com/littledivy/autopilot-deno","commit_stats":null,"previous_names":["divy-work/autopilot-deno"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/littledivy/autopilot-deno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fautopilot-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fautopilot-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fautopilot-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fautopilot-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/littledivy","download_url":"https://codeload.github.com/littledivy/autopilot-deno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fautopilot-deno/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268660079,"owners_count":24286018,"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":["automation","autopilot","corefoundation","cross-platform","deno","desktop-automation","hacktoberfest","js","macos","rust","ts","windows","x11"],"created_at":"2025-08-04T07:01:42.039Z","updated_at":"2025-08-04T07:07:05.210Z","avatar_url":"https://github.com/littledivy.png","language":"Rust","funding_links":[],"categories":["源码阅读推荐","Modules"],"sub_categories":["独特之处 🦖🦕","Automation","Assistants"],"readme":"\u003cp align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/logo.png\"\u003e\n\u003c/p\u003e\n\n\u003c/p\u003e\n\n[![ci](https://github.com/littledivy/autopilot-deno/workflows/ci/badge.svg)](https://github.com/littledivy/autopilot-deno/actions)\n![deno version](https://img.shields.io/badge/deno-1.15.1-success)\n[![nest badge](https://nest.land/badge.svg)](https://nest.land/package/autopilot)\n\n**AutoPilot Deno -** Cross-platform desktop automation framework for Deno.\n\n### Features\n\n- [x] **Keyboard**\n\n  - [x] Type a string using `.type`\n  - [x] Tap a key using `.tap`\n  - [x] Toggle key using `.toggleKey`\n\n- [x] **Mouse**\n\n  - [x] Simulate mouse movement using `.moveMouse`\n  - [x] Click using `.click`\n  - [x] Simulate a scroll using `.scroll`\n  - [x] Get mouse position using `.mousePosition`\n  - [x] Get mouse position pixel color `.pixelColor`\n\n- [x] **Screen**\n\n  - [x] Capture screen using `.screenshot`\n  - [x] Get screen size using `.screenSize`\n  - [x] Get number of pixels in a point using `.screenScale`\n\n- [x] **Notifications**\n\n  - [x] Native popup using `.alert`\n  - [x] Notifications using `.notify`\n\n### Documentation\n\nDetailed documentation of the API is available at:\n\nhttps://autopilot.mod.land\n\n### Requirements\n\n#### Linux\n\n```sh\nsudo apt-get update\nsudo apt-get install libdbus-1-dev x11-xserver-utils wmctrl libxtst-dev cmake libc-dev libx11-dev libxcb1-dev\n```\n\n### Usage\n\n```sh\ndeno run --unstable --allow-ffi example.ts\n```\n\n```typescript\n// example.ts\nimport AutoPilot from \"https://deno.land/x/autopilot/mod.ts\";\n\nconst pilot = new AutoPilot();\n\n// type a string\nawait pilot.type(\"Yay! This works\");\n// get screen size\nconst screenSize = await pilot.screenSize();\n// move mouse\nawait pilot.moveMouse(200, 400);\n// take a screenshot\nawait pilot.screenshot(\"screenshot.png\");\n// ...and more stuff\n```\n\n### License\n\n[MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivy-work%2Fautopilot-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivy-work%2Fautopilot-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivy-work%2Fautopilot-deno/lists"}