What's the difference between legacy and next

Hello,

I saw that in the Cockpit official repo there are branches called next and legacy. What’s the difference? are there also Docker images based on those branches?

Thank you