A high-quality lofi and EDM music platform designed for coding and productivity, similar to FreeCodeCamp Radio but optimized for local use with better audio quality.
- High-Quality Audio: Optimized for hi-res music playback
- Simple Controls: Play, pause, next, previous, shuffle
- Music History: Track recently played songs
- Clean UI: Minimalist design focused on the music experience
- Responsive Design: Works on desktop and mobile devices
- Local Storage: Saves your listening history
- Open
index.htmlin your web browser - Click the play button to start listening
- Use the controls to navigate through the playlist
- Your listening history will be automatically saved
- Play/Pause: Toggle music playback
- Previous: Go to previous track (or restart current if >3 seconds played)
- Next: Skip to next track
- Shuffle: Enable/disable random track selection
- Volume: Adjust playback volume
- Progress Bar: Click to seek to specific time
- Playlist: Click any track to play immediately
The platform automatically connects to various free streaming radio stations:
- LoFi Hip Hop Radio: ChilledCow style 24/7 lofi beats
- Chillhop Radio: Continuous chill hop and study music
- Focus Music Radio: Ambient and concentration music
- Deep Focus: Brain.fm style focus-enhancing audio
- Coding Radio: Electronic beats perfect for programming
- Synthwave Radio: Retro electronic and synthwave
To add more radio stations, update the streamingSources array in script.js:
this.streamingSources = [
{
title: "Your Radio Station",
artist: "Station Description",
src: "https://stream-url.com/stream.mp3",
type: "stream",
genre: "Genre Name"
},
// Add more streams...
];- MP3 (recommended for compatibility)
- WAV (for highest quality)
- FLAC (for lossless quality)
- OGG
- Frontend: Vanilla HTML5, CSS3, JavaScript
- Audio: HTML5 Audio API
- Storage: localStorage for history
- Responsive: CSS Grid and Flexbox
My_Lofi/
├── index.html # Main HTML structure
├── styles.css # Styling and layout
├── script.js # Audio player functionality
├── README.md # This file
└── music/ # Your audio files (create this folder)
- Chrome 60+
- Firefox 55+
- Safari 11+
- Edge 79+
Free to use and modify for personal projects.