Migrate jsPsych Experiments to v8

Automatically convert your jsPsych 6.x or 7.x experiment code to jsPsych 8 using AI. Free, instant, and no account required.

How does the jsPsych migration tool work?

Upgrading jsPsych experiments across major versions involves breaking API changes. This tool uses AI to analyze your code and apply the necessary transformations automatically.

1. Paste your code

Paste your existing jsPsych 6.x or 7.x experiment code and select the version you are migrating from.

2. AI converts your code

Our AI analyzes your experiment, updates deprecated API calls, rewrites plugin references, and adapts initialization patterns to jsPsych 8.

3. Review and use

Get migrated code with a detailed explanation of every change. Preview the experiment live in your browser, then copy the code or host it on Cognition.

What changes when migrating to jsPsych 8?

jsPsych 8 introduced significant improvements, but migrating from older versions requires updating several patterns in your code.

From jsPsych 6.x

  • Timeline-based API replaced with new initialization
  • Plugin names changed to camelCase globals
  • jsPsych.init() replaced with initJsPsych()
  • Data access API restructured
  • Parameter names updated across all plugins

From jsPsych 7.x

  • Import/require statements removed for global builds
  • Plugin class references changed to global variables
  • Extension loading patterns updated
  • Minor parameter deprecations resolved
  • Simulation mode API changes

Ready to run your experiment online?

After migrating your code, host it on Cognition to collect participant data, monitor runs in real time, and analyze results — all from your browser.

Create a free account