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

@muzluk/agent-questions

v0.1.11

Published

A swipeable React question reel for agent follow-ups, with choices, text, scales, time, and a tactile mood wheel.

Readme

@muzluk/agent-questions

A compact, swipeable React question reel for an agent's concrete follow-up questions. It includes choices, text, scales, time, and the Muzluk mood wheel.

npm install @muzluk/agent-questions
import {
  AgentQuestions,
  AGENT_QUESTIONS_ASSETS,
  AGENT_QUESTIONS_TOOL,
  parseAgentQuestions,
} from "@muzluk/agent-questions";
import "@muzluk/agent-questions/styles.css";
import "@muzluk/mood-wheel/styles.css";

const tool = AGENT_QUESTIONS_TOOL; // Give this schema to your model SDK.
const { questions } = parseAgentQuestions(toolResult);

<AgentQuestions
  questions={questions}
  onAnswer={persistOneAnswer}
  onComplete={sendAnswersBackToAgent}
/>

The component owns drafts, paging, animation, and retry presentation. Your app owns model calls, authorization, persistence, and what happens after completion. Set sound={false} for a silent host, or pass assets={{ answered: ..., reveal: ... }}. The exact bundled cues are also available as AGENT_QUESTIONS_ASSETS.answered and AGENT_QUESTIONS_ASSETS.reveal. Its default theme reproduces Muzluk's compact dark composer shelf; every semantic color remains overridable through the documented --aq-* custom properties. Cards can be dragged vertically with touch or a mouse. Horizontal intent stays with the Mood Wheel, while vertical release velocity drives the reel landing and the wheel pointer's inertial lean.

Pass a transcribe function to enable the built-in microphone control for text questions and custom choice answers. The browser records audio locally and hands your function the resulting Blob; the package never chooses or calls a speech provider for you.

<AgentQuestions
  questions={questions}
  transcribe={async (recording, { question, locale }) => {
    const body = new FormData();
    body.append("recording", recording);
    body.append("questionId", question.id);
    body.append("locale", locale);
    const response = await fetch("/api/transcribe", { method: "POST", body });
    if (!response.ok) throw new Error("Transcription failed");
    return (await response.json()).text;
  }}
/>

time and scale questions use the tactile tick rail rather than the browser's native range input. Set expandable: true on a time question to reveal another range when the person reaches its authored maximum.

Keep step: 1 when every minute is meaningful (for example, a 1–90 minute range). The rail keeps every detent, labels major positions, expands short ranges to fill the control, and lets long ranges browse through the overflowing tick ruler. majorStep changes labels only; it never removes selectable ticks.

The same focus-time ruler is exported as AdvancedSlider for use outside a question reel. Its exact four tick variants and milestone impact are available through ADVANCED_SLIDER_ASSETS.