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

@humanlyai/sdk

v0.1.0

Published

TypeScript SDK for the Humanly AI agent testing platform

Readme

@humanlyai/sdk

TypeScript SDK for the Humanly AI agent testing platform.

npm License: AGPL v3


Install

npm install @humanly/sdk

Quick Start

import { HumanlyClient } from '@humanly/sdk';

const client = new HumanlyClient({
  apiKey: process.env.HUMANLY_API_KEY!,
  baseUrl: 'https://humanly.ai', // or your self-hosted URL
});

// Trigger a test run
const run = await client.triggerRun({
  suiteId: 'suite_abc123',
  connectorId: 'conn_xyz456',
  label: process.env.GITHUB_SHA, // tag with git commit
});

// Wait for completion and get the report
const report = await client.waitForRun(run.id);

console.log(`Score: ${report.overallScore}`);
console.log(`Pass rate: ${report.passRate * 100}%`);

// Fail CI if a baseline was breached
if (report.baselineBreach) {
  console.error(`Regression detected: score dropped ${report.baselineDelta}`);
  process.exit(1);
}

API Reference

new HumanlyClient(options)

| Option | Type | Required | Default | |---|---|---|---| | apiKey | string | Yes | — | | baseUrl | string | No | https://humanly.ai | | timeout | number (ms) | No | 30000 |


Runs

client.triggerRun(options)Promise<Run>

Trigger a new test run.

const run = await client.triggerRun({
  suiteId: 'suite_abc123',
  connectorId: 'conn_xyz456',
  baselineId: 'baseline_v1', // optional: check for regressions
  label: 'main@abc1234',     // optional: tag with git info
});

client.getRun(runId)Promise<Run>

Get the current status of a run.

client.listRuns()Promise<Run[]>

List all runs in your workspace.

client.getReport(runId)Promise<Report>

Get the full evaluation report for a completed run.

client.waitForRun(runId, pollIntervalMs?, timeoutMs?)Promise<Report>

Poll until a run completes and return the report. Throws on failure or timeout.


Baselines

client.createBaseline(options)Promise<Baseline>

Register a run as a quality baseline.

const baseline = await client.createBaseline({
  runId: run.id,
  name: 'Production baseline v1.2',
  threshold: 0.05, // allow up to 5% score regression
});

client.getBaseline(baselineId)Promise<Baseline>

Get a specific baseline.

client.listBaselines()Promise<Baseline[]>

List all baselines.


Resources

client.listAgents()Promise<Agent[]>

client.listPersonas()Promise<Persona[]>

client.listConnectors()Promise<Connector[]>

client.listSuites()Promise<Suite[]>


CI/CD Example

GitHub Actions

- name: Test agent quality
  env:
    HUMANLY_API_KEY: ${{ secrets.HUMANLY_API_KEY }}
  run: |
    node -e "
    const { HumanlyClient } = require('@humanly/sdk');
    const client = new HumanlyClient({ apiKey: process.env.HUMANLY_API_KEY });
    client.triggerRun({ suiteId: '$SUITE_ID', connectorId: '$CONNECTOR_ID' })
      .then(run => client.waitForRun(run.id))
      .then(report => {
        if (report.baselineBreach) process.exit(1);
      });
    "

Error Handling

The SDK throws HumanlyError on API errors and request failures. 429 rate-limit responses are retried automatically with the Retry-After header.

import { HumanlyClient } from '@humanly/sdk';

try {
  const report = await client.waitForRun(run.id);
} catch (err) {
  if (err instanceof Error && err.name === 'HumanlyError') {
    console.error(`API error ${(err as any).status}: ${err.message}`);
  }
}

License

AGPL-3.0 — see LICENSE