{"id":18633268,"url":"https://github.com/sstallion/go-hid","last_synced_at":"2025-04-11T07:32:05.593Z","repository":{"id":41867229,"uuid":"190331944","full_name":"sstallion/go-hid","owner":"sstallion","description":"An idiomatic Go interface to HIDAPI, a simple library for communicating with USB and Bluetooth HID devices","archived":false,"fork":false,"pushed_at":"2023-08-01T19:49:51.000Z","size":289,"stargazers_count":64,"open_issues_count":1,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T11:02:58.528Z","etag":null,"topics":["bluetooth","golang","hid","hidapi","usb"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sstallion.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"publiccode":null,"codemeta":null}},"created_at":"2019-06-05T05:34:15.000Z","updated_at":"2025-03-24T05:59:01.000Z","dependencies_parsed_at":"2024-06-18T21:13:38.758Z","dependency_job_id":"2a8c33a4-4d9d-4608-9779-44b3c260aae1","html_url":"https://github.com/sstallion/go-hid","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sstallion%2Fgo-hid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sstallion%2Fgo-hid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sstallion%2Fgo-hid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sstallion%2Fgo-hid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sstallion","download_url":"https://codeload.github.com/sstallion/go-hid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358854,"owners_count":21090444,"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":["bluetooth","golang","hid","hidapi","usb"],"created_at":"2024-11-07T05:14:43.969Z","updated_at":"2025-04-11T07:32:05.272Z","avatar_url":"https://github.com/sstallion.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HIDAPI Bindings for Go\n\n![](.github/images/gopher.png)\n\n[![](https://github.com/sstallion/go-hid/actions/workflows/ci.yml/badge.svg?branch=master)][1]\n[![](https://pkg.go.dev/badge/github.com/sstallion/go-hid)][2]\n[![](https://goreportcard.com/badge/github.com/sstallion/go-hid)][3]\n[![](https://img.shields.io/github/v/release/sstallion/go-hid)][4]\n[![](https://img.shields.io/github/license/sstallion/go-hid.svg)][5]\n\nPackage `hid` provides an idiomatic interface to HIDAPI, a simple library for\ncommunicating with USB and Bluetooth HID devices on FreeBSD, Linux, macOS, and\nWindows.\n\nSee https://github.com/libusb/hidapi for details.\n\n## Installation\n\nTo add package `hid` as a dependency or upgrade to its latest version, issue:\n\n    $ go get github.com/sstallion/go-hid@latest\n\n\u003e**Note**: Prerequisites for building HIDAPI from source must be installed prior\n\u003e to issuing `go get`. See [Prerequisites][6] for details.\n\n### libusb Backend Support\n\nOn Linux, the hidraw backend is enabled by default. If the libusb backend is\ndesired, the `libusb` build constraint must be specified:\n\n    $ go build -tags libusb ./...\n\n### lshid\n\nA command named `lshid` is provided, which lists HID devices attached to the\nsystem. `lshid` may be installed by issuing:\n\n    $ go install github.com/sstallion/go-hid/cmd/lshid@latest\n\nOnce installed, issue `lshid -h` to show usage.\n\n## Documentation\n\nUp-to-date documentation can be found on [pkg.go.dev][2] or by issuing the `go\ndoc` command after installation:\n\n    $ go doc -all github.com/sstallion/go-hid\n\n## Contributing\n\nPull requests are welcome! See [CONTRIBUTING.md][7] for details.\n\n## License\n\nSource code in this repository is licensed under a Simplified BSD License. See\n[LICENSE][5] for details.\n\n[1]: https://github.com/sstallion/go-hid/actions/workflows/ci.yml\n[2]: https://pkg.go.dev/github.com/sstallion/go-hid\n[3]: https://goreportcard.com/report/github.com/sstallion/go-hid\n[4]: https://github.com/sstallion/go-hid/releases/latest\n[5]: https://github.com/sstallion/go-hid/blob/master/LICENSE\n[6]: https://github.com/libusb/hidapi/blob/master/BUILD.md#prerequisites\n[7]: https://github.com/sstallion/go-hid/blob/master/CONTRIBUTING.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsstallion%2Fgo-hid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsstallion%2Fgo-hid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsstallion%2Fgo-hid/lists"}