{"id":27946177,"url":"https://github.com/revblaze/launchguardkit","last_synced_at":"2026-05-10T05:13:49.144Z","repository":{"id":86744470,"uuid":"568203750","full_name":"revblaze/LaunchGuardKit","owner":"revblaze","description":"An open source development kit for the components featured in LaunchGuard for macOS","archived":false,"fork":false,"pushed_at":"2023-01-01T05:19:30.000Z","size":62,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-07T13:51:32.027Z","etag":null,"topics":["cocoa","macos","open-source","swift","swiftui"],"latest_commit_sha":null,"homepage":"","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/revblaze.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,"zenodo":null}},"created_at":"2022-11-19T19:21:43.000Z","updated_at":"2023-08-08T23:03:56.000Z","dependencies_parsed_at":"2023-03-05T06:15:19.053Z","dependency_job_id":null,"html_url":"https://github.com/revblaze/LaunchGuardKit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/revblaze/LaunchGuardKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revblaze%2FLaunchGuardKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revblaze%2FLaunchGuardKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revblaze%2FLaunchGuardKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revblaze%2FLaunchGuardKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revblaze","download_url":"https://codeload.github.com/revblaze/LaunchGuardKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revblaze%2FLaunchGuardKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268348212,"owners_count":24236295,"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-08-02T02:00:12.353Z","response_time":74,"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":["cocoa","macos","open-source","swift","swiftui"],"created_at":"2025-05-07T13:48:31.269Z","updated_at":"2026-05-10T05:13:49.106Z","avatar_url":"https://github.com/revblaze.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaunchGuardKit\nAn open source development kit for the components featured in LaunchGuard for macOS.\n\n## Setup\n\nDrag and drop `/LaunchGuardKit` into your project.\n\n## Getting Started\n\nWhile you can use the app's localized name to interact with it, it's recommended that you mostly work with the bundle identifier instead. There are multiple benefits to this; the most important being that the `bundleId` is more unique and unlikely to change.\n\n```swift\nlet launchGuard = LaunchGuard.shared\n\nfunc viewDidLoad() {\n  // Enable debug console (optional)\n  LaunchGuard.debug = true\n  \n  // Get currently running apps\n  launchGuard.apps()            // [\"App 1\", \"com.bundle.app1\", \"App 2\", \"com.bundle.app2\", ...]\n  launchGuard.apps(.name)       // [\"App 1\", \"App 2\", ...]\n  launchGuard.apps(.bundleId)   // [\"com.bundle.app1\", \"com.bundle.app2\", ...]\n}\n```\n\n## Blocklist\n\nThe Blocklist will allow you to block applications from launching by bundle identifier, name, etc.\n\n```swift\n// By bundle identifier\nlet list = [\"com.apple.Music\", \"com.github.GitHubClient\"]\nlaunchGuard.add(blocklist: list)\n\n// By app name\nlet list = [\"Music\", \"GitHub Desktop\"]\nlaunchGuard.add(blocklist: list, format: .name)\n```\n\n## Commands\n\nYou can issue customizable commands to specific applications as well:\n\n```swift\n// Quit the Music app\nlet music = \"com.apple.Music\"\nlaunchGuard.command(.quit, bundleId: music)\n\n// Force quit multiple apps\nlet apps = [\"com.apple.Music\", \"com.github.GitHubClient\"]\nlaunchGuard.commandAll(.forceQuit, bundleIds: apps)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevblaze%2Flaunchguardkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevblaze%2Flaunchguardkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevblaze%2Flaunchguardkit/lists"}