That being said, www.youtube-nocookie.com could in theory be used for a more privacy-focused option (you know, the thing that DuckDuckGo uses on their video search results if you select "Watch Here")
Sorry for the late reply.
Invidious is a front-end / proxy for YouTube. You can check the source code from the Invidious project at https://github.com/iv-org/invidious
If you have any specific questions regarding my instance of invidious feel free to ask.