A random toy to find interesting videos near you that you might not have discovered otherwise.
Instead of letting YouTube's recommendation algorithm decide what you should watch, this app shows you random videos uploaded near your location based on IP geolocation.
- When you load the app, it determines your approximate location from your IP address
- It searches for the 10 most recent videos uploaded within 10 miles of your location
- It picks one at random and shows it to you
- If no videos are found, it expands the search radius (up to 1000 miles)
- Videos you've seen are tracked in your browser so you always get something new
- Node.js 18+
- A YouTube Data API v3 key
- Go to the Google Cloud Console
- Create a new project (or select an existing one)
- Enable the YouTube Data API v3
- Create credentials (API key)
- Copy the API key
npm installCreate a .env.local file in the root directory:
YOUTUBE_API_KEY=your_youtube_api_key_here
npm run devOpen http://localhost:3000 in your browser.
npm run build
npm start- Push your code to GitHub
- Import the project in Vercel
- Add the
YOUTUBE_API_KEYenvironment variable in Vercel's project settings - Deploy!
- Next.js 14 (App Router)
- TypeScript
- YouTube Data API v3
- ip-api.com for geolocation
MIT