{"id":51280877,"url":"https://github.com/jecanizarez/gif-touchbar","last_synced_at":"2026-06-30T01:32:17.227Z","repository":{"id":361501897,"uuid":"1254687566","full_name":"jecanizarez/gif-touchbar","owner":"jecanizarez","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-30T23:02:41.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T00:19:00.756Z","etag":null,"topics":["gif","macos","nyan-cat","pock","pock-widget","touchbar"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jecanizarez.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-05-30T22:10:32.000Z","updated_at":"2026-05-30T23:02:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jecanizarez/gif-touchbar","commit_stats":null,"previous_names":["jecanizarez/gif-touchbar"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jecanizarez/gif-touchbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecanizarez%2Fgif-touchbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecanizarez%2Fgif-touchbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecanizarez%2Fgif-touchbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecanizarez%2Fgif-touchbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jecanizarez","download_url":"https://codeload.github.com/jecanizarez/gif-touchbar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecanizarez%2Fgif-touchbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34949234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"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":["gif","macos","nyan-cat","pock","pock-widget","touchbar"],"created_at":"2026-06-30T01:32:16.336Z","updated_at":"2026-06-30T01:32:17.204Z","avatar_url":"https://github.com/jecanizarez.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GIF Touchbar Pock Widget\n\nA custom [Pock](https://github.com/pock/pock) widget designed to display and animate custom GIFs directly in your MacBook Touch Bar.\n\n## Features \u0026 Implementation\n* **Custom GIF Support**: Load any custom `.gif` file from your disk. The widget securely copies files to local Application Support (`~/Library/Application Support/com.HelloWorld.HelloWorld/custom.gif`) to ensure they load reliably.\n* **Static Loop Mode**: Toggle \"Static Mode\" to play the GIF centered in a fixed position without horizontal movement.\n* **Custom Min Width**: Enforce a minimum width (in points) for custom GIFs. Narrow GIFs are scaled up dynamically (via independent axis scaling) to ensure they remain clearly visible on the Touch Bar.\n* **Animation \u0026 Movement Customization**:\n  * **Duration**: Control the animation traversal speed (seconds).\n  * **Autoreverse**: Option to walk the GIF back and forth across the Touch Bar.\n  * **Translation Range**: Configure custom start (`From Translation X`) and end (`To Translation X`) coordinates.\n* **Programmatic Preference Pane**: A robust, programmatic AppKit Auto Layout UI panel that loads in Pock's native widget settings—no fragile XIB files or resource compilation requirements.\n* **GPU-Accelerated**: Implemented using Core Animation (`CABasicAnimation`) on layer-backed views, keeping CPU overhead at virtual **0%** to preserve battery life.\n* **Dynamic Sizing \u0026 Clipping**: Auto Layout integration allows the widget to stretch and fill empty space on the Touch Bar while enforcing subview clipping (`masksToBounds`) to prevent overflow onto neighboring widgets.\n* **Lifecycle Aware \u0026 Real-time Reloading**: Automatically starts animations when visible, stops them when hidden to preserve resources, and reloads instantly when preferences are updated.\n* **Drag-and-Drop Integration**: Customization previews dynamically load the selected GIF, allowing you to easily drag and position the widget inside Pock's customization palette.\n\n---\n\n## Inspiration \u0026 References\nThis widget was built as an improvement on traditional Touch Bar widgets and was inspired by:\n* **[Pock](https://github.com/pock/pock)**: The open-source framework managing custom Touch Bar widgets.\n* **[Status Widget](https://github.com/pock/status-widget)**: Followed for target setup, lifecycle practices, and customization architecture.\n* **[Nyan Cat Touch Bar App](https://github.com/avatsaev/touchbar_nyancat)**: The original standalone Nyan Cat animation utility by Aslan Vatsaev.\n\n---\n\n## How to Build \u0026 Run\n1. Run `pod install` if dependencies are modified.\n2. Open `HelloWorld.xcworkspace` in Xcode.\n3. Build the project. The build scheme contains a post-build action that compiles the widget bundle (`.pock`) and prompts Pock to install/reload it automatically.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjecanizarez%2Fgif-touchbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjecanizarez%2Fgif-touchbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjecanizarez%2Fgif-touchbar/lists"}