{"id":49674973,"url":"https://github.com/akselpekin/holdit","last_synced_at":"2026-05-07T01:50:42.397Z","repository":{"id":303281237,"uuid":"1014961942","full_name":"akselpekin/holdit","owner":"akselpekin","description":"A energy efficient macOS notch accessory.","archived":false,"fork":false,"pushed_at":"2025-11-28T13:53:51.000Z","size":7992,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T06:03:29.881Z","etag":null,"topics":["energy-efficiency","macos","swift","swiftui","tray-application"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akselpekin.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-06T18:38:41.000Z","updated_at":"2025-11-28T13:43:05.000Z","dependencies_parsed_at":"2025-07-06T19:42:21.366Z","dependency_job_id":"b79a06f3-fe56-41c1-b0fc-11b8791a8136","html_url":"https://github.com/akselpekin/holdit","commit_stats":null,"previous_names":["akselpekin/holdit"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/akselpekin/holdit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselpekin%2Fholdit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselpekin%2Fholdit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselpekin%2Fholdit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselpekin%2Fholdit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akselpekin","download_url":"https://codeload.github.com/akselpekin/holdit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akselpekin%2Fholdit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32719572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T00:29:05.620Z","status":"ssl_error","status_checked_at":"2026-05-07T00:28:57.074Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["energy-efficiency","macos","swift","swiftui","tray-application"],"created_at":"2026-05-07T01:50:41.855Z","updated_at":"2026-05-07T01:50:42.393Z","avatar_url":"https://github.com/akselpekin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"holdit_new_logo_raw.png\" alt=\"holdit Logo\" width=\"50%\"\u003e\n\n# holdit\n\nA macOS utility accessory that reveals a expanding tray behind the notch when you hover or drag files over it. The tray displays files and folders in a grid, supports drag-and-drop, context menus, batch removal, and keeps its energy impact at Apple’s designated “Low” level.\n\n## Features\n- Expanding tray behind the notch on hover or file drag\n- Dynamic grid layout of file and folder icons\n- Duplicate prevention, drag-out removal, and multi-select\n- Context menus for quick actions\n- Automatic removal of items whose files no longer exist\n- Smooth SwiftUI animations with AppKit tracking for minimal energy use\n\n## Installation (App)\n1. See the releases section.\n\n## Installation (source)\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/yourusername/holdit.git\n   cd holdit\n   ```\n2. Build \u0026 run:\n   ```bash\n   swift run\n   ```\n\n## Usage\n- Hover over the notch area or drag files onto it to expand the tray.\n- Drag items into the tray to add them, or drag them out to remove.\n- Right-click an item for context actions.\n- Use the status-bar menu to clear the tray or quit the app.\n\n## Architecture\n- **main.swift / AppDelegate**: Sets up a transparent `TriggerPanel` for hover/drag detection and a `TrayPanel` for the expanded UI.\n- **LOGIC/TriggerHandler.swift** \u0026 **LOGIC/TrayHandler.swift**: Manages `NSTrackingArea` for hover and collapse logic.\n- **LOGIC/TrayModel.swift**: `@MainActor` model storing `FileItem`s with O(1) duplicate checks and a background `sanityCheck` on `.utility` QoS.\n- **LOGIC/FileItem.swift**: Represents a file/folder item, caches icons with `NSCache` and supports Swift concurrency.\n- **GUI**: SwiftUI `Tray` view displaying items in a grid with smooth animations.\n\n## Energy Impact\nAll event monitoring uses local `NSTrackingArea` and one-time offloaded `.utility` work queues, ensuring “Low” energy impact.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakselpekin%2Fholdit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakselpekin%2Fholdit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakselpekin%2Fholdit/lists"}