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

@majorgilles/pi-learning-tutor

v0.2.1

Published

Learning-mode tutoring, review loops, and definition overlays for pi.

Readme

Pi Learning Tutor

A pi extension that turns a conversation into a learner-owned tutoring thread. It emphasizes gradual concept scaffolding, blocks AI-authored edits by default, reviews learner attempts with bounded read-only inspection, and provides quick definition overlays.

Install

pi install npm:@majorgilles/pi-learning-tutor

For a one-off run without adding it to settings:

pi -e npm:@majorgilles/pi-learning-tutor

Commands

  • /learn <anything> — start learning mode with arbitrary context.
  • /learn done, /learn off, /learn stop — leave learning mode.
  • /exercise [topic] — generate a context-calibrated build challenge based on the current learning context, recent commits/diffs, or issue/resources; no solution up front.
  • /review [scope] — request a broader learning review.
  • /define [text] — show a definition in an overlay without adding it to main chat context. With no text, reads the clipboard first, then prompts if the clipboard is unavailable/empty.
  • /execute <request> — immediately ask the assistant to make a scoped code change.

Behavior

While learning mode is active, the extension:

  • injects tutor-mode instructions into the agent context,
  • prefers one small learner-owned next step at a time,
  • introduces new terms through a short prerequisite ladder, defining mandatory concepts before relying on downstream jargon (for example, prediction/error before loss/gradient in basic ML),
  • adds lightweight 30–90 second quick checks after key concepts when useful, renders them as prominent standalone ## ✅ Quick Check sections, evaluates learner answers supportively, and uses a visible skip note when checks would interrupt flow,
  • treats /exercise as a larger context-aware build challenge command: it should inspect bounded evidence such as recent commits/diffs or the issue at hand, then ask the learner to build a new scoped artifact rather than make one tiny edit,
  • keeps all external/research tools available (for example web/code search, fetch tools, MCP tools, gh, curl, or small URL-fetch scripts) without requiring extra permission,
  • blocks edit, write, and mutating bash commands by default, while allowing user-requested comment-only edits that add/refine explanations without changing executable code,
  • transforms readiness signals like done, review, or I tried it into review prompts,
  • asks the assistant to inspect relevant files/diffs before reviewing,
  • supports /define and ctrl+shift+d definition overlays,
  • leaves native terminal mouse selection/scrollback behavior alone by default, and
  • supports /execute <request> as a fire-and-forget escape hatch for broader scoped code changes.

Tip: select/copy terminal text normally, then run /define to define the clipboard contents. The old drag-to-define mouse capture is opt-in via PI_LEARNING_TUTOR_MOUSE_CAPTURE=1 because it can break mouse-wheel scrollback.

Development checks

npm install
npm run typecheck
npm pack --dry-run

See IMPLEMENTATION.md for the original implementation checklist.

License

This source is available under the MIT License.