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

@oqtopus-team/qdash-client

v0.1.3

Published

TypeScript client for the QDash API

Readme

@oqtopus-team/qdash-client

@oqtopus-team/qdash-client is the TypeScript client for the QDash API. It provides an Orval-generated API for every OpenAPI operation and a stable high-level client for common QDash and agent-calibration workflows.

Installation

npm install @oqtopus-team/qdash-client

The package requires Node.js 20 or later.

Quick Start

import { QDashClient } from "@oqtopus-team/qdash-client";

const client = await QDashClient.fromProfile("default");
const chip = await client.getDefaultChip();
const metrics = await client.getChipMetrics(chip.chip_id);

console.log(metrics.qubit_metrics);

fromProfile() reads the same ~/.config/qdash/config.ini file as the Python client. When XDG_CONFIG_HOME is set, it reads $XDG_CONFIG_HOME/qdash/config.ini instead.

Configuration

Create a client from the standard QDash environment variables:

const client = QDashClient.fromEnv();

Supported variables include:

  • QDASH_BASE_URL
  • QDASH_API_TOKEN
  • QDASH_PROJECT_ID
  • QDASH_CF_ACCESS_CLIENT_ID
  • QDASH_CF_ACCESS_CLIENT_SECRET
  • QDASH_TIMEOUT_SECONDS
  • QDASH_RETRY_MAX_ATTEMPTS
  • QDASH_RETRY_BACKOFF_SECONDS
  • QDASH_RETRY_MAX_BACKOFF_SECONDS
  • QDASH_VERIFY_TLS
  • QDASH_PROXY
  • QDASH_USER_AGENT

Legacy QDASH_USERNAME, QDASH_PASSWORD_ENV, and password environment variables are also supported.

A profile has the same format as qdash-client for Python:

[mackerel]
base_url = https://example.qdash/api
api_token = your-token
project_id = your-project-id
cf_access_client_id = your-client-id
cf_access_client_secret = your-client-secret

Profile files written with QDashConfig.save() use owner-only permissions (0600). A custom fetch implementation is required when using proxy or disabling TLS verification.

Generated API

All OpenAPI operations are available through the Orval-generated API bound to the client's transport:

const chips = await client.api.listChips();
const posts = await client.api.listForumPosts({ limit: 20 });

Use the high-level methods for stable domain operations and polling helpers. Use client.api when an endpoint does not yet need a convenience method.

Agent Calibration

const session = await client.createAgentSession({
  chipId: "chip-1",
  policy,
  skillName: "pi-extension",
  skillVersion: "0.1.0",
});

const action = await client.submitAgentAction(session.session_id, {
  idempotencyKey: crypto.randomUUID(),
  expectedStateVersion: session.state_version,
  actionType: "execute_task",
  taskName: "qubit_spectroscopy",
  qids: ["32"],
});

The client also provides helpers for waiting on action dispatch, QDash execution linkage, candidate commits, campaign commits, and backend application.

Figures and Binary Files

Calibration figures can be downloaded through the authenticated client transport without manually building headers:

const figure = await client.getExecutionFigure("/app/calib_data/.../fig/CheckRabi_33_0.png");
console.log(figure.mediaType, figure.filename, figure.data.byteLength);

const taskFigure = await client.getTaskResultFigure("task-id", { index: 0 });

Use getTaskResultFigure(..., { preferJson: true }) to fetch a JSON figure path when available.

Development

The OpenAPI client and models are generated by Orval from docs/oas/openapi.json. Do not edit src/generated/ manually.

bun install
bun run generate
bun run check
bun run build

The first publish uses a temporary NPM_TOKEN repository secret because npm requires the package to exist before Trusted Publishing can be configured. After the first publish, configure publish-qdash-typescript-client.yml as the package trusted publisher and delete the secret. Release tags use qdash-client-ts-v<version>; the workflow derives the package version from the tag.