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

askhuman

v0.9.1

Published

Human-in-the-loop interaction tool. The `AskHuman` CLI pops up a window (or uses Telegram / Slack / DingTalk / Feishu) to collect a human response and return it to the AI — usable standalone or as a dependency.

Readme

askhuman

English | 简体中文

Cross-platform "human-in-the-loop" interaction tool. When an AI assistant is about to end a conversation or needs confirmation, the AskHuman CLI pops up a window (or uses Telegram / Slack / DingTalk / Feishu) so you can ask follow-ups, pick options, add text, or attach images — and the result is returned to the AI.

跨平台「Human-in-the-loop」交互工具。当 AI 助手准备结束对话或需要确认时,命令行 AskHuman 弹出窗口(或经 Telegram / Slack / 钉钉 / 飞书),让你继续提问、勾选选项、补充文字或附带图片,并把结果回传给 AI。

Under the hood it's a single executable (Tauri 2 / Rust). This npm package distributes it via per-platform subpackages: installing fetches only the one binary matching your current platform.

Standalone use

npm i -g askhuman
AskHuman "Continue?" -o "Continue" -o "Stop"

As a dependency (programmatic use)

npm i askhuman
import { getBinaryPath, isAvailable } from "askhuman";
import { spawnSync } from "node:child_process";

if (!isAvailable()) {
  // Binary not in place: skip the human-confirmation step to avoid blocking the flow
} else {
  const r = spawnSync(getBinaryPath(), ["Continue?", "-o", "Continue", "-o", "Stop"], {
    encoding: "utf8",
  });
  if (r.status === 3) {
    // No usable channel in this environment (GUI can't open and no session channel configured): degrade gracefully
  } else if (r.status === 0) {
    // Success: parse the result blocks from r.stdout
    console.log(r.stdout);
  }
}

getBinaryPath() resolution order: env var ASKHUMAN_BINARY (legacy HUMANINLOOP_BINARY still works) → platform subpackage → system PATH.

Exit code contract

| Exit code | Meaning | |---|---| | 0 | Got a result, or the user cancelled (emits [Status]) | | 3 | No usable channel (local popup can't open and no session channel configured) — downstream should degrade | | 1 | Other error |

stdout contains only the result blocks ([Selected options] / [User input] / [Images] / [Files] / [Status]); all logs and errors go to stderr.

Platforms and system dependencies

Supports macOS (arm64/x64) and Linux (x64).

Running the GUI popup on Linux needs system WebKitGTK (e.g. libwebkit2gtk-4.1). If it's missing and a session-based channel is configured (Telegram / Slack / DingTalk / Feishu), AskHuman uses that channel automatically; if none is available, it signals degradation with exit code 3.

More info in the project repo: https://github.com/Naituw/AskHuman