It should not be hard to code a competing twitter website.
It’s not the code that’s the issue. It’s the community. Facebook could easily be mimicked also, but they are useless without the high-profile people.