Skip to main content
Home

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

This package works with Node.js, BunIt is unknown whether this package works with Cloudflare Workers, Deno
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
This package works with Bun
JSR Score
100%
Published
a year ago (0.1.0)


osu!play

NPM version Downloads MIT License

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

Installation

Requirements

  • Node.js (v18 or higher)
  • osu!lazer with some beatmaps to listen to 😉
  • That's it!

Quick start

  • Try out the latest release without installing anything:

    npx osu-play # using npm
    pnpm dlx osu-play # using pnpm
    
  • Install the latest release globally:

    npm i -g osu-play # using npm
    pnpm i -g osu-play # using pnpm
    

Usage

The osu-play command can be used with the following options:

➜  korigamik git:(main) ✗ osu-play --help
Play music from your osu!lazer beatmaps from the terminal
Usage: osu-play [options]

Options:
      --help            Show help                                      [boolean]
      --version         Show version number                            [boolean]
  -r, --reload          Reload lazer database         [boolean] [default: false]
      --exportPlaylist  Export playlist to a file                       [string]
  -d, --osuDataDir      Osu!lazer data directory
                            [string] [default: "/home/origami/.local/share/osu"]
  -c, --configDir       Config directory
                            [string] [default: "/home/origami/.config/osu-play"]
  -l, --loop            Loop the playlist on end      [boolean] [default: false]

This package can be used as a library or as a cli application. To use the lazer database interaction in your applicatoins import the osu-play package and start using it!

import { lazer } from "osu-play";

const realm = getLazerDB();

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@korigamik/osu-play

Import symbol

import * as osu_play from "@korigamik/osu-play";
or

Import directly with a jsr specifier

import * as osu_play from "jsr:@korigamik/osu-play";

Add Package

pnpm i jsr:@korigamik/osu-play
or (using pnpm 10.8 or older)
pnpm dlx jsr add @korigamik/osu-play

Import symbol

import * as osu_play from "@korigamik/osu-play";

Add Package

yarn add jsr:@korigamik/osu-play
or (using Yarn 4.8 or older)
yarn dlx jsr add @korigamik/osu-play

Import symbol

import * as osu_play from "@korigamik/osu-play";

Add Package

vlt install jsr:@korigamik/osu-play

Import symbol

import * as osu_play from "@korigamik/osu-play";

Add Package

npx jsr add @korigamik/osu-play

Import symbol

import * as osu_play from "@korigamik/osu-play";

Add Package

bunx jsr add @korigamik/osu-play

Import symbol

import * as osu_play from "@korigamik/osu-play";