I will say this whenever I can: Salesforce has a moat because of their ecosystem. Full stop.
You must create an amazing ecosystem to compete. But creating that ecosystem is incredibly difficult.
Honestly, my opinion for how you could maybe make it work in open-source is to recreate the Salesforce API. That's a HUGE effort though, as it has a big surface. (I wonder how much of that is intentional to make it so others can't copy it well.)