{"id":19142618,"url":"https://github.com/sherlouk/codedeck","last_synced_at":"2026-03-15T14:17:39.959Z","repository":{"id":42443973,"uuid":"159213059","full_name":"Sherlouk/Codedeck","owner":"Sherlouk","description":"WIP: A Swift library for interfacing with the Elgato Stream Deck","archived":false,"fork":false,"pushed_at":"2024-01-04T22:45:33.000Z","size":263,"stargazers_count":15,"open_issues_count":6,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T20:08:13.355Z","etag":null,"topics":["api","deck","elgato","elgato-stream-deck","hid","interface","stream","streamdeck","swift","swift-library","usb","usb-hid"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/Sherlouk.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":"2018-11-26T18:16:33.000Z","updated_at":"2025-04-09T10:13:36.000Z","dependencies_parsed_at":"2024-01-04T22:58:35.625Z","dependency_job_id":null,"html_url":"https://github.com/Sherlouk/Codedeck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sherlouk%2FCodedeck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sherlouk%2FCodedeck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sherlouk%2FCodedeck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sherlouk%2FCodedeck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sherlouk","download_url":"https://codeload.github.com/Sherlouk/Codedeck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788408,"owners_count":21804281,"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":["api","deck","elgato","elgato-stream-deck","hid","interface","stream","streamdeck","swift","swift-library","usb","usb-hid"],"created_at":"2024-11-09T07:27:47.550Z","updated_at":"2026-03-15T14:17:34.917Z","avatar_url":"https://github.com/Sherlouk.png","language":"Swift","readme":"# Codedeck [![Coverage Status](https://coveralls.io/repos/github/Sherlouk/Codedeck/badge.svg?branch=master)](https://coveralls.io/github/Sherlouk/Codedeck?branch=master)\n\n\u003cp align=\"center\"\u003e\n  A Swift library for interfacing with an Elgato StreamDeck.\n  \u003cbr /\u003e\u003cbr /\u003e\n  \u003cimg src=\"Resources/KeyNumbers.png\" width=\"500\" /\u003e\n\u003c/p\u003e\n\n## Features\n\n- Multiplatform Support (_See below_)\n- Hotswapping and Multiple Connected Devices Support\n- Set Device Brightness\n- Fill Key with Solid RGB Colors\n- More Soon!\n\n#### Multiplatform Support\n\nSwift is compatible with most modern systems and this project makes an effort to\nkeep dependencies light and not coupled to things like Cocoa/UIKit etc.\n\nThere are some extensions which, if Cocoa is available, adds extra functionality\nbut this does not limit what you're able to do rather just makes things simpler!\n\n## Usage\n\n#### Creating a `StreamDeck`\n\nA `StreamDeck` currently requires a `HIDDevice` to be created. This is a thin\nwrapper around the `IOHIDDevice` available in Apple's IOKit.\n\nThis library provides a device monitoring solution which informs of you when\ncertain devices are connected/disconnected from the system. This allows you to\nhotswap StreamDeck devices as well as connect to multiple at once!\n\n```swift\n// 1. Create a device monitor and store a reference to it in your application\nvar monitor: HIDDeviceMonitor = {\n    return HIDDeviceMonitor(streamDeckProducts: [ .streamDeck ])\n}()\n\n// 2. Create a delegate class within your application\nextension SomeClass: HIDDeviceMonitorDelegate {\n\n    func HIDDeviceAdded(device: HIDDevice) {\n        // ...\n    }\n\n    func HIDDeviceRemoved(device: HIDDevice) {\n        // ...\n    }\n\n    func HIDDeviceError(error: Error) {\n        // ...\n    }\n\n}\n\n// 3. Start monitoring for existing and new devices\nmonitor.startMonitoring(delegate: ...)\n\n// 4. When you have access to a \"HIDDevice\" initialize a \"StreamDeck\" with it\nlet streamDeck = try StreamDeck(device: HIDDevice)\n```\n\n## Credit\n\nCredit to [Arti3DPlayer/USBDeviceSwift](https://github.com/Arti3DPlayer/USBDeviceSwift)\nfor the foundations of the HID detection which I expanded upon\n\nCredit to [Lange/node-elgato-stream-deck](https://github.com/Lange/node-elgato-stream-deck)\nfor their work and making the necessary payloads available\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsherlouk%2Fcodedeck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsherlouk%2Fcodedeck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsherlouk%2Fcodedeck/lists"}