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

osu-play

v1.2.1

Published

Play music from your osu!lazer beatmaps from the terminal.

Readme

NPM version Downloads MIT License

Listen to your favourite osu!lazer beatmaps as a spotify playlist from the terminal

Requirements

  • Node.js 20+
  • mpv available on your PATH
  • An osu!lazer install with beatmaps available locally

If you're developing locally, Realm's native bindings are still the one awkward part of this stack. Use the repo's setup script so Bun install and the Realm repair step happen in the right order.

Installation

npm install -g osu-play

Or run it without a global install:

npx osu-play

Usage

CLI

# Launch the TUI player
osu-play

# Export a playlist file
osu-play --exportPlaylist playlist.txt

# Loop the playlist
osu-play --loop

TUI Controls

  • Up/Down or j/k: Move through the playlist
  • Left/Right or h/l: Seek backward or forward by 5 seconds
  • Enter: Play the selected track
  • Space: Pause or resume playback
  • n / p: Next or previous track
  • PageUp / PageDown: Jump faster through the playlist
  • r: Toggle looping
  • s: Stop playback
  • q: Quit
  • /: Enter search mode
  • Type in search mode: Jump the selection by track title
  • Backspace: Edit the search query
  • Enter: Leave search mode and keep the current query
  • Esc: Leave search mode, or clear the current query outside search mode

API

import { getLazerDB, getRealmDBPath } from "osu-play";

const realmPath = getRealmDBPath({ osuDataDir: "/path/to/osu" });
const db = await getLazerDB(realmPath);

Options

  • --reload, -r: Deprecated and ignored
  • --exportPlaylist: Export the discovered track paths to a file instead of launching the TUI
  • --osuDataDir, -d: Override the osu!lazer data directory
  • --configDir, -c: Deprecated and ignored
  • --loop, -l: Restart from the beginning when playback reaches the end
  • --help, -h: Show help

Development

Bun 1.3+ is required only for development and contributing; it is not needed to run the published CLI via npm install -g or npx osu-play.

bun run setup
bun run dev
bun run check

Useful day-to-day commands:

bun run dev
bun run dev -- --loop
bun run dev -- --exportPlaylist playlist.txt
bun run test
bun run package

If you hit a Realm native-binding error like realm.node missing or Node failing to load Realm:

bun install
bun run repair:realm

If osu-play fails with an mpv startup or IPC error, make sure mpv is installed and available on your shell PATH.

bun run package builds the distributable files and creates a local npm tarball with bun pm pack.

osu-play now reads osu!lazer's live client.realm directly in read-only mode instead of copying it into a separate app directory.

Standalone Bun executables are intentionally not part of the release flow right now. The current Realm dependency uses native bindings, and Bun's standalone executable support does not yet cover that path cleanly enough for this app.

License

MIT