If this isn’t obvious, we are lost. Creating a rest endpoint where a library would do is pure insanity.
I wholeheartedly agree with your sentiment.
Unfortunately, the obvious economic incentive to effectively paywalling code through the Internet, is so strong that on this very website (that was supposed to have hacker mentality) most of the comments are in favour of it, because “you have to make a living”…
Yes, I think we are lost.