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

@ohene/flow-player

v1.1.4

Published

<div align="center"> <img src="https://raw.githubusercontent.com/your-repo/flow-player/main/assets/logo.png" alt="Flow Player Logo" width="120" />

Readme

Flow Player

TypeScript music management library for web and mobile applications


Overview

Flow Player is a robust TypeScript library for managing music collections, extracting metadata, and organizing playlists. It supports both web and mobile platforms, providing a unified API for music management and playback.


Features

  • 🎵 Music collection management
  • 📱 Cross-platform metadata extraction (Web & Mobile)
  • 🗂️ Playlist creation and organization
  • 🔒 Type-safe API
  • ⚡ Fast, parallelized metadata extraction
  • 🛠️ Simple integration

Installation

npm install @ohene/flow-player
# or
### Playlist

Usage Example

import { Player, WebPlayer, MobilePlayer } from 'flow-player';
import PlaylistDelta from 'flow-player/delta/Playlist';

const songs = [
  { music_path: '/path/to/song1.mp3', isPlaying: false },
  { music_path: '/path/to/song2.mp3', isPlaying: true }
];

const player = new Player(songs);
console.log(player.getCurrentPlaying());

const webPlayer = new WebPlayer(songs);
const metadata = await webPlayer.getCurrentSongMetadata();

const mobilePlayer = new MobilePlayer(songs);
const mobileMetadata = await mobilePlayer.getExpoSongMetadata(songs[0]);

const playlist = new PlaylistDelta(songs, "My Description", "thumb.jpg", "My Playlist");
console.log(playlist.getPlaylistInfo());

API Reference

Player (Base Class)

  • getSongs(): musicDelta[] — Gets all songs
  • getCurrentPlaying(): musicDelta | undefined — Gets currently playing song
  • playNext(): void — Moves to next song
  • playPrevious(): void — Moves to previous song
  • getShuffledSongs(): musicDelta[] — Returns a shuffled song list

WebPlayer

  • getCurrentSongMetadata(): Promise<IAudioMetadata["common"] | null> — Gets metadata for current song
  • getSongMetadata(song: musicDelta): Promise<IAudioMetadata["common"] | null> — Gets metadata for specific song
  • getSongsMetaData(songs: musicDelta[]): Promise<IAudioMetadata["common"][] | null> — Gets metadata for multiple songs

MobilePlayer

  • getExpoSongMetadata(song: musicDelta): Promise<MetadataResponse | null> — Gets mobile-optimized metadata
  • getSongsMetaData(songs: musicDelta[]): Promise<Array<{ path: string, metadata: MetadataResponse | null }>> — Gets metadata for multiple songs in parallel

PlaylistDelta

  • getPlaylistInfo(): playlistDelta — Gets complete playlist info
  • addSongs(songs: musicDelta[]): void — Adds songs to playlist
  • removeSongsAtIndex(index: number): void — Removes song at index
  • removeSongsWithId(id: number): void — Removes song with ID
  • setThumbnail(thumbnail: string): void — Updates playlist thumbnail
  • setName(name: string): void — Updates playlist name
  • setDescription(description: string): void — Updates playlist description

Performance Notes

  • Metadata extraction for multiple songs is parallelized for speed
  • Song lookups use unique properties for accuracy and efficiency
  • Playlist and song lists are kept in sync for reliable state management

License

MIT

  • getPlaylistInfo(): playlistDelta - Gets complete playlist info
  • addSongs(songs: musicDelta[]): void - Adds songs to playlist
  • removeSongsAtIndex(index: number): void - Removes song at index
  • removeSongsWithId(index: number): void - Removes song with ID
  • setThumbnail(thumbnail: string): void - Updates playlist thumbnail
  • setName(name: string): void - Updates playlist name

Development

git clone https://github.com/your-repo/flow-player.git
cd flow-player
npm install
npm run build

License

MIT