npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-jspsych-experiment

v0.1.0

Published

Scaffold jsPsych experiments with consent, instructions, and exit survey boilerplate

Downloads

13

Readme

create-jspsych-experiment

Make boilerplate jsPsych experiment with consent, instructions, comprehension checks, exit survey, and DataPipe integration.

Uses plain JS files loaded from CDN.

Usage

Interactive

create-jspsych-experiment

Prompts for experiment name, project name, DataPipe ID, Prolific completion code, and extra plugin URLs.

Non-interactive

create-jspsych-experiment --name s1_design_inference --project environment_design --datapipe XXXXXX --completion-code XXX

With extra plugin scripts:

create-jspsych-experiment --name s1_design_inference --project environment_design \
  --plugins "https://unpkg.com/[email protected],https://unpkg.com/[email protected]"

Options

| Flag | Description | |------|-------------| | --name <name> | Experiment name (used as output directory) | | --project <project> | Project name | | --title <title> | Page title (defaults to experiment name) | | --datapipe <id> | DataPipe experiment ID | | --completion-code <code> | Prolific completion code | | --plugins <urls> | Comma-separated extra plugin script URLs |

Generated output

my-experiment/
├── index.html                 # CDN script tags, right-click prevention
├── GUIDE.md                   # Dev guide with examples for filling in TODOs
├── js/
│   ├── config.js              # Maps, constants, settings object
│   ├── setup.js               # Populates settings, creates jsPsych, assembles timeline
│   ├── loading-sequence.js    # Landing page, consent form, browser check, preload
│   ├── instructions.js        # Instruction pages + comprehension check loop
│   └── exit-sequence.js       # Exit survey, DataPipe save, Prolific redirect
├── assets/
│   ├── favicon.ico
│   ├── instructions/.gitkeep
│   └── stims/.gitkeep

After generating

Fill in the TODOs:

  • js/config.js — Define CONDITION_MAP, TIME_ESTIMATES, DataPipe/completion IDs
  • js/instructions.js — Add entries to COMPREHENSION dict, write instruction pages in getInstructionPages()
  • js/setup.js — Load stimuli, build task trials
  • index.html — Set title, add any extra plugin <script> tags

Setup

cd create-experiment
npm install
npm run build
npm link

This makes create-jspsych-experiment available as a global command.