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

@luxass/pi-questions

v0.2.0

Published

Ask structured questions in Pi with tabs, choices, notes, and Markdown previews.

Readme

@luxass/pi-questions

Answer structured questions from Pi with choices, custom answers, notes, and Markdown previews.

Install

pi install npm:@luxass/pi-questions

Requires interactive Pi. RPC, JSON, and print modes are not supported. There are no commands or configuration files.

In Rex, Pi reports Waiting for answers while a questionnaire is open. Pi clears the status when the questionnaire closes. Pi 1.5.0 reports this status only for inline questionnaires.

With Herdr's Pi integration installed and loaded, Herdr marks the agent as blocked while a questionnaire is open. The bundled @luxass/herdr-agent-shared library adds the sidebar label Waiting for answers. Include state_text in Herdr's agent sidebar rows to display it. No extra Pi extension is needed. Submission, cancellation, an abort, or an error clears this questionnaire's state and label. Without Herdr, questionnaires work as usual.

Use

The model can use ask_questions without an explicit request. Its instructions tell it to clarify unclear goals, scope, and constraints before implementing a new system or substantial feature. It skips questions you already answered and routine implementation details. You can also ask it to use the tool explicitly.

Each questionnaire accepts one to four questions, with two to six options per question.

The questionnaire opens below the conversation in Pi's editor area. With one question, confirming an answer submits it directly. With multiple questions, selecting an option moves to the next tab. The final Review tab lets you submit or cancel.

| Key | Action | | --------------- | ---------------------------------------------------------- | | Tab / Shift+Tab | Move to the next or previous tab outside text editors. | | Right / Left | Move to the next or previous tab outside text editors. | | Up / Down | Move between choices. | | Enter | Choose an option, toggle a checkbox, or save custom text. | | Space | Toggle an authored checkbox in a multi-select question. | | 1–6 | Choose the corresponding authored option. | | n | Edit a question note, or a global note on the Review tab. | | q / p | Read the complete question or the focused option preview. | | Ctrl+] | Collapse or expand without losing answers or drafts. | | Ctrl+U | Clear the custom-answer draft while typing. | | Delete | Clear the current answer outside text editors. Keep notes. | | Escape | Cancel, save a note, or return from a question or preview. |

Focus Type something. to write a custom answer. Enter saves it, and Shift+Enter adds a line. Up or Down leaves the editor at the first or last line without discarding its text. For a multi-select question, custom text counts alongside checked options. Choose Next when you finish selecting.

Outside text editors, press q to read a long question or p to read the focused option's Markdown preview. Up, Down, Home, and End scroll these views. Escape returns to your choices. Wide terminals also show the preview beside the options. Narrow terminals show it below them.

Press n outside text editors to add a note. Enter or Escape saves the note. Notes do not count as choices. The Review tab allows partial answers and names unanswered questions. A note-only submission is allowed, but an empty submission is not.

Cancelling discards all draft answers. The questionnaire also closes when the agent aborts its request. Unanswered questions remain undecided.

In fullscreen Pi, click an option label or any line of its description to choose it or toggle its checkbox. Click Type something. to write a custom answer. Next, Submit, and the Review actions appear as plain clickable rows. Clicking Next or Submit saves custom text that you are still editing.

Click a question header or Review to switch tabs. Clicking another tab saves an open note and keeps custom-answer drafts. Page Up, Page Down, and the mouse wheel scroll the conversation while you answer. In regular mode, use keyboard navigation and your terminal's scrollback controls.