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

@ideaconsult/qubounds-viewer

v0.1.0

Published

Embeddable React viewer for conformal prediction intervals (qu-bounds).

Readme

qu-bounds UI

React/Vite viewer for exploring conformal prediction intervals and prediction sets from the qubounds package.

The primary target is an embeddable React component. The same component also powers a standalone /qubounds/ app for development, demos, and direct links.

Embedding

The public package name is @ideaconsult/qubounds-viewer. Older local prototypes may still use the previous @adma/qubounds-viewer name.

import PredictionViewer from '@ideaconsult/qubounds-viewer'
import '@ideaconsult/qubounds-viewer/style.css'

<PredictionViewer
  items={['prediction-item-id']}
  type="prediction"
  dataSource="predictions"
  token={token}
  apiBase="https://nambit.adma.ai/api"
/>

Hosts own authentication and pass a bearer token with the token prop when protected resources are needed. The viewer never starts login or redirect flow.

Standalone App

The standalone app follows the same deployment pattern as h5web in nambit/spectrasearch:

  • Deep-linked from nambit chemical cards: ?compound=DTXSID0020585&back=https://nambit.adma.ai
  • Usable standalone: paste any CAS, DTXSID, SMILES, or InChIKey
  • Multi-compound comparison: ?compound=DTXSID001&compound=DTXSID002
  • Passive auth only: standalone mode can receive ?token=, sessionStorage, or postMessage

Setup

cp .env.example .env
# fill in backend and HSDS endpoints if needed

pnpm install --frozen-lockfile
pnpm dev

Environment variables

See .env.example. Key ones:

| Variable | Purpose | |---|---| | VITE_API_URL | ramanchada/nambit backend base | | VITE_PREDICTIONS_CORE | Predictions data source/collection name | | VITE_CHEMICALS_CORE | Chemicals data source/collection name; default template uses dsstox | | VITE_SUBJECT_FIELD | Subject join field; defaults to dsstox_id_s | | VITE_HSDS_URL | HSDS server (for h5web deep links) | | VITE_HSDS_DOMAIN | HSDS domain path for model .nxs files |

Backend calls use /db/query and /db/download routes through VITE_API_URL, not raw Solr endpoints. These variables configure the standalone app; embedded hosts should pass equivalent values as PredictionViewer props.

Solr field conventions (predictions collection)

The app reads the following fields from prediction documents:

| Field | Type | Description | |---|---|---| | dsstox_id_s | string | DSSTox compound ID (join key) | | reference_s | string | SSbD endpoint group (e.g. Acute_aquatic_toxicity) | | endpointcategory_s | string | Endpoint category code (e.g. EC_FISHTOX_SECTION) | | type_s | string | regression or classification | | guidance_s | string | Units | | attr_method | string[] | List of method names in this document | | {method}_pred_d | double | Point prediction | | {method}_lower90_d | double | Lower conformal bound | | {method}_upper90_d | double | Upper conformal bound | | {method}_pred_set_s | string | Classification prediction set (JSON array) | | {method}_set_size_i | int | Prediction set size | | {method}_ad_s | string | Domain status: in_domain, borderline, out_of_domain | | {method}_exp_d | double | Experimental (true) value if available | | {method}_covered_b | bool | Whether true value is inside the interval |

Plots

Follows qubounds paper conventions:

Regression: compounds sorted by increasing interval width (x-axis), predicted value ± CP interval (y-axis). Orange = prediction, grey bars = interval, blue = true covered, red × = true missed.

Classification: compounds sorted by increasing prediction set size (x-axis), class on y-axis. Grey bars span the prediction set, orange = predicted class, blue/red = true class covered/missed. Dashed vertical lines separate set size regions.

h5web integration

Each model row has an h5 button linking to the corresponding .nxs calibration file in HSDS/h5web, identical to how nambit links spectra to h5web.

Building for production

pnpm build
# dist/ is served under /qubounds/ (see vite.config.js base)

Build the embeddable library:

pnpm build:lib
# dist/qubounds-viewer.js and dist/style.css are the package artifacts

Run tests:

pnpm test