{"id":49379601,"url":"https://github.com/vasylenko/vigil","last_synced_at":"2026-04-28T04:39:04.629Z","repository":{"id":344060779,"uuid":"1180284630","full_name":"vasylenko/vigil","owner":"vasylenko","description":"Lightweight macOS app that prevents your mac from sleep","archived":false,"fork":false,"pushed_at":"2026-04-23T11:14:24.000Z","size":4496,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T04:39:03.435Z","etag":null,"topics":["developer-tools","macos","productivity","sleep-mode","tools"],"latest_commit_sha":null,"homepage":"https://vigil-for-mac.vercel.app","language":"HTML","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/vasylenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"vasylenko"}},"created_at":"2026-03-12T22:19:31.000Z","updated_at":"2026-04-23T11:14:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vasylenko/vigil","commit_stats":null,"previous_names":["vasylenko/vigil"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vasylenko/vigil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasylenko%2Fvigil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasylenko%2Fvigil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasylenko%2Fvigil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasylenko%2Fvigil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasylenko","download_url":"https://codeload.github.com/vasylenko/vigil/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasylenko%2Fvigil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32367021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["developer-tools","macos","productivity","sleep-mode","tools"],"created_at":"2026-04-28T04:39:03.982Z","updated_at":"2026-04-28T04:39:04.618Z","avatar_url":"https://github.com/vasylenko.png","language":"HTML","funding_links":["https://github.com/sponsors/vasylenko"],"categories":[],"sub_categories":[],"readme":"# Vigil\n\nA lightweight macOS menu bar utility that prevents your Mac from sleeping. No bloat, no subscriptions, no unnecessary features — just a toggle in your menu bar.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://apps.apple.com/app/id6761284593\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Download_on_the-Mac_App_Store-0d96f6?style=for-the-badge\u0026logo=apple\u0026logoColor=white\" alt=\"Download on the Mac App Store\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Why\n\nAmphetamine is great but heavyweight. Vigil exists because keeping a Mac awake shouldn't require a complex app with dozens of features you'll never use.\n\nVigil uses the same kernel API (`IOPMAssertionCreateWithName`) that powers `caffeinate` — but instead of a terminal command, you get a menu bar icon. One click to keep your Mac awake, one click to stop.\n\n## Features\n\n- **Two sleep prevention modes**: \"Display \u0026 System\" keeps everything awake; \"System Only\" lets the screen sleep while preventing idle system sleep\n- **Launch at Login**: optional, off by default\n- **Remember Last State**: optionally restores the previous state on launch\n- **Menu bar only**: no Dock icon, no Cmd+Tab entry — stays out of your way\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"website/img/scr1.png\" width=\"280\" alt=\"Vigil inactive — sleep prevention is off\"\u003e\n  \u0026nbsp;\u0026nbsp;\n  \u003cimg src=\"website/img/scr2.png\" width=\"280\" alt=\"Vigil active — System Only mode preventing idle sleep\"\u003e\n\u003c/p\u003e\n\n## How It Works\n\nVigil creates [IOPMAssertions](https://developer.apple.com/documentation/iokit/iopmlib_h) — the same mechanism macOS uses internally to prevent sleep during downloads, presentations, and Time Machine backups. The OS automatically releases all assertions if the app crashes or quits, so there's no risk of leaked state.\n\n| Mode | Idle sleep | Display sleep |\n|------|-----------|---------------|\n| Display \u0026 System | Blocked | Blocked |\n| System Only | Blocked | Allowed |\n\nLid close, manual sleep, and critical battery always override — Vigil can't prevent those (by design).\n\n## Requirements\n\n- macOS 15.6 (Sequoia) or later\n- Apple Silicon or Intel\n\n## Build from Source\n\n```bash\ngit clone https://github.com/vasylenko/vigil.git\ncd vigil\nxcodebuild build -project app/Vigil.xcodeproj -scheme Vigil -configuration Release -destination 'platform=macOS'\n```\n\nThe built app will be in `~/Library/Developer/Xcode/DerivedData/Vigil-*/Build/Products/Release/Vigil.app`.\n\n## Verify It Works\n\n```bash\npmset -g assertions | grep Vigil\n```\n\nWhen active, you'll see something like:\n```\npid 1234(Vigil): PreventUserIdleDisplaySleep named: \"Vigil is keeping your Mac and display awake\"\n```\n\n## Tech Stack\n\nSwift 6, SwiftUI, zero third-party dependencies. ~500 lines of code across three files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasylenko%2Fvigil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasylenko%2Fvigil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasylenko%2Fvigil/lists"}