Skip to content

floledermann/stimsrv-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stimsrv Examples

This repository contains some example experiments for stimsrv.

stimsrv (stimulus server) is a system for running browser-based psychological experiments and user studies.

Running the examples

Clone/download the repository, and run

npm install

in the stimsrv-examples directory (or double-click install.bat on Windows).

Then, in each example directory, you can run

npx stimsrv --open <example-file>

On Windows, you can also double click the provided launch.bat to launch the first experiment in a directory, or drag the desired experiment file onto launch.bat.

The --open option will open a browser window showing the experiment start page. Omit --open if you only want to start the server and want to start the client(s) manually.

You can end stimsrv by pressing Ctrl-C (repeatedly) in the console window, or by closing the window.

Make sure to always only run one experiment at a time, otherwise stimsrv will crash with a "port in use" error message.

Examples in this repository

A minimal experiment file, showing only a "hello world" message. Can be used as an empty starting point or to verify that the stimsrv installation is running without errors on your setup.

Customizing an experiment's frontend by specifying custom CSS for devices, roles and tasks.

Creating a custom task from using the simpleTask factory.

Creating a custom task from scratch.

Showing a series of images as stimuli.

Example experiment showing (nested) loops and dynamic context.

Synchronizing interaction with a web map across devices.

Multiplayer PONG game, showing realtime events.

Using stimsrv on old and simple devices, making use of server-side rendering with Puppeteer.

Estimating visual acuity using Sloan letters.


Further examples in separate repositories