{"id":47488981,"url":"https://github.com/sorkila/lockpaw","last_synced_at":"2026-04-02T19:45:23.175Z","repository":{"id":345549277,"uuid":"1186242047","full_name":"sorkila/lockpaw","owner":"sorkila","description":"Cover your Mac screen with a hotkey while AI agents keep running. Free, open source, 3.4 MB, Touch ID unlock.","archived":false,"fork":false,"pushed_at":"2026-03-30T10:58:33.000Z","size":16669,"stargazers_count":61,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T11:35:02.443Z","etag":null,"topics":["ai-agents","developer-tools","hotkey","macos","macos-app","macos-menubar","menu-bar","menubar","open-source","privacy","screen-lock","screen-privacy","security","swift","swiftui","touch-id","utilities","utility"],"latest_commit_sha":null,"homepage":"https://getlockpaw.com","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/sorkila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-19T12:22:14.000Z","updated_at":"2026-03-30T10:58:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sorkila/lockpaw","commit_stats":null,"previous_names":["sorkila/lockpaw"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/sorkila/lockpaw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorkila%2Flockpaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorkila%2Flockpaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorkila%2Flockpaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorkila%2Flockpaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sorkila","download_url":"https://codeload.github.com/sorkila/lockpaw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorkila%2Flockpaw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31228492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-31T08:35:14.124Z","status":"ssl_error","status_checked_at":"2026-03-31T08:34:00.887Z","response_time":111,"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":["ai-agents","developer-tools","hotkey","macos","macos-app","macos-menubar","menu-bar","menubar","open-source","privacy","screen-lock","screen-privacy","security","swift","swiftui","touch-id","utilities","utility"],"created_at":"2026-03-26T15:00:45.152Z","updated_at":"2026-03-31T09:00:49.414Z","avatar_url":"https://github.com/sorkila.png","language":"Swift","readme":"\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"Lockpaw/Resources/Assets.xcassets/Mascot.imageset/Mascot.png\" alt=\"Lockpaw mascot\" width=\"200\" /\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eLockpaw\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eOne hotkey covers your screen. One hotkey uncovers it. Everything keeps running.\u003c/strong\u003e\u003cbr\u003e\n  \u003cem\u003eNo sleep. No display disconnect. No process interruption. Touch ID when you're back.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://getlockpaw.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Download-Free-00D4AA?style=flat-square\u0026logo=apple\u0026logoColor=fff\" alt=\"Download\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/sorkila/lockpaw/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/sorkila/lockpaw/ci.yml?branch=main\u0026style=flat-square\u0026label=CI\u0026logo=github\u0026logoColor=fff\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/sorkila/lockpaw/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/sorkila/lockpaw?style=flat-square\u0026color=111\u0026labelColor=111\u0026label=Release\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/macOS%2014+-111?style=flat-square\u0026logo=apple\u0026logoColor=fff\" alt=\"macOS 14+\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift%205.9-111?style=flat-square\u0026logo=swift\u0026logoColor=F05138\" alt=\"Swift 5.9\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/MIT-111?style=flat-square\" alt=\"MIT License\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/sorkila/lockpaw?style=flat-square\u0026color=111\u0026labelColor=111\" alt=\"Stars\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/demo.gif\" alt=\"Lockpaw demo — lock and unlock with a hotkey\" width=\"600\"\u003e\n\u003c/p\u003e\n\n---\n\n\u003e You could set up Amphetamine, configure Hot Corners, tweak energy settings, and adjust your screen saver. Or you could press ⌘⇧L.\n\n## Features\n\n- ⌨️ **One hotkey** — lock and unlock with ⌘⇧L (customizable)\n- 🔒 **Touch ID unlock** — or password fallback, just like your Mac\n- 🖥️ **Every screen covered** — all displays, auto-detects new monitors\n- 🤖 **Agents keep running** — AI coding tools, builds, downloads, SSH sessions\n- 😴 **Prevents sleep** — IOKit assertion keeps your Mac awake while locked\n- 📦 **3.4 MB** — native Swift, no Electron, no frameworks\n- 🚫 **No analytics** — no data leaves your Mac, no accounts, no internet required\n- 🐕 **The watchdog** — a metallic origami dog in breathing teal light guards your screen\n\n\u003cbr\u003e\n\n## Usage\n\n| Action | How |\n|--------|-----|\n| Lock | Your hotkey (default `Cmd+Shift+L`) |\n| Quick unlock | Same hotkey |\n| Fallback unlock | Tap screen → Touch ID or password |\n| Settings | Menu bar → Settings… |\n| Change hotkey | Settings → Shortcuts → click to record |\n\n\u003cbr\u003e\n\n## Install\n\n### Download\n\nGrab the latest signed \u0026 notarized DMG from [getlockpaw.com](https://getlockpaw.com) or [GitHub Releases](https://github.com/sorkila/lockpaw/releases).\n\n### Homebrew\n\n```bash\nbrew tap sorkila/lockpaw\nbrew install --cask lockpaw\n```\n\n### Build from source\n\n```bash\nbrew install xcodegen\ngit clone https://github.com/sorkila/lockpaw.git\ncd lockpaw\nxcodegen generate\nxcodebuild -scheme Lockpaw -configuration Release build\n```\n\nOn first launch, grant **Accessibility** when prompted. A dog icon appears in your menu bar.\n\n\u003cbr\u003e\n\n## Design\n\nThe lock screen is intentionally minimal. Near-black canvas. Subtle radial glow. One element at a time.\n\n**Progressive disclosure** — the screen opens with the watchdog, your message, and a quiet elapsed timer. A chevron breathes at the bottom. Tap anywhere to reveal the fallback auth button. Nothing appears without your intent.\n\n**The watchdog** — a metallic origami dog rendered in teal and amber, floating in a pool of light. Slow 12-second breathing cycle. On successful unlock, the dog scales up with a teal bloom and fades away.\n\n**Typography** — system San Francisco throughout. Regular weight message at 55% white. Monospaced timer at 35%. The screen whispers.\n\n**Auth button** — glass material effect with a subtle border. Visible enough to be tappable, quiet enough to stay out of the way.\n\n\u003cbr\u003e\n\n## Under the hood\n\n**Hotkey** — `CGEvent.tapCreate` with `.listenOnly` on a dedicated background thread. Bypasses the LSUIElement activation issue that affects Carbon hotkeys in menu bar apps. Requires Accessibility permission.\n\n**Input blocking** — separate `CGEventTap` intercepts all keyboard, scroll, and tablet events system-wide while locked. Mouse events pass through to the overlay (SwiftUI buttons need clicks). If macOS disables the tap, it re-enables synchronously in the callback.\n\n**Window level** — `CGShieldingWindowLevel()`, the highest level in the system. Above Spotlight, Notification Center, screen savers, everything.\n\n**Multi-display** — one overlay window per screen, recreated on hot-plug.\n\n**State machine** — `LockState` enum with validated transitions. Every `transitionTo()` call is checked. State is verified again after async authentication returns.\n\n**Sleep prevention** — `IOPMAssertion` keeps the Mac awake while locked.\n\n**Auth** — `LAContext.evaluatePolicy(.deviceOwnerAuthentication)` for Touch ID with password fallback. Rate-limited: 30s cooldown after 3 failed attempts.\n\n**Auto-updates** — Sparkle framework checks for updates automatically. Appcast hosted at getlockpaw.com.\n\n\u003cbr\u003e\n\n## Security model\n\nLockpaw is a **visual privacy tool**, not a security boundary.\n\nIt guards against the accidental — a colleague, a cat, your own muscle memory while agents run. Not the intentional.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eWhat it does\u003c/strong\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n- Overlay at highest system window level\n- Event tap blocks all keyboard/scroll input\n- Fast User Switching cancels auth, keeps lock active\n- Accessibility revocation detected and handled (force unlock with warning)\n- URL scheme rate-limited (100ms debounce)\n- Debug escape hatch compile-gated (`#if DEBUG`)\n- State machine validates every transition\n- Hotkey conflict detection against system shortcuts\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eWhat it doesn't do\u003c/strong\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n- Prevent `pkill Lockpaw`\n- Block synthetic events (AppleScript, Accessibility API)\n- Survive kernel-level access\n- Protect against screen recording during overlay fade-in\n\nFor real security: `Ctrl+Cmd+Q`.\n\n\u003c/details\u003e\n\n\u003cbr\u003e\n\n## URL scheme\n\n```\nlockpaw://lock              Lock the screen\nlockpaw://unlock            Unlock with Touch ID\nlockpaw://unlock-password   Unlock with password\nlockpaw://toggle            Toggle lock state\n```\n\n\u003cbr\u003e\n\n## Architecture\n\n```\nLockpaw/\n├─ LockpawApp                     Entry, MenuBarExtra, AppDelegate, onboarding\n├─ Controllers/\n│  ├─ LockController              State machine, lock/unlock orchestration\n│  ├─ Authenticator               LAContext · Touch ID · password fallback\n│  ├─ InputBlocker                CGEventTap · keyboard/scroll blocking\n│  ├─ HotkeyManager              CGEventTap · global hotkey detection\n│  ├─ OverlayWindowManager       NSWindow · multi-display · shielding level\n│  └─ SleepPreventer             IOKit · idle sleep assertion\n├─ Models/\n│  ├─ LockState                  .unlocked → .locking → .locked → .unlocking\n│  └─ HotkeyConfig               Centralized hotkey UserDefaults access\n├─ Views/\n│  ├─ LockScreenView             Dog · glow · progressive disclosure\n│  ├─ MenuBarView                Dropdown · lock/unlock/quit\n│  ├─ SettingsView               Native Form · hotkey recorder · appearance\n│  └─ OnboardingView             4-step wizard · hotkey · accessibility\n├─ Utilities/\n│  ├─ Constants                  Timing, animations, formatting\n│  ├─ Notifications              All Notification.Name in one place\n│  └─ AccessibilityChecker       AXIsProcessTrusted + System Settings\n└─ Resources/\n   └─ Assets                     App icon, mascot, menu bar icon, colors\n```\n\n\u003cbr\u003e\n\n## CI\n\nPushes to `main` and PRs run build + 34 unit tests via GitHub Actions. Tagged releases (`v*`) build, sign, notarize, and create GitHub Releases with the DMG attached.\n\n\u003cbr\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003e\n    \u003ca href=\"https://getlockpaw.com\"\u003egetlockpaw.com\u003c/a\u003e\n  \u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n","funding_links":[],"categories":["Open source apps","macOS Security","Security"],"sub_categories":["macOS","Text"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorkila%2Flockpaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsorkila%2Flockpaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorkila%2Flockpaw/lists"}