Heya, glad to hear you're liking the game! I'm not sure if I fully understand your question yet, are you trying to create levels procedurally using algorithms?
The way SMC levels are shared is in the form of level codes, these are basically just large JSON strings that tell the game how to construct a level. People can simply share this level code around.
You can actually find a general structure overview of the level code on our wiki, which may be of help: https://wiki.levelsharesquare.com/SMC_help:Level_code