Add this Piglet
Add the Piglet source
pig piglet add npm:@pi-in-go/pigpen-piglet-pig-musicPiG copies the Piglet source into ~/.pig/piglets/ and validates it. Start it with pig --piglet pig-music.
Piglets run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party Piglet. This one is published by the PiG project from the Pigpen repository; that is not a verification claim.
What this Piglet is
Pigpen index status: planned (it records no signed Binary release for this Piglet). Source in the Pigpen repository ↗
- Not released yet: no signed Piglet Binary is published and no remote install command is offered. The source composition is in this repository; see RELEASE-BLOCKERS.md.
- Go only. A full-screen music player: /music (or alt+m) opens YouTube Music search, library, queue and transport over mpv, with yt-dlp resolving tracks; the music keeps playing while the player is hidden and survives /reload. The extension is the Package components/pig-music. Run npm run stage before using its generated manifest under dist/staged.
- Nothing starts by itself. The extension registers the /music command and the alt+m shortcut and no tool: no mpv or yt-dlp process, no network, no cookie access, no footer or widget and no timer before you type /music. The library reads your browser's cookies only after you say yes, once per browser. mpv and yt-dlp are not bundled: /music setup and /music doctor check the machine.
- A Piglet Binary builds locally from the staged manifest with PIG_SOURCE_ROOT set to a git checkout of the PiG source. No release is published; version 0.1.0 is a development default and only linux/amd64 has been built and run; linux/arm64, darwin/arm64, darwin/amd64 and windows/amd64 are listed in the manifest and compile-checked only; none is a support claim.
- Also selected by pig-with-batteries.
Selects
Extensions (1)
pig-musicfrom package:pig-music
Packages it uses
- @pi-in-go/pigpen-pig-music
^0.2.0
Binary targets
linux/amd64linux/arm64darwin/arm64darwin/amd64windows/amd64
These are the targets the manifest lists for pig piglet build. Which of them have been built and run is in the notes above.
Signing
- Signed Piglet Binary: none published. Nothing has been signed for this Piglet yet, so
pig piglet pullhas no release to pull. - npm package: 2 registry signatures.
piglet.yaml
# GENERATED by scripts/npm-piglets.mjs from piglets/pig-music/piglet.yaml. Do not edit.
name: pig-music
description: "PiG with a music player: /music opens a full-screen YouTube Music player (yt-dlp resolves, mpv plays) that keeps playing while it is hidden. Nothing starts until you type /music."
release:
version: 0.1.1
build:
targets:
- linux/amd64
- linux/arm64
- darwin/arm64
- darwin/amd64
- windows/amd64
extensionRealization: fused
packages:
pig-music: npm:@pi-in-go/pigpen-pig-music@^0.2.0
extensions:
- name: pig-music
origins:
- package:pig-music
tools: []
skills: []
discovery:
extensions:
- user
- workspace
skills:
- user
- workspace
PiG manifest JSON
The pig field of package.json.
{
"piglet": "piglet.yaml"
}README
Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.
pig-music
PiG with one extension: the pig-music player (Michael Kinsy, MIT), all Go.
Nothing starts until you type /music or press alt+m.
| Command | What it does |
|---|---|
/music, alt+m | Opens the full-screen player: search, library, queue, transport, volume, shuffle, repeat, settings, cover art. Esc or q hides it and the music keeps playing. |
/music setup, /music doctor | Check that mpv and yt-dlp are installed and say what is missing. |
/music stop, /music pause, /music vol 50 | Quick commands that work without opening the player. |
The extension registers no tool, so the model is offered nothing. YouTube Music is the source: yt-dlp resolves tracks and a
detached mpv plays them, so the queue survives hiding the player and /reload. Neither program is bundled. The library tab
reads your signed-in browser's cookies only after you agree, once per browser; search and playback never carry them.
The same Package is selected by pig-with-batteries, and installs on its own.
The built-in tools, models and ambient extensions and Skills stay at PiG's defaults.
Run from a checkout
npm ci --ignore-scripts
npm run stage
pig piglet validate dist/staged/piglets/pig-music/piglet.yaml
pig --piglet dist/staged/piglets/pig-music/piglet.yaml
Build a Piglet Binary (needs a git checkout of the PiG source the pig was built from):
PIG_SOURCE_ROOT=/path/to/pig-git-checkout \
pig piglet build dist/staged/piglets/pig-music/piglet.yaml --format binary --targets <os>/<arch> --out ./pig-music
The Binary fuses the extension (extensionRealization: fused). Linux/amd64 is the development default; no release is
published and no support is claimed.
Signed Binary
This npm package is the Piglet's source: pig piglet add npm:@pi-in-go/pigpen-piglet-pig-music registers it, and its Packages install from npm. The signed per-platform Binary is published separately on GitHub Releases (release pig-music/v0.1.1):
pig piglet pull 'github:MichaelKinsy/pigpen/pig-music@0.1.1'