A sleek, browser-based music player built with React, TypeScript, and Vite. Upload and play your own downloaded audio files with a minimal, modern UI.
🔗 Live Demo: react-music-player-snpc.vercel.app
- 🎶 Play, pause, skip, and seek through audio
- 📂 Add your own music (via file upload)
- 🎨 Styled with Tailwind CSS
- ⚡ Powered by Vite for fast development
- 🛠️ Written in TypeScript for type safety
- 💾 Stores uploaded audio in IndexedDB for persistence (songs remain after reload)
git clone https://github.com/thatcoolcoder1/react-music-player.git
cd react-music-playernpm install
# or
yarnnpm run dev
# or
yarn devApp will be running at: http://localhost:5173
npm run build
# or
yarn buildThe optimized output will be in the dist folder.
Deploy it to Vercel, Netlify, or any static host.
-
Linting
npm run lint
-
Styling Tailwind is already set up in
tailwind.config.js.
react-music-player/
├── src/
│ ├── components/ # UI components (Player, Controls, etc.)
│ ├── db/ # IndexedDB management
│ ├── App.tsx # Main app
│ └── main.tsx # Entry point
├── public/ # Static assets
├── package.json
└── vite.config.ts
- Songs are stored locally in your browser’s IndexedDB.
- They are not synced across devices or browsers.
- Clearing site data will remove saved songs.
- Fork this repo
- Create your feature branch (
git checkout -b feature-name) - Commit changes (
git commit -m 'Add new feature') - Push branch (
git push origin feature-name) - Open a Pull Request 🚀