Invidious API for PeerTube

I was noticing how many different frontends there are for Invidious, and how few Invidious instances there are nowadays, and I thought it might be nice to be able to use those frontends with a PeerTube instance. What I’m proposing here is an Invidious compatible API endpoint so you can use Invidious clients to watch videos on PeerTube (perhaps as an external addon or toggleable feature). No idea how practical this is from a technical perspective, but I thought I’d put it here regardless.