{"id":13432507,"url":"https://github.com/wobsoriano/bunbot","last_synced_at":"2025-04-12T03:30:57.588Z","repository":{"id":46296183,"uuid":"514723033","full_name":"wobsoriano/bunbot","owner":"wobsoriano","description":"Desktop automation for Bun","archived":false,"fork":false,"pushed_at":"2023-09-23T04:06:03.000Z","size":130,"stargazers_count":79,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T23:22:21.249Z","etag":null,"topics":["automation","bun","bunjs","cgo","ffi","go","gui","robot"],"latest_commit_sha":null,"homepage":"","language":"Go","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/wobsoriano.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-07-17T01:48:56.000Z","updated_at":"2025-03-25T09:49:01.000Z","dependencies_parsed_at":"2024-02-09T13:49:46.277Z","dependency_job_id":null,"html_url":"https://github.com/wobsoriano/bunbot","commit_stats":{"total_commits":56,"total_committers":1,"mean_commits":56.0,"dds":0.0,"last_synced_commit":"2e3de4358bc9f95f157abd5e28ab9a145cc2c1f4"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbunbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbunbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbunbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fbunbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wobsoriano","download_url":"https://codeload.github.com/wobsoriano/bunbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248512497,"owners_count":21116613,"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","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","bun","bunjs","cgo","ffi","go","gui","robot"],"created_at":"2024-07-31T02:01:12.555Z","updated_at":"2025-04-12T03:30:57.242Z","avatar_url":"https://github.com/wobsoriano.png","language":"Go","funding_links":[],"categories":["Go","Tools","automation"],"sub_categories":["Adapters"],"readme":"# bunbot\n\n[\u003cimg src=\"https://i.imgur.com/iQgEyms.jpg\" title=\"Generated using Craiyon, formerly DALL-E mini\" align=\"right\" width=\"120\"\u003e]([https://deno.land](https://www.craiyon.com/))\n\nDesktop automation for the Bun runtime. Currently works on Mac.\n\n[![npm (tag)](https://img.shields.io/npm/v/bunbot?style=flat\u0026colorA=000000\u0026colorB=000000)](https://www.npmjs.com/package/bunbot) ![NPM](https://img.shields.io/npm/l/bunbot?style=flat\u0026colorA=000000\u0026colorB=000000)\n\n## Requirements\n\nBunbot uses [RobotGo](https://github.com/go-vgo/robotgo) via `bun:ffi`. Please see RobotGo's requirements [here](https://github.com/go-vgo/robotgo#requirements).\n\n## Usage\n\n```bash\nbun add bunbot\n```\n\n### Mouse\n\n```ts\nimport Bunbot from 'bunbot'\n\nconst bb = new Bunbot()\n\n// Click\nbb.click()\n// Get mouse position coordinates\nconst mousePosition = bb.getMousePosition()\n// Move mouse\nbb.moveMouse(200, 400)\n// Move mouse smoothly\nbb.moveMouseSmooth(200, 400)\n// Scroll mouse\nbb.scrollMouse(100, 200)\n```\n\n### Keyboard\n\n```ts\nimport Bunbot from 'bunbot'\n\nconst bb = new Bunbot()\n\n// Type a string\nbb.type('Hello world!')\n// Tap a key\nbb.tap('i', 'alt', 'command')\n```\n\n### Screen\n\n```ts\nimport Bunbot from 'bunbot'\n\nconst bb = new Bunbot()\n\n// Get screen size\nconst screenSize = bb.getScreenSize()\n// Get scale size\nconst scaleSize = bb.getScaleSize()\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Fbunbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwobsoriano%2Fbunbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Fbunbot/lists"}