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

@pi-vault/pi-questionnaire

v0.1.0

Published

Pi extension for collecting structured user decisions in one interactive questionnaire

Downloads

67

Readme

@pi-vault/pi-questionnaire

npm version Quality Node >= 22.19 License: MIT

Stop guessing and ask better follow-up questions. @pi-vault/pi-questionnaire adds a questionnaire tool to Pi so an agent can collect several related answers in one focused interaction.

Use it when you want the agent to pause, ask a few structured questions, and then continue with clearer input.

Install

pi install npm:@pi-vault/pi-questionnaire

Then reload Pi:

/reload

Good uses

Use questionnaire for things like:

  • narrowing scope before implementation
  • choosing between a few approaches
  • collecting rollout or release preferences
  • confirming priorities before the agent starts work
  • batching several related decisions into one prompt

If the user is already talking through the problem in free-form, normal conversation is usually better.

What it feels like to use

The user sees one question at a time in an interactive terminal flow, then reviews everything before submitting.

A question can lead to any of these outcomes:

  • pick one option
  • pick several options
  • type a custom answer
  • say “Chat about this” instead
  • add a note with extra context

That makes it useful when you want structure without forcing every answer into a rigid preset.

Typical example

A release-planning questionnaire might look like this:

questionnaire({
  questions: [
    {
      type: "single-choice",
      id: "scope",
      header: "Scope",
      prompt: "Which scope should we ship first?",
      options: [
        {
          value: "small",
          label: "Small",
          description: "Minimal release scope",
        },
        { value: "full", label: "Full", description: "Broader first release" },
      ],
      recommendation: "small",
      allowOther: true,
      allowChat: true,
    },
    {
      type: "multi-choice",
      id: "checks",
      header: "Checks",
      prompt: "Which release checks should we run?",
      options: [
        { value: "lint", label: "Lint" },
        { value: "types", label: "Typecheck" },
        { value: "tests", label: "Tests" },
      ],
      recommendation: ["lint", "types", "tests"],
      allowChat: true,
    },
  ],
});

What the agent gets back

After submission, the tool returns a compact summary the agent can use immediately.

Example:

Scope: user selected: 1. Small
Scope note: "keep the first release tight"
Checks: user selected: 1. Lint, 2. Typecheck, 3. Tests

It can also capture answers like:

Scope: user wrote: "Ship only the core questionnaire flow"
Features: user wants to discuss this question

Writing better questionnaires

A few habits make the tool work better:

  • keep it short
  • ask only questions that affect the next decision
  • offer clear, concrete options
  • include a recommended option when you have one
  • leave allowOther on when a custom answer might matter
  • leave allowChat on when the user may need to talk something through

License

MIT