{"id":17651624,"url":"https://github.com/utmapp/visionkeyboardkit","last_synced_at":"2025-10-13T05:11:30.229Z","repository":{"id":207045041,"uuid":"718299180","full_name":"utmapp/VisionKeyboardKit","owner":"utmapp","description":"Full sized keyboard for visionOS","archived":false,"fork":false,"pushed_at":"2023-11-19T16:03:42.000Z","size":394,"stargazers_count":36,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T13:48:30.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utmapp.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":"2023-11-13T19:52:52.000Z","updated_at":"2025-09-07T02:51:46.000Z","dependencies_parsed_at":"2025-03-10T21:31:09.567Z","dependency_job_id":"bfcc4e4b-3dd2-44c6-befd-fb2ad74ff263","html_url":"https://github.com/utmapp/VisionKeyboardKit","commit_stats":null,"previous_names":["utmapp/visionkeyboardkit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/utmapp/VisionKeyboardKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utmapp%2FVisionKeyboardKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utmapp%2FVisionKeyboardKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utmapp%2FVisionKeyboardKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utmapp%2FVisionKeyboardKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utmapp","download_url":"https://codeload.github.com/utmapp/VisionKeyboardKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utmapp%2FVisionKeyboardKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013696,"owners_count":26085390,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-23T11:42:50.012Z","updated_at":"2025-10-13T05:11:30.192Z","avatar_url":"https://github.com/utmapp.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Vision Keyboard Kit\n===================\n![Screenshot](screenshot.png)\n\n## Features\n* Full sized (104-keys) or 60% (no arrow/num keys) mode\n* Support for multiple keyboard layouts\n* PS/2 Set 1 scan code generation\n* Multiple instances with independent event handlers\n* Key down and key up events\n\n## Usage\nDeclare `KeyboardWindowGroup` in your `Scene`:\n```swift\nimport SwiftUI\nimport VisionKeyboardKit\n\n@main\nstruct YourApp: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n        KeyboardWindowGroup()\n    }\n}\n```\n\nOpen/close the keyboard window using `OpenWindowAction`/`DismissWindowAction` and receive events through `KeyboardEvent.publisher(for:)`:\n```swift\nimport SwiftUI\nimport VisionKeyboardKit\n\nstruct ContentView: View {\n    @Environment(\\.openWindow) private var openWindow\n    @Environment(\\.dismissWindow) private var dismissWindow\n    @State private var isKeyboardShown: Bool = false\n\n    var body: some View {\n        Button {\n            if !isKeyboardShown {\n                openWindow(keyboardFor: .global)\n            } else {\n                dismissWindow(keyboardFor: .global)\n            }\n        } label: {\n            Text(\"Toggle Keyboard\")\n        }.onReceive(KeyboardEvent.publisher(for: .global)) { event in\n            if case .keyboardDidAppear = event {\n                isKeyboardShown = true\n            } else if case .keyboardDidDisappear = event {\n                isKeyboardShown = false\n            } else {\n                print(\"Got event: \\(event)\")\n            }\n        }\n    }\n}\n```\n\nIf you need more than one keyboard with independent event publishers, just pass in any `Hashable` which serves as an identifier for the keyboard.\n\nThe returned `Publisher` can be used in the Combine framework for chained processing (such as debounce).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futmapp%2Fvisionkeyboardkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futmapp%2Fvisionkeyboardkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futmapp%2Fvisionkeyboardkit/lists"}