I'd like to develop/publish an app that lets other make "mini apps" and provide them within the main app. I've read before that Apple discourages apps that 'replicate the function of the app store'. But what if the app only lets you buy the "mini apps" with existing credit from in-app purchases from Apple?
Edit: I feel like I didn't use an appropriate example and left things open to speculation, as was mentioned by the editor. Here is something more concrete: I want to create a social app with core functions (such as messaging and profiles), but I want to allow other developers to create their own "mini apps" within the app to extend functionality. For example, a developer could create a tic-tac-toe mini game, that lets users interact in that way, and users could activate/download that within the main app without having to install a whole new separate app from the app store.
So now the concrete question is, does this functionality/use-case violate Apple's rules?