How to host codebase on another site to "hide" source code?

I want to work with other people, preferably on team create. Though, I don’t want them having access to the entire codebase.

I saw another game which had an key, and would build the game from another site, only if the game requesting it was the owner of the source code, preventing anyone from just having the key to have access to the scripts.

I tried to do some research, but couldn’t really find much. Could I do this with something like firebase? how would I approach it? how much would it cost me? preferably a free way to do it.

You can try using Vercel (mostly free), they allow you to use Cloud Compute (Serverless Functions) which will allow you to make APIs that you can send GET and POST requests to.

You can try approaching this by having a 16-character or 32 character randomized string (like a token key) that only you and the server know. Then you could make a plugin that is only saved on your device that can send a GET request and either check the IP or just recieve the same secret key.

via the roblox api

alternatively, you could obfuscate the code that you give them or just, like, trust the people you work with