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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jsquest-plus

v2.1.0

Published

A JavaScript implementation of the QUEST+ staircase algorithm (Watson, 2017).

Readme

QUEST+

QUEST+ (Watson, 2017) is an extension of QUEST (Watson & Pelli, 1983) that can deal with multiple stimulus parameters, multiple psychometric parameters, and more than two responses options. The jsQuestPlus JavaScript library allows researchers to use the QUEST+ method in online experiments.

How to cite

We prefer to cite the paper, but either citation is acceptable.

Paper citation

Kuroki, D., & Pronk, T. (2022). jsQuestPlus: A JavaScript implementation of the QUEST+ method for estimating psychometric function parameters in online experiments. Behavior Research Methods. https://doi.org/10.3758/s13428-022-01948-8

Software citation (for version 2.0.0)

Kuroki, D., & Pronk, T. (2022). jsQuestPlus: A JavaScript library to use the QUEST+ method in online experiments. (Version 2.0.0) [Computer software]. https://github.com/kurokida/jsQuestPlus

How to use

See the GitHub page and Customization of Psychometric function

Demonstrations

The demos folder contains some sample code.

Example_1stim_1psy_2resp_Watson(2017).html

This is the sample code for Watson's first example: "Estimation of contrast threshold {1, 1, 2}". The threshold is estimated using the stimulus parameter (contrast) and responses described in Watson's paper.

Simulation_1stim_1psy_2resp_Watson(2017).html

This file is the same as Example_1stim_1psy_2resp_Watson(2017).html, except that it simulates the observer's response. The final estimate will change slightly each time you run the program.

Example_2stim_3psy_2resp_Watson(2017).html

This is the sample code for Watson's forth example: "Contrast sensitivity function {2, 3, 2}". The psychometric parameters are estimated using the stimulus parameters and responses described in Watson's paper.

Simulation_2stim_3psy_2resp_Watson(2017).html

This file is the same as Example_2stim_3psy_2resp_Watson(2017).html, except that it simulates the observer's response. The final estimates will change slightly each time you run the program.

jsPsychDemo/jsQuestPlus_jsPsychDemo.html

This is the sample code for jsPsych users. This simulates Watson's second example: "Estimation of contrast threshold, slope, and lapse {1, 3, 2}".

Convenience functions

  • The numeric.js library developed by Sébastien Loisel under the MIT licence performs matrix/array calculations at high speeds. This library is included in jsQuestPlus, with some of its functions available by prefixing them with jsQuestPlus.: abs, add, cos, dim, div, dot, exp, floor, isFinite, isNaN, linspace, log, mod, mul, pow, round, sin, sqrt, sub, sum, transpose.

Information for developers

Installation

Install node, then clone the repo to your hard drive. Next, you can install jsQuestPlus and its dependencies by running:

npm install

Building jsQuestPlus

To package jsQuestPlus and it's dependencies, and export those as UMD bundle, run the command below. Your bundle will be available in the dist/ directory:

npx rollup -c

Notes

jsQuestPlus depends on a fork of the numeric library, which turns this library into an ES6 module.