I know there is no way to receive a video input from HDMI to most macs, however, I am curious if this could be done over thunderbolt.
If so what protocols would be used (RIP target display mode) to "screen share" from one mac to another?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityTarget Display Mode can use Thunderbolt, but as you observe it was only supported on iMac models from late 2009 to mid 2014.
If both Macs are on the same network then the easiest way for one to share the other's screen is with macOS Screen Sharing, but this won't offer the same performance as Target Display Mode.
Some other options are discussed in the answers to this question.