{"id":28411471,"url":"https://github.com/johan-sports/busboy","last_synced_at":"2026-04-29T07:35:08.753Z","repository":{"id":62433128,"uuid":"92523511","full_name":"johan-sports/busboy","owner":"johan-sports","description":"Clojurescript USB monitoring for Node.js","archived":false,"fork":false,"pushed_at":"2017-06-13T09:23:05.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-01T12:52:17.827Z","etag":null,"topics":["clojure","clojurescript","monitoring","nodejs","usb"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/johan-sports.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":"2017-05-26T15:21:34.000Z","updated_at":"2017-05-26T15:33:36.000Z","dependencies_parsed_at":"2022-11-01T21:01:25.482Z","dependency_job_id":null,"html_url":"https://github.com/johan-sports/busboy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/johan-sports/busboy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-sports%2Fbusboy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-sports%2Fbusboy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-sports%2Fbusboy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-sports%2Fbusboy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johan-sports","download_url":"https://codeload.github.com/johan-sports/busboy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johan-sports%2Fbusboy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["clojure","clojurescript","monitoring","nodejs","usb"],"created_at":"2025-06-02T16:17:46.347Z","updated_at":"2026-04-29T07:35:08.731Z","avatar_url":"https://github.com/johan-sports.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Busboy\n\n[![Clojars Project](https://img.shields.io/clojars/v/johan-sports/busboy.svg)](https://clojars.org/johan-sports/busboy)\n\nClojurescript USB monitoring for Node.js\n\n## Usage\n\nBusboy only provides one function, `create-usb-listener`. This will return a\n`core.async` channel (you can also pass a prexisting one) that returns events\nof type `[:attached \u003cdev\u003e]` and `[:detached \u003cdev\u003e]`. For example:\n\n```\ncljs.user\u003e (require '[johan-sports.busboy :as busboy])\nnil\ncljs.user\u003e (def poll-interval 1000) ;; in milliseconds\nnil\ncljs.user\u003e (def dev-ch (busboy/create-usb-listener poll-interval))\nnil\ncljs.user\u003e ;; device is attached\ncljs.user\u003e (go (println (\u003c! dev-ch)))\n[:attached {:id \"...\", :manufacturer \"Foobar Industries\", :mount \"/Volumes/Vol1\"}]\nnil\ncljs.user\u003e ;; device is detached\ncljs.user\u003e (go (println (\u003c! dev-ch)))\n[:attached {:id \"...\", :manufacturer \"Foobar Industries\"}]\nnil\ncljs.user\u003e (close! dev-ch) ;; stop listening\n```\n\nThere are plans in the future to remove the dependecy on `core.async` and either\npass a callback directly or use something like `manifold`.\n\n### Devices\n\nDevices are represented with a plain hash-map:\n\n```clojure\n{\n  :id \"0x22B3-0xEF23-IDQ21AS23AB\"    ;; Unique ID\n  :vendor-id     0x22B3              ;; USB vendor ID\n  :product-id    0xEF23              ;; USB product ID\n  :manufacturer  \"Foobar Industries\" ;; Name of manufacturer (if available)\n  :product       \"Time Traveler v3\"  ;; Name of product (if available)\n  :serial-number \"IDQ21AS23AB\"       ;; Serial number (if available)\n  :mount         \"/Volumes/Vol1\"     ;; Path to mount point (if available)\n}\n```\n\n## Contributors\n\n* Antonis Kalou\n\n## License\n\nLicensed under MIT. See the [LICENSE](LICENSE) file in the project root directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohan-sports%2Fbusboy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohan-sports%2Fbusboy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohan-sports%2Fbusboy/lists"}