Where is and is there a scripting option

I heard there was a scripting API but can’t seem to find it anywhere. I mainly want it to make a TAS movie recorder that is easy to edit, as I also can’t find a citra movie editor. I would prefer to use scripting though as I can use all sort of maths things and read+write bytes.

It would be useful for read+write file support too if I need to use 3rd party software/self-made software.

List of stuff:
file read+write
ram read(+write)
controller input (read+)write