DataPipe is an excellent tool developed by the jsPsych team to send data from an experimental program to the Open Science Framework (OSF). Here is a demo using the DataPipe.
This is a sample program running on GitHub pages. When "Hello world!" appears, press any key. (remember that key). https://kurokida.github.io/datapipe3/experiment.html
Your response will be stored in the OSF project. https://osf.io/zu4as/
I plan to disable the OSF token at a later date. If I do so, no new data will be saved. Past data can be referenced.
de Leeuw, J. R. (2023, March 22). DataPipe: Born-open data collection for online experiments. https://doi.org/10.31234/osf.io/fv65z