jsPsych

@jspsych.org

Create behavioral experiments that run in a web browser https://www.jspsych.org

js-mEye: An extension and plugin for the measurement of pupil size in the online platform jsPsych BehResM

js-mEye: An extension and plugin for the measurement of pupil size in the online platform jsPsych

The measurement of pupil size has become a topic of interest in psychology research over the past two decades due to its sensitivity to psychological processes such as arousal or cognitive load. However, pupil measurements have been limited by the necessity to conduct experiments in laboratory settings using high-quality and costly equipment. The current article describes the development and use of a jsPsych plugin and extension that incorporates an existing software that estimates pupil size using consumer-grade hardware, such as a webcam. We validated this new program (js-mEye) across two separate studies, which each manipulated screen luminance and color using a novel luminance task, as well as different levels of cognitive load using the N-back and the Stroop tasks. Changes in luminance and color produced significant changes in pupil size in the hypothesized direction. Changes in cognitive load induced in the N-back and Stroop tasks produced less clear findings; however, these findings were explained to some extent when participant engagement – indexed by task performance – was controlled for. Most importantly, all data were at least moderately correlated with data simultaneously recorded using an EyeLink 1000, suggesting that mEye was able to effectively substitute for a gold-standard eye-tracking device. This work presents an exciting future direction for pupillometry and, with further validation, may present a platform for measuring pupil size in online research studies, as well as in laboratory-based experiments that require minimal equipment.

dlvr.it

Supervising a Psychology student creating an online #mousetracking experiment with #jsPsych - showing videos and asking participants to choose left or right. If you’ve worked on something similar and are happy to share a code template or know of good resources, we’d really appreciate it! 🙂

That's a wrap on our first ever hackathon! Thanks to all of the wonderful people who attended. Lots of amazing projects and collaborations got started. 🥳

Bild

jspsych will soon* support generating psych-ds metadata automatically from an experiment timeline. we have done most of the implementation and are ironing out the final details. *probably summer 2025

Melissa Kline Struhl@mekline.bsky.social · last yr.

Psych-DS is (1) spellcheck for your datasets and (2) a pathway to standardizing data in our academic fields that *everyone* can learn. And it's live RIGHT NOW! psych-ds.github.io (This is the announcement post I've been leading up to)

Announcing a big update to Terracotta: Your LMS course site just became an open laboratory. 🔬 Terracotta now integrates Qualtrics surveys, jsPsych studies, and custom web activities directly in graded LMS assignments. Deploy matrix surveys, measure behavior, test AI tools—right in your course site.

Follow us for announcements about jsPsych, like our upcoming in-person hackathon. We'll be funding travel for folks to come and learn how to contribute to the jsPsych ecosystem. More info soon!