{"_id":"@0xaban/pi-dj","name":"@0xaban/pi-dj","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@0xaban/pi-dj","version":"0.1.0","publishConfig":{"access":"public"},"license":"Apache-2.0","type":"module","description":"Spotify now playing for Pi, with pastel themes and configurable layouts.","keywords":["pi-package"],"repository":{"type":"git","url":"git+https://github.com/0xABAN/pi-extensions.git","directory":"dj"},"homepage":"https://github.com/0xABAN/pi-extensions/tree/main/dj","bugs":{"url":"https://github.com/0xABAN/pi-extensions/issues"},"pi":{"extensions":["./index.ts"],"image":"https://raw.githubusercontent.com/0xABAN/pi-extensions/main/dj/assets/full.png"},"dependencies":{"proper-lockfile":"4.1.2"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*","@earendil-works/pi-tui":"*"},"peerDependenciesMeta":{"@earendil-works/pi-coding-agent":{"optional":true},"@earendil-works/pi-tui":{"optional":true}},"gitHead":"c4fcf4ffbd40a7118c4675feb8bfa5a3405d42ec","_id":"@0xaban/pi-dj@0.1.0","_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-S/pMB8wFErfkdvOK8CvR4C8GlpxaUfvDmuH1WOCNujXyp2P7mVtzFugGPnW4vam/IngTOmBO80CcsAcO4gr43w==","shasum":"363f3a438843901d415a41f5a4e1402b8ba8fbe5","tarball":"https://registry.npmjs.org/@0xaban/pi-dj/-/pi-dj-0.1.0.tgz","fileCount":9,"unpackedSize":65136,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAXQ0jY+k+50SC+SGYdzIA43DlLyZe5kKikGL4W/XkJjAiB9Ibfe7G0kOzxpDfE/u8MZM0dfOURViSmhCiZKTWNJFA=="}]},"_npmUser":{"name":"0xaban","email":"admr0805@gmail.com"},"directories":{},"maintainers":[{"name":"0xaban","email":"admr0805@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-dj_0.1.0_1788801067226_0.8437096237010262"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-07T17:11:06.962Z","0.1.0":"2026-09-07T17:11:07.377Z","modified":"2026-09-07T17:11:07.678Z"},"maintainers":[{"name":"0xaban","email":"admr0805@gmail.com"}],"description":"Spotify now playing for Pi, with pastel themes and configurable layouts.","homepage":"https://github.com/0xABAN/pi-extensions/tree/main/dj","keywords":["pi-package"],"repository":{"type":"git","url":"git+https://github.com/0xABAN/pi-extensions.git","directory":"dj"},"bugs":{"url":"https://github.com/0xABAN/pi-extensions/issues"},"license":"Apache-2.0","readme":"# dj\n\nSpotify now playing for [Pi](https://github.com/earendil-works/pi), with pastel colors and live previews.\n\n![DJ demo](https://raw.githubusercontent.com/0xABAN/pi-extensions/main/dj/assets/demo.gif)\n*Spotify while you work.*\n\n- `/dj`: toggle\n- `/dj layout`: pick a layout, or use `/dj minimal|medium|full`\n- `/dj theme`: animated palettes, solid colors, custom hex\n- `/dj placement above|below`: move around the editor\n- `/dj auth`: connect Spotify\n\n<table>\n  <tr>\n    <td colspan=\"2\"><img src=\"https://raw.githubusercontent.com/0xABAN/pi-extensions/main/dj/assets/full.png\" width=\"800\" alt=\"Full layout showing a paused Radiohead track and elapsed time\"/><br/><em>Full layout, paused.</em></td>\n  </tr>\n  <tr>\n    <td><img src=\"https://raw.githubusercontent.com/0xABAN/pi-extensions/main/dj/assets/minimal.png\" width=\"400\" alt=\"Minimal layout showing only the track title below the editor\"/><br/><em>Minimal: title only.</em></td>\n    <td><img src=\"https://raw.githubusercontent.com/0xABAN/pi-extensions/main/dj/assets/above.png\" width=\"400\" alt=\"Spotify artist, title, and elapsed time above the editor\"/><br/><em>Above the editor.</em></td>\n  </tr>\n</table>\n\n## Install\n\n```sh\npi install npm:@0xaban/pi-dj\n```\n\nInstall DJ individually or through the collection, not both. Run `/reload`.\n\nCreate a [Spotify app](https://developer.spotify.com/dashboard) with redirect URI `http://127.0.0.1/callback` (no port). Run `/dj auth` and enter its Client ID. No client secret needed; DJ requests read-only playback access.\n\nDefaults: full layout, below the editor, pastel rainbow. Pickers preview live; enter saves, esc goes back. Custom colors accept `#RGB` or `#RRGGBB`: one for solid, two or more for animated.\n\nDJ stores preferences and credentials in `~/.pi/agent/dj/` and imports legacy Agent DJ credentials once. Use `/dj auth` to reconnect, not the legacy installer.\n\nFor **powerline → DJ → last prompt** ordering, apply the optional [powerline patch](https://github.com/0xABAN/configs/blob/main/pi/agent/patches/powerline-dj.py). Reapply after powerline updates, then `/reload`.\n\nLocal development: clone this repo, run `bun install --ignore-scripts`, then `pi install ./dj`. Check with `bun test ./dj` and `bun run typecheck`.\n\nBased on [Agent DJ](https://github.com/AdamPSU/agent-dj) · [Apache-2.0](LICENSE)\n","readmeFilename":"README.md","_rev":"1-835b5675bec16922e5028cd6acaffc98"}