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

voxplo

v0.1.0

Published

Voxplo SDK: give an AI a phone (outbound objective-driven calls).

Readme

Voxplo Node SDK

Zero-dependency Node 18+ SDK for the Voxplo Agent Outbound-Call API. Place objective-driven AI calls, poll for results, and verify webhooks.

Quickstart

import { Client, ByoursideError, verifyWebhook } from './src/index.js';

const client = new Client({ apiKey: 'bys_ak_...' });

Place a call and wait for the result

try {
  // Place the call
  const { callId } = await client.placeCall({
    to: '+14155550123',
    objective: 'Confirm the appointment for tomorrow at 2 PM and ask if they need to reschedule.',
    fields: [
      { name: 'confirmed', type: 'boolean' },
      { name: 'new_time', type: 'string' },
    ],
  });

  // Poll until the call reaches a terminal status (default timeout: 3 minutes)
  const call = await client.waitForCall(callId, { timeoutMs: 120_000, intervalMs: 5_000 });

  console.log('Status:', call.status);        // completed | no_answer | voicemail | declined | failed
  console.log('Extracted fields:', call.extracted);
} catch (err) {
  if (err instanceof ByoursideError) {
    console.error(`[${err.code}] ${err.message}`);
  } else {
    throw err;
  }
}

List recent calls

const calls = await client.listCalls({ limit: 20 });
calls.forEach((c) => console.log(c.callId, c.status));

Verify a webhook (Express example)

Receive real-time call events by setting a webhookUrl when placing a call. The header X-BYS-Signature carries the signature.

import express from 'express';
import { verifyWebhook } from './src/index.js';

const app = express();

// IMPORTANT: parse the body as raw bytes so the signature can be verified.
app.post('/webhooks/bys', express.raw({ type: 'application/json' }), (req, res) => {
  const sig = req.headers['x-bys-signature'];
  const rawBody = req.body.toString('utf8');

  if (!verifyWebhook(sig, rawBody, process.env.BYS_WEBHOOK_SECRET)) {
    return res.status(400).send('Bad signature');
  }

  const event = JSON.parse(rawBody);
  console.log('Webhook event:', event.callId, event.status);
  res.status(200).send('OK');
});

Call status values

| Status | Meaning | |---|---| | queued | Accepted, not yet dialing | | in_progress | Call is active | | completed | Call finished; summary + fields available | | no_answer | Rang but nobody picked up | | voicemail | Reached voicemail | | declined | Call rejected by the recipient | | failed | Carrier or trunk error |

Terminal statuses (waitForCall stops here): completed, no_answer, voicemail, declined, failed.

Error codes

ByoursideError instances carry .code (a token string) and .status (HTTP status, 0 for network errors).

| Code | Meaning | |---|---| | destination_blocked | That destination is not allowed (premium, IRSF, or unsupported country). | | invalid_number | The destination number is invalid (use full E.164, e.g. +14155550123). | | to_required | A destination number (to) is required. | | objective_required | An objective for the call is required. | | caller_id_not_owned | That caller ID is not a number on your account. | | rate_limited | Rate limit reached. Try again shortly. | | over_minute_cap | Outbound usage limit reached for now. | | unauthorized | Invalid or missing API key. | | not_found | No call found with that id (or it does not belong to your account). | | placement_failed | The call could not be placed (carrier/trunk issue). Try again shortly. | | store_error | Temporary service error. Please retry shortly. | | timeout | waitForCall hit the timeout before reaching a terminal status. | | network_error | Could not reach the API (network failure). |

Constructor options

new Client({
  apiKey,                              // required
  baseUrl,                             // default: 'https://api.voxplo.ai'
  fetchImpl,                           // override global fetch (useful for tests)
  sleep,                               // override the poll sleep (useful for tests)
})

Development

node --check src/*.js   # syntax check
node --test             # run all tests (run from sdks/node/)

No dependencies are required. Node 18+ is needed for built-in fetch.