{"id":45537787,"url":"https://github.com/taigrr/spank","last_synced_at":"2026-03-08T07:02:25.627Z","repository":{"id":340055329,"uuid":"1164336049","full_name":"taigrr/spank","owner":"taigrr","description":"Slap your MacBook, it yells back. Uses Apple Silicon accelerometer via IOKit HID.","archived":false,"fork":false,"pushed_at":"2026-02-28T02:32:11.000Z","size":961,"stargazers_count":634,"open_issues_count":6,"forks_count":28,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-28T14:58:32.334Z","etag":null,"topics":["accelerometer","apple-silicon","fun","go","iokit","macos"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/taigrr.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":"2026-02-23T00:43:05.000Z","updated_at":"2026-02-28T14:56:05.000Z","dependencies_parsed_at":"2026-02-27T11:05:05.742Z","dependency_job_id":null,"html_url":"https://github.com/taigrr/spank","commit_stats":null,"previous_names":["taigrr/spank"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/taigrr/spank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fspank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fspank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fspank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fspank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taigrr","download_url":"https://codeload.github.com/taigrr/spank/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fspank/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T12:56:10.327Z","status":"ssl_error","status_checked_at":"2026-03-01T12:55:24.744Z","response_time":124,"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":["accelerometer","apple-silicon","fun","go","iokit","macos"],"created_at":"2026-02-23T02:47:55.898Z","updated_at":"2026-03-01T13:00:42.656Z","avatar_url":"https://github.com/taigrr.png","language":"Go","readme":"# spank\n\nSlap your MacBook, it yells back.\n\n\u003e \"this is the most amazing thing i've ever seen\" — [@kenwheeler](https://x.com/kenwheeler)\n\n\u003e \"I just ran sexy mode with my wife sitting next to me...We died laughing\" — [@duncanthedev](https://x.com/duncanthedev)\n\n\u003e \"peak engineering\" — [@tylertaewook](https://x.com/tylertaewook)\n\nUses the Apple Silicon accelerometer (Bosch BMI286 IMU via IOKit HID) to detect physical hits on your laptop and plays audio responses. Single binary, no dependencies.\n\n## Requirements\n\n- macOS on Apple Silicon (M2+)\n- `sudo` (for IOKit HID accelerometer access)\n\n## Install\n\nDownload from the [latest release](https://github.com/taigrr/spank/releases/latest).\n\nOr build from source:\n\n```bash\ngo install github.com/taigrr/spank@latest\n```\n\n## Usage\n\n```bash\n# Normal mode — says \"ow!\" when slapped\nsudo spank\n\n# Sexy mode — escalating responses based on slap frequency\nsudo spank --sexy\n\n# Halo mode — plays Halo death sounds when slapped\nsudo spank --halo\n```\n\n### Modes\n\n**Pain mode** (default): Randomly plays from 10 pain/protest audio clips when a slap is detected.\n\n**Sexy mode** (`--sexy`): Tracks slaps within a rolling 5-minute window. The more you slap, the more intense the audio response. 60 levels of escalation.\n\n**Halo mode** (`--halo`): Randomly plays from death sound effects from the Halo video game series when a slap is detected.\n\n## How it works\n\n1. Reads raw accelerometer data directly via IOKit HID (Apple SPU sensor)\n2. Runs vibration detection (STA/LTA, CUSUM, kurtosis, peak/MAD)\n3. When a significant impact is detected, plays an embedded MP3 response\n4. 500ms cooldown between responses to prevent rapid-fire\n\n## Credits\n\nSensor reading and vibration detection ported from [olvvier/apple-silicon-accelerometer](https://github.com/olvvier/apple-silicon-accelerometer).\n\n## License\n\nMIT\n","funding_links":[],"categories":["HarmonyOS","Go"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fspank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaigrr%2Fspank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fspank/lists"}