The only port that’s taken by default is 8283. The only ports that work are 5900, 8099 and 9000.
5900 is assumed to be VNC and will break deployments. So in total you have to make do with 3 ports right now. That’s not enough for even a basic server, where you want a test port, a debug port, a primary dev API port, a secondary dev API port, a testing GUI port (vitest-gui) and a repl server port… that’s six.
And that’s not accounting for the web client(s) and their tools if it’s in the same repo.
Based on the way replit is designed, afaik you are supposed to just create repls for each, instead of hosting on different ports for each. Each project has it’s own computer/environment instead of it’s own port.
The ReplSpace API is used for Git in the shell. It has a few routes like /files/open and /github/token to open files in the editor, and to request the user’s GitHub token.