If you dont understand what a framework is I dont think you are ready to make something similar to that. Frameworks are basically a data structure which harbor objects or functions or whatever paradigm really that interact with these things called components in your game. Think of framework as the stuff you use to script something, like lua. And a library being a extension of that framework.
Here is an example; if printing was hard and there was a huge process to print, in your framework something would be like module.Print(“Hello World!”) but printing is easy this is just an example. I recommend learning about modules. It’s like saving code in your notes so you can paste it but easier