Blog · How-to

Music player plug-ins on Linux: visualizers, .ape and YouTube

Popamp, a free Winamp-style music player for Linux and Windows, keeps its core small. Whatever only some people want comes as a plug-in: full-screen visualizers, Monkey's Audio (.ape) files, crossfeed for headphones and YouTube playback. Each plug-in is a WebAssembly module that runs in a sandbox. It can do only what you allowed it to do when you turned it on.

Which build you need

Popamp comes in two builds. Popamp is the player without plug-ins. Popamp Plus is the same player with plug-in support. Both are on the install section for Debian and Ubuntu, Fedora, openSUSE, AppImage and Windows. Popamp itself ships no plug-ins: you pick the ones you want.

What there is today

All of them are in the plug-in gallery.

Install a plug-in

The simplest way works on Linux and Windows alike. In Popamp Plus open Options › Gallery (popamp.app)…, find the plug-in and install it. Before it installs anything, the window shows what the plug-in may do. It checks the download against the size and SHA-256 in the catalog, and updates come the same way.

On Linux the plug-ins are also packages, so they update with the rest of the system:

sudo apt install popamp-plugin-lotus      # Debian, Ubuntu
sudo dnf install popamp-plugin-lotus      # Fedora
sudo zypper install popamp-plugin-lotus   # openSUSE

A plug-in stays off until you allow it, however you installed it. Open Options › Plug-ins…, tick it and press OK. Visualizers then open from the Visualization menu: F toggles full screen and Esc leaves it.

Why plug-ins cannot harm the player

Old Winamp plug-ins were DLLs: native code with every right the player had, so a bad one could crash it or read your files. Popamp runs each plug-in as WebAssembly through Extism, built on wasmtime. By default a plug-in can only compute: it has no files, no network and no programs. Calls to it have time and memory limits. A plug-in that fails is switched off, and the music goes on.

A plug-in that needs more says so in its manifest, and you see it before you turn it on. YouTube, for example, may run yt-dlp and ffmpeg with fixed arguments and links to YouTube only, never a shell. If a new version asks for more, Popamp asks you again. Visualizers, decoders and sound effects need no permissions at all. A visualizer only describes what to draw, and the player makes every GPU call itself.

Write your own

A plug-in is a plugin.wasm with a short plugin.toml beside it, in a folder under ~/.local/share/popamp/plugins/. In Rust you add the popamp-plugin-api crate and build for wasm32-unknown-unknown. Each of the plug-ins above is also a small example of its kind, and all of them are open source under MIT or Apache-2.0. The design and the security rules are in docs/plugins.md.

The plug-in API is still young and may change between versions. Popamp contains no Winamp code and does not load Winamp DLLs.

More from the blog: Winamp skins on Linux and toolbar mode.