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

@praxicraft/assess

v1.0.0

Published

Official Node.js / TypeScript SDK for the Praxicraft Assess Public API

Readme

Praxicraft Assess Node SDK

Official Node.js / TypeScript client for the Praxicraft Assess Public API.

Use it to invite candidates, check invite quota, manage webhooks, enroll hiring pipelines, and fetch results from your ATS, backend, or automation scripts.

npm install @praxicraft/assess

Requires Node.js 18+. Full API reference: https://docs.praxicraft.com

Table of Contents


Authentication

Create an organisation API key in Assess:

Assess → Developer → API Keys → create key → copy ct_live_… (shown once).

export PRAXICRAFT_API_KEY="ct_live_xxxxxxxxxxxxxxxx"

Or pass the key when constructing the client:

import { Client } from "@praxicraft/assess";

const client = new Client({ apiKey: "ct_live_xxxxxxxxxxxxxxxx" });

Optional: override the API host with PRAXICRAFT_API_BASE_URL or new Client({ baseUrl }). Default host: https://assess.praxicraft.com.

Never commit API keys. Prefer environment variables or a secrets manager.

Scopes and rotation: Authentication


Quickstart

import { Client } from "@praxicraft/assess";

const client = new Client(); // reads PRAXICRAFT_API_KEY

const page = (await client.assessments.list()) as { results: Array<{ slug: string; status: string }> };
for (const assessment of page.results) {
  console.log(assessment.slug, assessment.status);
}

// Invite a candidate (idempotent on email — safe to retry)
const invite = (await client.invites.create("senior-backend-screen", {
  email: "[email protected]",
  name: "Jane Doe",
  send_email: true,
})) as { invite_token: string; invite_url?: string };

console.log(invite.invite_token, invite.invite_url);

const result = await client.results.retrieve(invite.invite_token);
console.log(result);

Responses are flat JSON (same shape as the Public API — no { data: … } wrapper).


What you can do

| Resource | Common methods | |----------|----------------| | client.org | retrieve(), stats() | | client.assessments | list(), retrieve(), create(), update(), activate(), listTasks(), attachTasks(), replaceTasks(), removeTask() | | client.invites | create(), bulkCreate(), list(), retrieve(), remind(), cancel() | | client.results | list(), retrieve(), iterAll() | | client.webhooks | list(), create(), retrieve(), update(), delete(), test(), deliveries() | | client.pipelines | list(), retrieve(), enroll(), bulkEnroll(), listEnrollments(), getEnrollment() | | verifySignature | Verify X-Praxicraft-Signature on webhook payloads |

All paths target /api/v1/public/… on the Assess host.

Check invite quota before bulk sends

const org = (await client.org.retrieve()) as { invites_remaining?: number };
if ((org.invites_remaining ?? 0) < candidates.length) {
  throw new Error("Not enough invites remaining this month");
}

Register and test a webhook

const hook = (await client.webhooks.create({
  url: "https://example.com/hooks/praxicraft",
  events: ["assessment.completed", "candidate.passed"],
})) as { id: string; secret_key: string };

// Store hook.secret_key (whsec_…) — shown once
await client.webhooks.test(hook.id);
await client.webhooks.update(hook.id, { is_active: true });

Verify webhook signatures

import { verifySignature } from "@praxicraft/assess";

function handleWebhook(rawBody: Buffer, signatureHeader: string, secret: string) {
  return verifySignature(secret, rawBody, signatureHeader);
}

Header format: X-Praxicraft-Signature: sha256=<hex>

Event catalog: Webhooks

Paginate cohort results

for await (const row of client.results.iterAll("senior-backend-screen", { page_size: 50 })) {
  console.log(row);
}

Errors

Branch on error.code (stable), not the message text:

import {
  AuthenticationError,
  InsufficientScopeError,
  RateLimitError,
  ValidationError,
} from "@praxicraft/assess";

try {
  await client.invites.create("demo", { email: "[email protected]" });
} catch (err) {
  if (err instanceof ValidationError) {
    console.log(err.code, err.details);
  } else if (err instanceof InsufficientScopeError) {
    console.log(err.code, err.requiredPlan);
  } else if (err instanceof AuthenticationError) {
    console.log(err.code);
  } else if (err instanceof RateLimitError) {
    console.log(err.retryAfter);
  } else {
    throw err;
  }
}

Error codes: Errors


Requirements & support


License

MIT