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

awaithumans

v0.1.7

Published

HITL infrastructure for AI agents. Your agent calls awaitHuman(), a human reviews via Slack/email/dashboard, agent resumes with a typed response.

Maintainers

llm_moneyllm_money

Keywords

human-in-the-loophitlhuman-reviewhuman-feedbackhuman-approvalhuman-oversighthuman-supervisionhuman-layerapproval-workflowapproval-processreview-workflowescalationhandoffagent-handoffagent-supervisionai-agentsai-agentagentic-aiagenticagent-workflowagent-orchestrationagent-infrastructureagent-frameworkautonomous-agentsautonomous-aimulti-agentmulti-agent-systemsagent-toolsagent-evaluationai-workflowworkflow-automationai-automationagentopsai-infrastructureai-opsai-platformopenaigptgpt-5gpt-5-minigpt-5-nanogpt-5-turbogpt-5-proo1o3o3-minio4-minichatgptopenai-apiclaudeclaude-apiclaude-codeclaude-3claude-3-opusclaude-3-sonnetclaude-3-haikuclaude-3-5-sonnetclaude-3-7-sonnetclaude-4claude-opusclaude-sonnetclaude-haikuclaude-opus-4claude-sonnet-4claude-haiku-4claude-opus-4-5claude-sonnet-4-5claude-opus-4-7claude-sonnet-4-6claude-haiku-4-5anthropicanthropic-apigeminigemini-apigoogle-aivertex-aimistralllamallama-3meta-aideepseekollamahuggingfacelangchainlangchainjslanggraphlanggraphjslangsmithllamaindexhaystackcrewaiautogenpydantic-aivercel-ai-sdkai-sdkmastrainngesttrigger-devtemporaltemporalion8nsemantic-kernelmcpmodel-context-protocolragretrieval-augmented-generationvector-databasevector-searchembeddingsfunction-callingtool-usetool-callingstructured-outputsfine-tuningprompt-engineeringpromptpromptsllmllmsllmopsai-evaluationai-observabilityai-monitoringai-safetyguardrailsresponsible-aiai-governanceai-qualityevalsevaluationrlhfdata-labelingannotationtypescriptjavascriptpythonnodejsbundenoedge-runtimecloudflare-workersserverlessslackslack-botslack-integrationemailwebhookwebhooksnotificationscallbackasyncawaitasync-workflowchatbotcopilotai-assistantvirtual-assistantcustomer-supportsupport-automationcontent-moderationmoderationcompliancekycamlfraud-detectionrisk-reviewops-automationcode-reviewcode-generationcoding-agentdeveloper-agentresearch-agentbrowser-automationbrowser-agentweb-scrapingdata-extractiondocument-processingdocument-extractiondocument-aiocrpdf-extractionsummarizationtranslationtranscriptionspeech-to-texttext-to-speechvoice-agentvoice-aivoicebotsales-automationmarketing-automationrecruitinghr-automationlegal-ailegal-techcontract-reviewhealthcare-aimedical-aifinance-aifintechinsurance-aiunderwritingclaims-processingtrading-botdecision-supportqa-automationtesting-automationdevops-automationdata-annotationdata-qualitylabel-studioemail-automationmeeting-notesknowledge-basesearch-agenttask-automationrobotic-process-automationrpazodpydanticfastapideveloper-toolsdevtoolsopen-source

Readme

awaithumans — HITL infrastructure for AI agents

Your agents already await promises. Now they can await humans.

npm installs GitHub stars

npm Node License Discord

Docs · Quickstart · Examples · Discord

HITL infrastructure for AI agents — open source. A single primitive (awaitHuman()) your agent calls when the model can't or shouldn't proceed alone. A human gets notified (Slack, email, or dashboard), reviews the request, submits a typed response, and your agent resumes — like awaiting any other promise.

import { awaitHuman } from "awaithumans";
import { z } from "zod";

const RefundRequest = z.object({
  orderId: z.string(),
  amountUsd: z.number(),
});

const Decision = z.object({
  approved: z.boolean(),
  note: z.string().optional(),
});

const decision = await awaitHuman({
  task: "Approve refund request",
  payloadSchema: RefundRequest,
  payload: { orderId: "A-4721", amountUsd: 180 },
  responseSchema: Decision,
  timeoutMs: 900_000,
});

if (decision.approved) {
  await processRefund(...);
}

awaithumans demo — an agent creates a task, a human reviews it, the agent resumes with the typed response

The awaithumans dashboard — pending tasks queued for human review


Install

npm install awaithumans
# or
pnpm add awaithumans
# or
bun add awaithumans

Works in Node 20+, Bun, Deno, and edge runtimes (Cloudflare Workers, Vercel Edge). No node:* imports.


Run the server

The awaithumans server (which handles task storage, Slack/email channels, and hosts the review dashboard) is written in Python. As a TypeScript developer you don't have to touch a Python environment — the npm CLI wraps it:

npx awaithumans dev

Under the hood this uses uv to fetch + run the Python server on demand. Install uv once:

curl -LsSf https://astral.sh/uv/install.sh | sh   # unix
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"  # windows

First run prints a setup URL. Open it, create the operator account, you're in. The dashboard is at http://localhost:3001.

Prefer Docker? docker run -p 3001:3001 ghcr.io/awaithumans/awaithumans:latest.

Tasks can be delivered to Slack channels with a "Claim this task" button — first clicker atomically wins, response form opens as a modal, agent unblocks when they submit. Add notify: ["slack:#ops"] to the awaitHuman() call:

Slack broadcast — a task posted to a channel with a Claim button


Durable workflows

When your agent runs inside Temporal or LangGraph, you don't want the wait sitting on an orchestrator thread for 15 minutes:

// Temporal — signal-based suspend + callback
import { awaitHuman } from "awaithumans/temporal";

// LangGraph — interrupt/resume
import { awaitHuman } from "awaithumans/langgraph";

Same awaitHuman shape, same typed response. The adapter just changes how the wait is orchestrated.


Testing

An in-memory mock client so your agent tests don't need a running server:

import { createTestClient } from "awaithumans/testing";

const client = createTestClient();

// Drive the human's response programmatically.
client.onAwait((task) => ({ approved: true, note: "looks good" }));

Documentation


License

Apache License 2.0. The TypeScript SDK, every adapter subpath export, and the Python server + dashboard it talks to are all under the same license — permissive, OSI-approved, with an explicit patent grant.