{"id":18851222,"url":"https://github.com/ufukbakan/logitech-g-led-node","last_synced_at":"2026-05-03T15:33:43.334Z","repository":{"id":230628744,"uuid":"779839138","full_name":"ufukbakan/logitech-g-led-node","owner":"ufukbakan","description":"Node.js implementation of Logitech's Led Illumination SDK","archived":false,"fork":false,"pushed_at":"2024-04-08T05:41:30.000Z","size":385,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T10:16:05.165Z","etag":null,"topics":["led","logitech","node","nodejs","rgb","sdk"],"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/ufukbakan.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":"2024-03-30T23:24:02.000Z","updated_at":"2024-09-05T21:48:19.000Z","dependencies_parsed_at":"2024-11-08T03:34:51.879Z","dependency_job_id":"debb573f-945a-4802-81bc-efb70c3f09db","html_url":"https://github.com/ufukbakan/logitech-g-led-node","commit_stats":null,"previous_names":["ufukbakan/logitech-g-led-node"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ufukbakan/logitech-g-led-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2Flogitech-g-led-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2Flogitech-g-led-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2Flogitech-g-led-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2Flogitech-g-led-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufukbakan","download_url":"https://codeload.github.com/ufukbakan/logitech-g-led-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2Flogitech-g-led-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["led","logitech","node","nodejs","rgb","sdk"],"created_at":"2024-11-08T03:34:05.033Z","updated_at":"2026-05-03T15:33:43.296Z","avatar_url":"https://github.com/ufukbakan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logitech-g-led-node\nNode.js implementation of [Logitech's Led Illumination SDK](https://www.logitechg.com/en-us/innovation/developer-lab.html)\n\n## Changelog\n- v1.1.0\n  - Windows x32 support\n- v1.0.0:alpha:\n  - Windows x64 support\n\n## Prerequirements\n![Enabling application illumination control](example/images/prereq1.png)\n![Disabling on-board memory mode](example/images/prereq2.png)\n\n## Usage\n```ts\nimport gLed from \"logitech-g-led-node\";\n\nfunction sleep(x: number) {\n    return new Promise(r =\u003e setTimeout(r, x));\n}\n\n// You need logitech G hub to be running in the background\n// Also your device shouldn't be on onboard memory mode\nasync function main() {\n    try {\n        const initResult: boolean = gLed.init();\n        await sleep(1000); // Logitech SDK documentation recommends sleep after init\n        if (!initResult) {\n            throw new Error(\"could not initialize logi led sdk\");\n        }\n\n        gLed.saveCurrentLighting();\n        gLed.pulseLighting(100, 0, 0, 500, 250); // r,g,b + Pulse for 500ms, each pulse finishes in 250 ms\n\n        await sleep(1500);\n        gLed.restoreLighting();\n    }\n    catch (e) {\n        console.error(e.message);\n    }\n}\n\nmain();\n```\n\n## Interface\n```ts\ninterface Gsdk {\n    init(): boolean;\n    initWithName(name: string): boolean;\n    getConfigOptionNumber(configPath: string, defaultNumber: number): boolean;\n    getConfigOptionBool(configPath: string, defaultRed: boolean): boolean;\n    getConfigOptionColor(configPath: string, defaultRed: number, defaultGreen: number, defaultBlue: number): boolean;\n    getConfigOptionKeyInput(configPath: string, buffer: string, bufsize: number): boolean;\n    setTargetDevice(targetDevice: number): boolean;\n    getSdkVersion(majorNum: number, minorNum: number, buildNum: number): boolean;\n    saveCurrentLighting(): boolean;\n    setLighting(redPercentage: number, greenPercentage: number, bluePercentage: number): boolean;\n    restoreLighting(): boolean;\n    flashLighting(redPercentage: number, greenPercentage: number, bluePercentage: number, milliSecondsDuration: number, milliSecondsInterval: number): boolean;\n    pulseLighting(redPercentage: number, greenPercentage: number, bluePercentage: number, milliSecondsDuration: number, milliSecondsInterval: number): boolean;\n    stopEffects(): boolean;\n    excludeKeysFromBitmap(keyList: KeyName[], listCount: number): boolean;\n    setLightingFromBitmap(bitmap: number[]): boolean;\n    setLightingForKeyWithScanCode(keyCode: number, redPercentage: number, greenPercentage: number, bluePercentage: number): boolean;\n    setLightingForKeyWithHidCode(keyCode: number, redPercentage: number, greenPercentage: number, bluePercentage: number): boolean;\n    setLightingForKeyWithQuartzCode(keyCode: number, redPercentage: number, greenPercentage: number, bluePercentage: number): boolean;\n    setLightingForKeyWithKeyName(keyCode: KeyName, redPercentage: number, greenPercentage: number, bluePercentage: number): boolean;\n    saveLightingForKey(keyName: KeyName): boolean;\n    restoreLightingForKey(keyName: KeyName): boolean;\n    flashSingleKey(keyName: KeyName, redPercentage: number, greenPercentage: number, bluePercentage: number, msDuration: number, msInterval: number): boolean;\n    pulseSingleKey(keyName: KeyName, startRedPercentage: number, startGreenPercentage: number, startBluePercentage: number, finishRedPercentage: number, finishGreenPercentage: number, finishBluePercentage: number, msDuration: number, isInfinite: boolean): boolean;\n    stopEffectsOnKey(keyName: KeyName): boolean;\n    setLightingForTargetZone(deviceType: DeviceType, zone: number, redPercentage: number, greenPercentage: number, bluePercentage: number): boolean;\n    shutdown(): void;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufukbakan%2Flogitech-g-led-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufukbakan%2Flogitech-g-led-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufukbakan%2Flogitech-g-led-node/lists"}