Skip to main content
TypeScript

music-player

No description provided

Commits
1
Files
4
Size
19.7 KB
Langs
1
Created
Sep 23, 2025
Last push
9 months ago
README.md

music

A minimal music player for Cloudflare R2-hosted MP3s. Built for smallweb.

Live: https://music.ejfox.com

Features

  • Lists MP3s from R2 bucket
  • Real-time audio visualizer
  • Unicode waveform display (crowdsourced from clients)
  • Keyboard shortcuts: space play/pause, n next, p prev, s shuffle
  • Shareable track URLs

Setup

cp .env.example .env
# Edit .env with your R2 credentials

Environment Variables

VariableDescription
R2_ACCOUNT_IDCloudflare account ID
R2_ACCESS_KEY_IDR2 API access key
R2_SECRET_ACCESS_KEYR2 API secret key
R2_BUCKET_NAMER2 bucket name (default: ejfox-personal)

Run

deno run --allow-net --allow-env --allow-read --allow-write main.ts

Or with smallweb, just drop in a folder and set env vars in .env.