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

@citolab/pci-likert

v1.0.0-beta.1

Published

a Likert scale: the candidate picks one of 2 to 10 levels between two labels

Readme

@citolab/pci-likert

A QTI 3 Portable Custom Interaction (PCI) with a Likert scale: the candidate picks one of 2 to 10 levels between two labels ("Strongly disagree" … "Strongly agree"). A port of TAO's likertScoreInteraction, the PCI used to certify IMS PCI support. Made with tspci.

Source and licence

This PCI is a derivative work of likertScoreInteraction in oat-sa/extension-tao-itemqti-pci, © 2016-2024 Open Assessment Technologies SA. That extension is licensed under the GNU General Public License version 2 only (GPL-2.0-only, as stated in its composer.json and in the headers of its files), so this PCI is too: see LICENSE. This differs from the MIT licence of the other examples in this repository.

What changed, by Stichting Cito Instituut voor Toetsontwikkeling (2026):

  • Ported from TAO's AMD modules to an IMS PCI v1.0 module built with tspci (Preact, Tailwind, shadow DOM).
  • A new UI: a fieldset of real radio buttons with the question as the legend, large touch targets, a layout that puts the end labels above the scale on narrow screens, and screen-reader texts in English and Dutch.
  • The settings are described in src/config.json, so TAO (via npm run package-tao) and other authoring systems build the properties form from them; the TAO-only creator code was not ported.
  • The thumb icons are redrawn; the original's response format, settings and state are kept (see below).

What it does

  • Choose: click or tap a level, or Tab into the scale and use the arrow keys. A screen reader hears the question, then "3 of 7", and at the ends "1 of 7, lowest: Strongly disagree".
  • Styles: radio buttons (the default), stars (a rating: every star up to the chosen one fills), smileys (from a frown to a smile, red to green when chosen) or numbered buttons. Underneath each style are the same radio buttons, so keyboard use and screen-reader texts do not change.
  • Icons and numbers: optionally a thumb down and up at the ends, and the level numbers above the choices.
  • Delivery: the choice is saved as the item's state and restored; a state saved by the original PCI ({ response: { base: { integer } } }) is restored as well. In review (status: "solution") the PCI shows the correct response when the delivery system passes it.

What can be configured

Every setting is a data- attribute of the interaction, as text. dist/authoring.json describes them for authoring systems.

| setting | attribute | default | what | | ------------------------------ | ----------------- | -------------------------------------------- | --------------------------------------------------- | | Question above the scale | data-prompt | How much do you agree with this statement? | also the accessible name of the scale | | Number of levels | data-level | 5 | 2 to 10, like the original | | Label at the low end | data-label-min | min | the original's label-min (also read as labelMin) | | Label at the high end | data-label-max | max | the original's label-max (also read as labelMax) | | Style of the choices | data-style | radio | radio, stars, smileys or buttons | | Show icons at each end | data-icons | false | thumb down at the low end, thumb up at the high end | | Show numbers above the choices | data-numbers | false | | | Language | data-language | en | en or nl: the texts for screen readers |

Scoring

The PCI is made for a scale that is not scored, like the original (authoring.json: "scoring": ["human", "custom"]; the original sets NONE on creation and offers custom).

The response is an integer (cardinality="single" base-type="integer"): the chosen level, 1 (the low end) to the number of levels (the high end).

  • No response: until the candidate chooses, getResponse() reports nothing. The original reported 0; a 0 handed to the PCI is still read as "no answer".
  • custom: write your own response processing, for instance to sum the levels of several items or to map them (reverse-scored statements: level + 1 - value).
  • Changing the number of levels makes a chosen level above the new maximum invalid.

Using it

npm install @citolab/pci-likert

| file | what | | -------------------------------------- | ------------------------------------------------------------------------- | | dist/index.js | the PCI (AMD module, everything bundled: the package has no dependencies) | | dist/authoring.json | settings, response and scoring, for authoring systems | | dist/sbom.cdx.json | CycloneDX SBOM of the bundle | | dist/tao-pci-likert_<version>.zip | the PCI for TAO: Settings → Portable Custom Interactions → Add | | likert.svg, example.png | icon and screenshot |

In a QTI 3 item, with index.js at resources/pci/index.js of the package:

<qti-response-declaration identifier="RESPONSE" cardinality="single" base-type="integer"/>
…
<qti-portable-custom-interaction response-identifier="RESPONSE" module="pci" custom-interaction-type-identifier="likert"
  data-prompt="I enjoy solving maths problems." data-level="7"
  data-label-min="Strongly disagree" data-label-max="Strongly agree" data-icons="true" data-numbers="true">
  <qti-interaction-modules>
    <qti-interaction-module id="pci" primary-path="../resources/pci/index"></qti-interaction-module>
  </qti-interaction-modules>
  <qti-interaction-markup></qti-interaction-markup>
</qti-portable-custom-interaction>

The type identifier is likert, not likertScoreInteraction, so it can sit next to TAO's own Likert PCI.

Source and the other examples: Citolab/tspci-examples.