RepositoryTypeScript
jspsych

jspsych/jspsych-contrib

An open repository of jsPsych plugins and extensions, without any official support

64stars
97forks
6issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: experiments

#1 Repository of the month

1
TINIX TRENDING·Topic: science

#1 Repository of the month

1
TINIX TRENDING·Topic: jspsych

#1 Repository of the month

jspsych-contrib: jsPsych community contributions

This is an open repository of jsPsych plugins and extensions developed by members of the jsPsych community. If you've written a jsPsych plugin or extension that you think others might be interested in using, this is the place to share it!

jspsych vs. jspsych-contrib

Plugins and extensions in the main jsPsych repository are maintained by the core jsPsych team. The team takes responsibility for fixing bugs and updating plugins to take advantage of new features in jsPsych.

Plugins and extensions in this jspsych-contrib repository are contributed by community members. They are not extensively tested or verified by the core jsPsych team, and there is no guarantee that anyone will be available to fix bugs, push updates, or answer questions about these plugins/extensions. However we would encourage contributors to respond to issues/questions and to maintain their code.

Contributions to jspsych-contrib that are broadly useful, well-documented, and well-tested may be added to the main jsPsych repository, with the contributor's permission.

List of available plugins

The jsPsych plugins that have been contributed by community members can be found in the /packages directory. The /packages directory also contains four template sub-folders that can be used as a starting point for contributing a plugin/extension (see the Guidelines for contributions section).

Plugins

PluginContributorDescription
audio-multi-responseAdam Richie-HalfordThis plugin collects responses to an audio file using both button clicks and key presses.
audio-swipe-responseAdam Richie-HalfordThis plugin collects responses to an audio file using swipe gestures and keyboard responses.
barchart-button-responseCourtney B. HiltonThis plugin shows a barchart of values with an optional parameter to highlight a particular bar of interest (such as one corresponding to a participant's score)
bartJosh de LeeuwThe balloon analogue risk task (BART) measures risk-taking behavior through a simple balloon-pumping simulation with risk of explosion.
capture-url-paramsCourtney B. HiltonCaptures URL parameters and saves them in the data.
circle-click-responseJosh de LeeuwA plugin that displays a central HTML stimulus surrounded by clickable options arranged in a circle
columbia-card-taskJosh de LeeuwThe Columbia Card Task measures risk preferences through choices in a card game.
copying-taskAndre SahakianA plugin for running a copying task: a model grid on the left has to be recreated in the middle grid, using items from the right grid.
corsi-blocksJosh de LeeuwThis plugin displays a configurable Corsi blocks task and records a series of click responses.
densitychart-button-responseCourtney B. HiltonDisplays a densitychart of results to show the participant on a trial
device-orientationJosh de LeeuwRequire mobile devices to be in a specific orientation (landscape or portrait) before continuing
flankerJosh de LeeuwA jsPsych plugin for the Eriksen Flanker Task. Displays a configurable flanker array with precise SOA timing and supports arrows, letters, numbers, or custom stimuli. Includes keyboard and mobile-friendly button response modes.
free-recall-responseJosh de LeeuwA plugin for collecting free recall responses one word at a time with mobile-friendly UI
gamepadShaobin JiangThis plugin allows one to use gamepads in a jsPsych experiment.
histogram-button-responseCourtney B. HiltonDisplays a histogram of results to show the participant on a trial
html-choiceYounes StrittmatterThis plugin displays clickable html elements that can be used to present a choice.
html-keyboard-response-rafJosh de LeeuwThis plugin uses the same functionality as the html-keyboard-response plugin, but uses requestAnimationFrame internally for timing
html-keyboard-sliderMax LovellSliders which allow for keyboard responses.
html-multi-responseAdam Richie-HalfordThis plugin collects responses to an arbitrary HTML string using both button clicks and key presses.
html-swipe-responseAdam Richie-HalfordThis plugin collects responses to an arbitrary HTML string using swipe gestures and keyboard responses.
html-vas-responseIsaac KinleyThis plugin collects responses to an arbitrary HTML string using a point-and-click visual analogue scale.
image-array-keyboard-responseYounes StrittmatterThis plugin displays an arbitrary number of images and records responses generated with the keyboard.
image-click-responseChristophe BossensThis plugin shows an image on which the user can place points by clicking/touching the image. The location of each point is recorded as data.
image-hotspotsJosh de LeeuwA plugin for displaying an image with clickable regions
image-multi-responseAdam Richie-HalfordThis plugin collects responses to an image stimulus using both button clicks and key presses.
image-swipe-responseAdam Richie-HalfordThis plugin collects responses to an image stimulus using swipe gestures and keyboard responses.
iosIsaac KinleyThis plugin implements a continuous version of the Inclusion of Other in the Self (IOS) Scale (Aron et al., 1992).
libet-intentional-bindingIsaac KinleyThis plugin measures intentional binding using a Libet clock, and allows the participant to estimate the timing of events by adjusting the clock hand themselves.
nextcloud-filedropC. Martin GreweThis plugin provides permanent storage of data collected during an experiment using a nextcloud instance.
numpadjadean interactable and responsive numpad supporting both touch and keyboard interaction for numerical input.
pipeJosh de LeeuwjsPsych plugin to faciliate communication with DataPipe
pursuit-rotorJosh de LeeuwMotor tracking task requiring continuous tracking of a moving target with mouse or touch input
rdkJosh de LeeuwThis plugin displays a Random Dot Kinematogram (RDK) and allows the subject to report the primary direction of motion by pressing a key on the keyboard.
redirect-to-urlCourtney B. HiltonFacilitates redirecting to a URL at the end of a study. For example, this can facilitate running Prolific or other paid recruitment platforms.
rokYounes StrittmatterThis plugin displays a Random Object Kinematogram (ROK) and allows the participant to report the primary direction of motion or the primary orientation by pressing a key on the keyboard.
self-paced-readingigmmgiSelf-paced reading tasks with different display options.
slide-to-continueVishnu LakshmanThe plugin-slider is a jsPsych plugin that creates an interactive slider interface similar to the 'slide to unlock' functionality found on mobile devices. Users must drag a slider handle to complete the trial, making it useful for consent screens, engagement checks, or transition screens in psychological experiments.
spatial-nbackA. Hunter FarhatA jsPsych plugin for presenting a spatial grid stimulus, designed for spatial n-back tasks. The plugin displays a customizable grid, highlights a cell as the stimulus, and collects participant responses with optional feedback and instructions.
sprjadeSelf-paced reading trials using the DOM.
stop-signalBecca BogstadThis plugin supports showing an animation and collecting user response with buttons
survey-gridSam ZorowitzjsPsych plugin for gathering responses to questions on a likert scale in a grid format.
survey-likert-sdDaiichiro KurokiExtention of the survey-likert plugin to enable the use of the SD method.
survey-numberJosh de LeeuwThis plugin displays a survey question and collects a numeric response.
survey-sliderDominique MakowskiAdd several analogue scales on the same page for use in questionnaires.
survey-vasIsaac KinleyThis plugin displays a series of questions with point-and-click visual analogue scales.
tangram-gameAline NormoyleA child-friendly tangram game with click-and-click interface and potential for custom puzzles
tower-of-londonJosh de LeeuwA jsPsych plugin for Tower of London/Hanoi style puzzle tasks. Participants move colored balls between pegs to match a goal configuration.
trail-makingJosh de LeeuwA jsPsych plugin for the Trail Making Test (TMT), where participants connect circles in sequence. Supports Part A (numbers only) and Part B (alternating numbers and letters).
video-hotspotsJosh de LeeuwA plugin for displaying a video that freezes on the final frame with clickable hotspots
video-several-keyboard-responsesMaria Emine NylundjsPsych plugin for playing a video file and getting several keyboard responses
video-text-responseGabriel Fajardo, Xinyi GuanInitial release: Plays a video and collects free-text responses, recording the video time of each response.
visual-search-click-targetJosh de LeeuwVisual search trial with click response
vsl-animate-occlusionJosh de LeeuwThe VSL (visual statistical learning) animate occlusion plugin displays an animated sequence of shapes that disappear behind an occluding rectangle while they change from one shape to another.
vsl-grid-sceneJosh de LeeuwThe VSL (visual statistical learning) grid scene plugin displays images arranged in a grid.

Extensions

ExtensionContributorDescription
countdownShaobin JiangThis extension adds a countdown during a trial.
device-motionPedro NetojsPsych extension for tracking device motion
mediapipe-face-meshC. Martin GreweThis extension provides online tracking of facial posture during trials using the MediaPipe Face Mesh library.
touchscreen-buttonsYounes StrittmatterThis extension displays touch buttons that allow the participant to respond to stimuli via a touchscreen on mobile devices.

Guidelines for contributions

Contribution requirements

Contributions to this repository must:

  • Work as described
  • Include the complete code for the plugin or extension.
  • Include a README.md file following our template (identical for plugins and extensions).
  • Include a package.json file.

Optionally, contributions are encouraged to include:

  • A /docs directory with documentation matching the template for docs on jspsych.org
  • An /examples directory with a working .html demo.
  • A test suite following the testing framework in our -ts templates (plugin test template; extension test template).

To contribute a new plugin or extension to this repository, follow these steps:

  1. Clone this repository on your machine and run npm i to install its packages.
  2. Run npx @jspsych/new-plugin or npx @jspsych/new-extension and answer the prompts to create a new plugin/extension template under /packages. This is a command-line tool we built to make setting up the development of a new plugin/extension easier. Documentation for using this tool can be found in their respective readme files (new-plugin; new-extension).
  3. After you are done editing the plugin/extension template, verify that it works by opening examples/index.html in your browser.
  4. Run npm i in your plugin/extension directory to install all your dependencies.
  5. Add a changeset by running npm run changeset in the main directory of the repository. This will prompt you for a description of the changes you made and creates a new changeset file in the changesets directory accordingly.
  6. Open a pull request to merge your branch into the main branch of this repository.

In the pull request comments, please make it clear how we can verify that the contribution is functional. This could be accomplished with a link to a demonstration experiment, the inclusion of an example file and/or testing files, or through some other means. We try to review pull requests quickly and add new contributions as soon as the minimal standards are met.

Creating a new plugin or extension

We have a tool for building new plugins and extensions at jspsych-dev, with instructions for using the tools at the repository's README.md.

You may also want to read the jsPsych documentation on plugin development to understand how to work with the index.ts file (for TypeScript development) and index.js file (for JavaScript development).

jsPsych version compatibility

We would like to encourage you to contribute plugins and extensions that are compatible with jsPsych v7+, as this will make your contributions maximally accessible to other jsPsych users. jsPsych has gone through major changes in upgrading to v7 and later versions, so it will be difficult to maintain backwards compatability for plugins/extensions using versions earlier than v7.

At the same time, we realize that there may be jsPsych users who have created very useful plugins/extensions with jsPsych v6 that they would like to share with the community, but don't know how to or have the time/resources to convert their contributions into the jsPsych v7+ Node package format.

As a first step to helping make this conversion easier, we offer a general migration guide for v6.x to v7.x and for v7.x to v8.x. If you have suggestions/requests for additional documentation on migration, please open a thread on our discussion board.

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
jspsych/jsPsych

Create behavioral experiments in a browser using JavaScript

1.2k
Nov 15, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

488.2k
Dec 3, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryTypeScript
vuejs/vue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

212.6k
Oct 10, 2024
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.8k
Jul 26, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryTypeScript
synthetic-sciences/openscience

The open-source AI workbench for scientific research

4.5k
Nov 29, 2026