{"id":13620999,"url":"https://github.com/iberatkaya/mousebot","last_synced_at":"2025-10-27T03:37:49.617Z","repository":{"id":37178276,"uuid":"241375207","full_name":"iberatkaya/mousebot","owner":"iberatkaya","description":"MouseBot is a computer automating package that can control the mouse and keyboard.","archived":false,"fork":false,"pushed_at":"2022-06-25T10:40:29.000Z","size":199,"stargazers_count":13,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-29T10:46:21.713Z","etag":null,"topics":["automation","keyboard","mouse","node","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/mousebot","language":"TypeScript","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/iberatkaya.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-02-18T13:58:29.000Z","updated_at":"2023-12-02T04:43:58.000Z","dependencies_parsed_at":"2022-06-24T04:22:47.513Z","dependency_job_id":null,"html_url":"https://github.com/iberatkaya/mousebot","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberatkaya%2Fmousebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberatkaya%2Fmousebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberatkaya%2Fmousebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberatkaya%2Fmousebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iberatkaya","download_url":"https://codeload.github.com/iberatkaya/mousebot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248972625,"owners_count":21191831,"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","keyboard","mouse","node","nodejs"],"created_at":"2024-08-01T21:01:01.590Z","updated_at":"2025-10-27T03:37:44.585Z","avatar_url":"https://github.com/iberatkaya.png","language":"TypeScript","funding_links":[],"categories":["automation","nodejs"],"sub_categories":[],"readme":"# MouseBot\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/iberatkaya/mousebot/master/logo/logo.png\"\u003e\u003c/p\u003e\n\nComputer automating package that can control the mouse and keyboard.\n\n[![NPM](https://nodei.co/npm/mousebot.png)](https://nodei.co/npm/mousebot/)\n\nMouseBot is an automating package that lets you programatically control the mouse and keyboard of your device. MouseBot was built with native Rust bindings using [neon](https://neon-bindings.com/). Check out the [API documentation](https://iberatkaya.github.io/mousebot/)!\n\n## Building\n\nPlease make sure you have installed the global dependencies:\n\n* Python v2.7 is recommended, although Python v3.5, v3.6, or v3.7 may work.\n* npm i -g node-pre-gyp\n\n## Install\n\n```sh\nnpm i mousebot\n```\n## Examples\n```javascript\nimport { Bot } from 'mousebot';\n//or\nconst { Bot } = require('mousebot');\n\n/**\n * Create an instance of the class. \n * Each member function of the class is an async function that returns a promise.\n */\n\nlet bot = new Bot();\n\n//Move the mouse to the coordinates x=400, y=500. \nbot.mouse.move(400, 500);\n\n//Move the mouse from x=300, y=400 to x=600, y=500 smoothly.\nbot.mouse.moveSmooth(300, 300, 600, 500);\n\n//Type \"Hello World!\"\nbot.keyboard.write(\"Hello world!\")\n\n//Chain the alt and f5 keys to perform an ALT+F5 to refresh a page.\nbot.keyboard.keyChain(\"alt\", \"f5\");\n\n//Directly use some implemented shortcuts.\nbot.shortcuts.altTab();\n\n//Chain functions using an async function.\nlet chain = async () =\u003e {\n    await bot.mouse.moveSmooth(300, 300, 600, 500);\n    await bot.keyboard.write(\"Hello world!\")\n}\nchain();\n\n```\n\n## Known Issues\n\nCurrently all of the features work on Windows and Linux. On MacOS some mouse features work while most keyboard features do not work.\n\n## Author\n\n👤 **Ibrahim Berat Kaya**\n\n* Github: [@iberatkaya](https://github.com/iberatkaya)\n* LinkedIn: [@linkedin.com/in/ibrahim-berat-kaya/](https://linkedin.com/in/ibrahim-berat-kaya/)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check the [issues page](https://github.com/iberatkaya/mousebot/issues). \n\n## Show your support\n\nGive a ⭐️ if this project helped you!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiberatkaya%2Fmousebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiberatkaya%2Fmousebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiberatkaya%2Fmousebot/lists"}