This project is a simple utility for chaining yt-dlp and mpv.
Download and install nodejs, yt-dlp and mpv. Check that all of them are accessible from your command line.
Clone the github repo. Then from the cloned folder run:
npm install
npm install -g .
Then try:
npx mpvim "<youtube-url>"
Check help at
npx mpvim --help
For audio/video selectors check the yt-dlp documentation about format selection.