{"id":19435771,"url":"https://github.com/dbushell/deno_usbhidapi","last_synced_at":"2026-02-27T12:34:37.693Z","repository":{"id":60119131,"uuid":"541075424","full_name":"dbushell/deno_usbhidapi","owner":"dbushell","description":"🦕 Deno FFI bindings for the HIDAPI library to access USB devices.","archived":false,"fork":false,"pushed_at":"2024-08-10T12:30:56.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-05T17:08:08.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dbushell.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,"publiccode":null,"codemeta":null}},"created_at":"2022-09-25T06:27:29.000Z","updated_at":"2024-08-10T12:30:59.000Z","dependencies_parsed_at":"2024-08-10T13:55:02.654Z","dependency_job_id":"fa1baafb-b6b3-4ae0-a510-6c71f916fc0c","html_url":"https://github.com/dbushell/deno_usbhidapi","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"fa46c9521a65d53c6298e23cab3ce728c5e72e76"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dbushell/deno_usbhidapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbushell%2Fdeno_usbhidapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbushell%2Fdeno_usbhidapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbushell%2Fdeno_usbhidapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbushell%2Fdeno_usbhidapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbushell","download_url":"https://codeload.github.com/dbushell/deno_usbhidapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbushell%2Fdeno_usbhidapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29894977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-10T15:07:56.761Z","updated_at":"2026-02-27T12:34:37.670Z","avatar_url":"https://github.com/dbushell.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦕 Deno USB HID API\n\nDeno [FFI](https://deno.land/manual/runtime/ffi_api) bindings for the [HIDAPI](https://github.com/libusb/hidapi/) library to access USB devices.\n\nThis _work in progress_ uses **unstable** Deno APIs and requries the `--unstable`, `--allow-ffi`, and `--allow-env` flags.\n\nThe module exports `hidapi` library symbols and `hid` wrapper functions.\n\n## Usage\n\nInstall or build the [HIDAPI](https://github.com/libusb/hidapi/) library (e.g. `brew install hidapi`). Tested with `hidapi-0.12.0`.\n\nSet the `DENO_USBHIDAPI` environment variable to the dynamic library path.\n\nHomebrew on MacOS installs at:\n\n```\n/opt/homebrew/opt/hidapi/lib/libhidapi.dylib\n```\n\nBuilding from source on a Raspberry Pi installs at:\n\n```\n/usr/local/lib/libhidapi-hidraw.so\n```\n\nOn Windows see [HIDAPI Releases](https://github.com/libusb/hidapi/releases/) (I've not tested Windows).\n\n## Testing\n\nThere is a basic Deno test to check the HIDAPI library defined by the `DENO_USBHIDAPI` environment variable.\n\n```sh\ndeno test --unstable --allow-all src/test.ts\n```\n\n## Resources\n\n* [libusb/hidapi](https://github.com/libusb/hidapi/) — HIDAPI library for Windows, Linux, FreeBSD and macOS.\n* [Foreign Function Interface API](https://deno.land/manual/runtime/ffi_api) — Deno documentation (unstable).\n* [WebHID API](https://developer.mozilla.org/en-US/docs/Web/API/WebHID_API) — MDN documentation for the native browser spec.\n* [\"Add support for HID API\"](https://github.com/denoland/deno/issues/13893) — Deno issue discussion.\n* [littledivy/webusb](https://github.com/littledivy/webusb) — WebUSB API implementation in Rust (and Deno).\n* [node-hid](https://github.com/node-hid/node-hid/) — Node.js bindings.\n* [Deno Stream Deck](https://github.com/dbushell/deno_streamdeck) — built with this library.\n\n* * *\n\n[MIT License](/LICENSE) | Copyright © 2023 [David Bushell](https://dbushell.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbushell%2Fdeno_usbhidapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbushell%2Fdeno_usbhidapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbushell%2Fdeno_usbhidapi/lists"}