libusb/hidapi
A Simple cross-platform library for communicating with HID devices observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2647
- days_rel: 472
- days_push: 19
- n_releases_24m: 1
Adoption not part of the score
2261 stars · 474 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
HIDAPI is a cross-platform C library for communicating with USB and Bluetooth HID-class devices on Windows, Linux, FreeBSD, macOS, and Android. It offers multiple backends (hid.dll, hidraw, libusb, IOHidManager) and can be built as a shared library or embedded via a single source file and header.
Use cases
- read input reports from a custom USB HID device
- communicate with a Bluetooth HID gamepad from a desktop app
- send feature reports to an HID sensor on Linux
- enumerate HID devices on macOS and Windows portably
- build a userspace tool to configure an HID keyboard
- access HID devices on Android without root
When to choose
- you need a single API to talk to HID devices across Windows, Linux, macOS, and BSD
- you want a small C library you can embed directly in your source tree
- you need both USB and Bluetooth HID support
- you are writing userspace HID tooling without writing kernel drivers
When to avoid
- you need generic USB (non-HID) device communication - use libusb instead
- you need high-level input event handling for keyboards/mice in a GUI app - use your platform's input framework
- you need serial or bulk transfers outside the HID class
Facets
library · maturity stable
sdk developer-tools hardware cross-platform developer-tools windows bsd cpp c hid usb-hid bluetooth hidraw libusb device-communication c-library linux macos android
2 sources
- readme: https://github.com/libusb/hidapi · fetched 2026-08-28 · 842aa462e1c8
- homepage: https://libusb.info/hidapi/ · fetched 2026-08-29 · 36dab92148ae
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| libusb/hidapi | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem