{"id":16592804,"url":"https://github.com/michaelgira23/swarms","last_synced_at":"2025-06-14T17:05:34.473Z","repository":{"id":65509013,"uuid":"82323994","full_name":"michaelgira23/swarms","owner":"michaelgira23","description":"The ultimate node.js library for controlling Bitcraze Crazyflie 2.0 drones ","archived":false,"fork":false,"pushed_at":"2018-01-28T03:11:22.000Z","size":338,"stargazers_count":18,"open_issues_count":5,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-02T17:11:21.753Z","etag":null,"topics":["bitcraze","crazyflie","crazyflie-drone","crazyflies","crazyradio","crazyradio-pa","drone","drones","nanocopter","nanocopters","node","node-js","nodejs","quadcopter","quadcopters","swarm","swarms","typescript","world-domination"],"latest_commit_sha":null,"homepage":"https://michaelgira23.github.io/swarms","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/michaelgira23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-17T18:00:12.000Z","updated_at":"2023-12-17T06:29:57.000Z","dependencies_parsed_at":"2023-01-26T16:35:12.208Z","dependency_job_id":null,"html_url":"https://github.com/michaelgira23/swarms","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/michaelgira23/swarms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelgira23%2Fswarms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelgira23%2Fswarms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelgira23%2Fswarms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelgira23%2Fswarms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelgira23","download_url":"https://codeload.github.com/michaelgira23/swarms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelgira23%2Fswarms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259851735,"owners_count":22921631,"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":["bitcraze","crazyflie","crazyflie-drone","crazyflies","crazyradio","crazyradio-pa","drone","drones","nanocopter","nanocopters","node","node-js","nodejs","quadcopter","quadcopters","swarm","swarms","typescript","world-domination"],"created_at":"2024-10-11T23:22:30.745Z","updated_at":"2025-06-14T17:05:34.450Z","avatar_url":"https://github.com/michaelgira23.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swarms\n\nThe ultimate node.js client for controlling Bitcraze Crazyflie 2.0 drones\n\n[![npm](https://img.shields.io/npm/v/swarms.svg)](https://www.npmjs.com/package/swarms)\n[![npm](https://img.shields.io/npm/dm/swarms.svg)](https://www.npmjs.com/package/swarms)\n[![Travis](https://img.shields.io/travis/michaelgira23/swarms.svg)](https://travis-ci.org/michaelgira23/swarms)\n[![Dependency Status](https://img.shields.io/david/michaelgira23/swarms.svg)](https://david-dm.org/michaelgira23/swarms)\n[![Dev Dependency Status](https://img.shields.io/david/dev/michaelgira23/swarms.svg)](https://david-dm.org/michaelgira23/swarms?type=dev)\n\n## Motive\n\nThere were too many outdated and undocumented node.js libraries out there for programming Crazyflies. This package's goal is to fix that.\n\n## Prerequisites\n\n### Crazyflie Firmware\n\nThis package assumes you have the [latest version of the Crazyflie firmware](https://www.bitcraze.io/getting-started-with-the-crazyflie-2-0/#latest-fw).\n\n### Crazyradio Driver on Windows\n\nIf on a Windows machine, look on [the Bitcraze wiki for instructions](https://wiki.bitcraze.io/doc:crazyradio:index#drivers) to install the correct driver onto your Crazyradio. You do not need to do this on macOS or Linux!\n\n## Installation\n\nThis package's main dependency is `node-usb`. [Refer to its installation directions](https://github.com/tessel/node-usb#installation) for any help installing it on your operating system.\n\n```\n$ npm install swarms\n```\n\nNote: On Windows, you may get errors installing the `node-usb` package like the following: you may fail to install the `node-usb` package getting errors like:\n\n```\nerror C2011: 'timespec': 'struct' type redefinition\n```\n\nYou can fix this by following the [directions here](https://github.com/libusb/libusb/issues/144#issuecomment-269832528).\n\n## Usage\n\nThe following script moves the drone's propellers. More examples are located in the [`/examples`](https://github.com/michaelgira23/swarms/tree/master/examples) directory.\n\n```javascript\nconst { Crazyradio } = require('swarms');\n\nconst radio = new Crazyradio();\n\n// Because you can only use `await` within an async function...\nmain();\nasync function main() {\n\ttry {\n\t\tawait radio.init();\n\t\tconst drones = await radio.findDrones();\n\n\t\tif (drones.length \u003c 1) {\n\t\t\tthrow 'Could not find any drones!';\n\t\t}\n\n\t\tconst drone = await radio.connect(drones[0]);\n\n\t\tawait drone.commander.setpoint({\n\t\t\troll  : 0,\n\t\t\tyaw   : 0,\n\t\t\tpitch : 0,\n\t\t\tthrust: 32500\n\t\t});\n\n\t} catch (err) {\n\t\tconsole.log('Uh oh!', err);\n\t\tawait radio.close();\n\t}\n}\n```\n\n## Documentation\n\nCheck out [the repository documentation](https://github.com/michaelgira23/swarms/blob/master/docs/table-of-contents.md) for information, tutorials, and more!\n\n## Troubleshooting\n\nGot a problem? Refer to the [troubleshooting page](https://github.com/michaelgira23/swarms/blob/master/docs/troubleshooting.md) in the documentation. If that doesn't help, [create an issue.](https://github.com/michaelgira23/swarms/issues/new)\n\n## Contributing\n\nEncounter a bug or have an idea for a new feature? [Open up an issue!](https://github.com/michaelgira23/swarms/issues/new) Pull requests also welcome! Check out the [Contributing Guide](https://github.com/michaelgira23/swarms/blob/master/CONTRIBUTING.md) for more details.\n\n## License\n\nThis project is under the [MIT License](https://github.com/michaelgira23/swarms/blob/master/LICENSE).\n\n## Acknowledgments\n\nSpecial thanks to the following people, whose libraries were used as a reference:\n- [Bitcraze team's `crazyflie-lib-python` library](https://github.com/bitcraze/crazyflie-lib-python)\n- [C J Silverio's `aerogel` library](https://github.com/ceejbot/aerogel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelgira23%2Fswarms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelgira23%2Fswarms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelgira23%2Fswarms/lists"}