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

@ai-ecoverse/gpu-ask.js

v0.1.0

Published

Agent questions in the browser: ONNX tagger + CRF + ask-tool compiler

Readme

@ai-ecoverse/gpu-ask.js

Agent questions in the browser. Prose in, structured ask-tool choices out — on-device, nothing sent anywhere.

A ~570k-parameter token tagger (gpu-time lineage) marks the question and options; a deterministic compiler builds an ask-tool payload your UI can render. Emissions run as ONNX; features, CRF, and compile stay in TypeScript. The two-member ensemble is about 10 MB and ships inside the npm package.

Live demo · Weights · npm install @ai-ecoverse/gpu-ask.js onnxruntime-web

import * as ort from "onnxruntime-web/wasm";
import { bundledModelUrl, loadAsk, parse } from "@ai-ecoverse/gpu-ask.js";

// Configure ORT wasmPaths for your bundler (see demo/ort-wasm.ts).
const ask = await loadAsk(bundledModelUrl(), { ort });
// or from Hugging Face:
// const ask = await loadAsk("https://huggingface.co/ai-ecoverse/gpu-ask.js/resolve/main/v13", { ort });

const { questions } = await parse(ask, agentMessage);
// questions[0].kind      → "either_or" | "yes_no" | "multi_choice" | "open"
// questions[0].options   → ["merge it now", "wait for CI"]
// questions[0].propose   → true

The loader verifies each ONNX member's SHA-256 against manifest.json.

Schema

| Field | Type | Meaning | | --- | --- | --- | | kind | yes_no \| either_or \| multi_choice \| open | How the UI should ask | | propose | boolean | Assistant offers to act | | prompt | string | Question span text | | options | string[] | Tagged choices | | default | number \| null | Recommended option index | | multiSelect | boolean | Allow several options | | span | [start, end] | Character range in cleaned text |

Numbers

Pooled out-of-fold on 4,930 hand-labeled public agent turns (v13 recipe, compiler kind):

| Model | Params | False q | Kind | options_ok | | --- | ---: | ---: | ---: | ---: | | v13 ensemble (shipped) | 571k × 2 | 3.7% | 85.4%* | 67.5%* | | Ettin-150m teacher | 150M | 2.4% | 87.8% | 74.5% |

*CV with constrained kind rerank. The browser path uses compiler kind (Python-only rerank is not in ONNX).

How it works

Sparse hashed features feed a bidirectional affine-scan tagger. A linear-chain CRF picks token roles (O, Q_*, OPT_*, REC). Deterministic compile recovers missing either/or sides, splits inline lists, and decides kind. Only the emission network is ONNX (WASM via onnxruntime-web); everything else is TypeScript.

Training lives in ai-ecoverse/gpu-questions. Architecture follows gpu-time.

License

Apache-2.0. Part of AI Ecoverse.