npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lo-pi

v1.0.0

Published

pi coding agent extension: toggle a lofi radio stream (/lopi) with an animated gradient equalizer in the footer

Readme

lo-pi

A pi coding agent extension that toggles a lofi radio stream from inside the terminal. One command starts/stops playback (via mpv) and animates a gradient equalizer in the footer while it plays.

Features

  • /lopi — start the default Radio Paradise lofi stream (https://stream.radioparadise.com/mp3-128?genre=lofi)
  • /lopi <stream-url> — play any MP3 stream URL instead
  • /lopi again — stop
  • Footer indicator: 5-shape equalizer with a per-bar 256-color gradient (coral → pink → purple → blue → cyan) that drifts in sync with the animation; auto-clears on stop or if mpv exits (stream ended / crashed)
  • Cleanup on session shutdown — no orphaned mpv processes

Requirements

Setup

Install from npm:

pi install npm:lo-pi

Restart pi (or reload extensions). Then in any session:

/lopi                # start default lofi stream
/lopi <stream-url>   # play a custom stream
/lopi                # stop

How it works

  • Spawns mpv --no-video --no-terminal <url> with ignored stdio.
  • A 400ms setInterval ticks 4 height frames; each frame colors its 5 shapes individually with raw ANSI 256-color codes (\x1b[38;5;Nm), offset by the frame index so the gradient sweeps left→right. Raw ANSI is used because pi's theme.fg() only accepts theme color names.
  • proc.on("exit") and session_shutdown both call stop(), which clears the timer, deletes the footer status entry, and kills mpv.