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

catirt

v2.3.1

Published

CatIrt-js is a JavaScript / WebAssembly port of the [catIrt](https://github.com/swnydick/catIrt) R package

Readme

catIrt-js

Node.js CI

A JavaScript / WebAssembly port of the catIrt R package

This project focuses on the functions necessary to build a performant CAT system deployable within a NodeJS environment. There are currently no plans to port the high-level simulation functions in the R package. The intent is to use R for prototyping a new CAT model, and then this library to create the final system for web application delivery.

Install

npm install catirt

Usage Example

const catirt_load = require('catirt');

catirt_load().then(function(catirt) {
  // the item bank data structure expected by itChoose()
  const items = [
    {id: 'item1', params: [1.55,-1.88,0.12]},
    {id: 'item2', params: [1.9,-0.1,0.12]},
    {id: 'item3', params: [2.06,0.41,0.12]},
    {id: 'item4', params: [3.02,-0.38,0.12]},
    {id: 'item5', params: [1.48,0.72,0.12]}
  ];

  // the simplest response data structure: one entry for each item
  const resp = [NaN, NaN, 1, NaN, NaN];

  // estimate ability from a single set of responses using the binary response model
  let answers = catirt.getAnswers(resp);
  let params = catirt.getAnsweredItems(items, resp).map(item => item.params);
  let est = catirt.wleEst_brm_one(answers, params);

  // inspect result
  if (est.error) {
    console.log(`Error: ${est.error}`);
  } else {
    console.log(`Estimated theta: ${est.theta}`);
    console.log(`Information: ${est.info}`);
    console.log(`SEM: ${est.sem}`);
  }

  // choose the best item to administer next
  let from_items = catirt.getUnansweredItems(items, resp);
  let chosen = catirt.itChoose(from_items, 'brm', 'UW-FI', 'theta', {cat_theta: est.theta});

  // inspect result
  if (chosen.error) {
    console.log(`Error: ${chosen.error}`);
  } else {
    console.log(`Next item: ${JSON.stringify(chosen.items[0])}`);
  }
});

Development

  1. Requires nodeJS 10 or greater - v14 recommended
  2. Requires emscripten 2.0.6 or greater
  3. Requires Eigen 3.3.8 or greater - download and extract to eigen/
  4. Requires nodejs packages for testing: npm install

Building

Run: npm run build

This will generate dist/catirt.wasm and dist/catirt.js

Testing

Unit tests: npm test

Performance test: node ./test/manual-performance-test.js

Documentation

Generate via: npm run docs

View results in docs/README.md