{"id":49887800,"url":"https://github.com/nperez0111/cat-nip","last_synced_at":"2026-05-15T19:04:26.461Z","repository":{"id":354734595,"uuid":"1224941153","full_name":"nperez0111/cat-nip","owner":"nperez0111","description":"WinAMP-spirited macOS music visualizer on Electrobun + WebGPU. Hot-swappable shader-based packs reacting to system audio.","archived":false,"fork":false,"pushed_at":"2026-05-10T17:34:45.000Z","size":821,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-10T18:25:17.462Z","etag":null,"topics":["audio-visualization","bun","electrobun","macos","music-visualizer","screencapturekit","shaders","webgpu","wgsl","winamp"],"latest_commit_sha":null,"homepage":"https://cat-nip.nickthesick.com/","language":"TypeScript","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/nperez0111.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-29T19:35:29.000Z","updated_at":"2026-05-04T18:16:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nperez0111/cat-nip","commit_stats":null,"previous_names":["nperez0111/music-visualizer","nperez0111/cat-nip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nperez0111/cat-nip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nperez0111%2Fcat-nip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nperez0111%2Fcat-nip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nperez0111%2Fcat-nip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nperez0111%2Fcat-nip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nperez0111","download_url":"https://codeload.github.com/nperez0111/cat-nip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nperez0111%2Fcat-nip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33075259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["audio-visualization","bun","electrobun","macos","music-visualizer","screencapturekit","shaders","webgpu","wgsl","winamp"],"created_at":"2026-05-15T19:04:25.400Z","updated_at":"2026-05-15T19:04:26.450Z","avatar_url":"https://github.com/nperez0111.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cat Nip\n\nYour music on catnip. A desktop music visualizer built on\n[Electrobun](https://blackboard.sh/electrobun/) and WebGPU. It captures the\naudio playing on your system (Spotify, browser, anything that makes sound)\nand renders shader-based visuals that react in real time. Visualizers are\nhot-swappable \"packs\" — drop in someone else's `.viz` file and use it\nimmediately.\n\n\u003e **Status:** macOS 14.2+ today; Windows and Linux ride the same audio\n\u003e helper (cpal-based). Render and pack systems are cross-platform.\n\n## Features\n\n- **Captures system audio** with no virtual driver. macOS uses CoreAudio\n  process taps (14.2+); Windows uses WASAPI loopback; Linux uses the\n  PulseAudio/PipeWire monitor source. First run on macOS prompts for the\n  \"System Audio\" privacy permission.\n- **Hot-swappable visualizer packs.** Switch between bundled visualizers\n  from a dropdown; transitions crossfade smoothly.\n- **Two pack tiers:**\n  - **Tier 1** — `manifest.json` + `shader.wgsl`. Pure WebGPU shaders.\n  - **Tier 2** — adds a `pack.wasm` that computes per-frame uniforms in\n    arbitrary code (any language that compiles to WASM).\n- **Drag-and-drop installs.** A `.viz` file is just a zip with a manifest\n  inside; click the **+** in the controls panel and pick one.\n- **Native performance.** WebGPU runs out of the Bun main process via\n  wgpu-native; no browser overhead in the render hot path.\n- **Floating controls.** A tiny semi-transparent always-on-top panel sits\n  over (or anywhere near) the visualizer. Drag it by the header,\n  collapse to a pill with the **▾**.\n\n## Quick start\n\n```bash\nbun install\nbun run build:audiocap   # builds the cpal-based system-audio helper (one-time)\nbun run build:packs      # compiles the AssemblyScript sample pack (one-time)\nbun run dev\n```\n\n`build:audiocap` requires [`rustup`](https://rustup.rs) with both\n`aarch64-apple-darwin` and `x86_64-apple-darwin` targets installed\n(it produces a universal binary). One-time setup:\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n~/.cargo/bin/rustup target add x86_64-apple-darwin\n```\n\nOn Windows and Linux, the script falls back to a host-architecture build\nand only requires `cargo` on PATH.\n\nThe first time the app starts on macOS 14.2+, the system will prompt for\n**System Audio** permission. Grant it — without it, the loopback stream\nsilently records zero. The visualizer falls back to synthesized features\nso you'll still see motion.\n\n## Using it\n\n- **Switch packs:** pick one from the **pack** dropdown. Crossfades over\n  ~1.5 seconds.\n- **Import a .viz:** click the **+** button next to the dropdown. Pick a\n  `.viz` file. It's extracted into `~/Library/Application Support/cat-nip.nickthesick.com/packs/\u003cid\u003e/`\n  and added to the dropdown.\n- **Drag the panel:** click and hold anywhere on the panel header.\n- **Collapse the panel:** click **▾** to shrink to a pill, **▸** to expand.\n- **Move the visualizer window:** standard macOS title-bar drag.\n\nThe panel and visualizer windows are independent — each remembers its own\nsize and position across launches.\n\n## Pack basics (writing your own)\n\nA pack is a directory with `manifest.json` and a WGSL shader file.\n\n```\nmy-pack/\n├── manifest.json     # metadata + entrypoints\n├── shader.wgsl       # vertex + fragment WGSL\n└── pack.wasm         # optional: Tier-2 per-frame uniform compute\n```\n\n```json\n{\n  \"schemaVersion\": 1,\n  \"id\": \"my-pack\",\n  \"name\": \"My Pack\",\n  \"version\": \"1.0.0\",\n  \"author\": \"you\",\n  \"shader\": \"shader.wgsl\",\n  \"wasm\": \"pack.wasm\"\n}\n```\n\nTo distribute, zip the directory with `manifest.json` at the root and\nrename the zip to `something.viz`. Other people import it with the **+**\nbutton.\n\nFor full pack-authoring details, see [ARCHITECTURE.md](./ARCHITECTURE.md#pack-format)\nor run `/new-pack` in Claude Code if you have the project's skill installed.\n\n## What's where\n\n```\npackages/\n├── app/             # Electrobun desktop visualizer\n│   └── src/\n│       ├── bun/             # main process: rendering, audio, packs, IPC\n│       ├── mainview/        # controls panel HTML/CSS/JS\n│       ├── native/audiocap/ # Rust CLI: system-audio loopback (cpal)\n│       └── packs/           # built-in visualizer packs\n├── shared/          # manifest types, validation, hashing, limits\n├── cli/             # CLI tool (catnip)\n├── server/          # registry server (Nitro)\n└── lexicons/        # AT Protocol schemas\n```\n\nSee [ARCHITECTURE.md](./ARCHITECTURE.md) for how the pieces fit together.\n\n## Permissions\n\n| Platform | Permission        | Why                                              |\n|----------|-------------------|--------------------------------------------------|\n| macOS    | System Audio      | CoreAudio process taps gate loopback behind it.  |\n| Windows  | (none)            | WASAPI loopback needs no privilege.              |\n| Linux    | (none)            | PulseAudio/PipeWire monitor source is open.      |\n\nOn macOS, if you deny the permission, re-enable it at **System Settings →\nPrivacy \u0026 Security → System Audio Recording** (the new \"System Audio\nOnly\" entry, not the legacy \"Screen Recording\") and restart the app.\nA common gotcha: granting *only* \"Screen Recording\" causes a silent\nrecord of zeros — make sure the System-Audio toggle is on.\n\n## License\n\nMIT — see [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnperez0111%2Fcat-nip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnperez0111%2Fcat-nip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnperez0111%2Fcat-nip/lists"}