Currently, I am working on developing a small desktop application utilizing electron and P5 for the front-end. My goal is to make sure that this application operates seamlessly offline by storing data locally instead of relying on a database. The challenge I am facing is the inability to alter JSON files on the frontend, which means I need to establish a way to call functions from the backend (main file of the application) using the frontend. Since my experience with electron is limited, I have been struggling to find a solution online regarding how to make a button trigger a function in the main file. Any guidance or advice on this matter would be greatly appreciated as my attempts to resolve this issue independently have proven unsuccessful.