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

@vanillagreen/pi-questions

v1.4.1

Published

Pi extension for structured multi-tab inline questions and bridge-driven replies.

Readme

pi-questions

Questions workflow

Structured inline questions for Pi. Multi-tab categories, built-in free-text fallback answers, and bridge-driven replies.

Highlights

  • question tool for multiple-choice question tabs with a bottom Something else free-text fallback row by default.
  • Editor-area UI by default; optional floating overlay.
  • OpenCode-style question UI: tab hints and highlighted active rows.
  • Compact answered tool output lists every category answer and expands inline to show each question with the selected choice marked.
  • Wrapped option labels stay readable in narrow panes.
  • pi-session-bridge integration lets external clients list, answer, and reject pending questions.
  • When the bridge is loaded, question opened/answered/rejected lifecycle points publish structured question.* activity broker events without adding chat messages.
  • pi-qol notification hook fires before prompts open.

Install

Via npm:

pi install npm:@vanillagreen/pi-questions

Via vstack:

cargo install --git https://github.com/vanillagreencom/vstack.git vstack
vstack add vanillagreencom/vstack --pi-extension pi-questions --harness pi -y

Restart Pi after installation.

Payload

{
  "id": "que_example",
  "header": "Choose next action",
  "questions": [
    {
      "header": "Issue Missing",
      "question": "How should I proceed?",
      "options": [
        { "label": "Use current branch", "description": "Continue without a tracker issue." },
        { "label": "Stop here", "description": "Wait for operator guidance." }
      ],
      "multiple": false,
      "customLabel": "Something else"
    }
  ]
}

Result:

{ "requestId": "que_example", "answers": [["Stop here"]] }

Cancelled:

{ "requestId": "que_example", "cancelled": true }

Every tab includes a bottom free-text fallback row by default, labelled Something else unless customLabel overrides it. Agents no longer need to set allowCustom for a basic escape hatch; the legacy flag is still accepted for compatibility, and allowCustom: false does not disable the fallback. customPlaceholder customizes the input hint.

When the user types fallback text, the result uses the same answer shape as fixed options:

{ "requestId": "que_example", "answers": [["Use issue ABC-123 instead"]] }

Do not include a final Confirm, Submit, Review, or Done question tab in the payload; the UI adds its own submit tab when needed.

Settings

Open /extensions:settings; settings appear under the Questions tab.

Project settings in .pi/settings.json apply only after Pi marks the workspace trusted; before trust, vstack Pi extensions read user/global settings only.

| Setting | What it does | | --- | --- | | Question UI mode | editor replaces the input area; overlay uses a floating popup. | | Overlay popup width | Overlay mode only. | | Overlay popup max height | Overlay mode only. Number or percentage string. | | Visible option rows | Rows shown before scrolling. | | Default question header | Fallback title when a request has no header. | | Bridge replies enabled | Allow pi-session-bridge to answer/reject pending questions. |

Glyph style: each package exposes glyphStyle (unicode default, ascii for terminal-safe chrome). @vanillagreen/pi-tool-renderer.globalGlyphStyleOverride=ascii forces ASCII chrome across vstack Pi extensions while leaving tool/model/user content unchanged.

Bridge control

Requires pi-session-bridge. From any shell:

pi-bridge questions
pi-bridge answer --request-id que_example --answers '[["Stop here"]]'
pi-bridge reject --request-id que_example