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-lab/grok-build

v1.0.4

Published

Grok Build CLI tool extension for pi coding agent

Readme

@pi-lab/grok-build

A pi extension that adds a single grok_build tool backed by the local Grok Build CLI.

The tool intentionally stays prompt-only: Grok Build is itself an agent, so pi gives it a natural-language task and lets Grok choose its own image, video, web, and X/Twitter capabilities.

Requirements

Install and authenticate Grok Build first.

Capability guidance

| Capability | Guidance | | -------------------------- | -------------------------------------------------------------------------------------------- | | Image generation | ✅ Recommended | | Image edit | ✅ Recommended | | Video generation | ✅ Recommended | | X/Twitter search | ✅ Recommended when Grok-native user, semantic, or advanced keyword search is useful | | X/Twitter post/thread read | ✅ Use Grok Build for detailed context; use webfetch when faster, simpler output is enough | | General web search | ⚠️ Available but not recommended; prefer other websearch tool | | General web fetch | ⚠️ Available but not recommended; prefer other webfetch tool | | Coding tasks | ❌ Not recommended |

Install

pi install npm:@pi-lab/grok-build

Usage

Ask pi for image or video generation, for example:

Use Grok Build to generate an image of a cyberpunk red panda mascot.

The tool accepts only one argument: prompt. Grok decides how to satisfy the request.

X/Twitter usage

Prefer grok_build for X/Twitter tasks when Grok Build is installed and authenticated. It uses the local Grok agent, understands natural-language requests, and can read richer post/thread context than the API-key based xsearch tool.

grok_build can handle common X/Twitter requests in natural language:

Search X for recent reactions to the latest Grok Build release.
Read this X thread and summarize the main points: https://x.com/...

For X/Twitter links, Grok Build usually returns richer context such as replies, quoted posts, media details, views, and bookmarks.

X/Twitter tool comparison

All three tools can be useful, depending on the task:

| Tool | Best for | Notes | | ------------ | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | grok_build | Reading X posts/threads with rich context; natural-language X search | Usually gives the most complete context, including replies, quotes, media details, views, and bookmarks. Native X search typically returns about 10 posts per search call. | | xsearch | Broader X search with many citation URLs | Uses the xAI API-key workflow and is better when you need more search results/citations rather than deep thread context. | | webfetch | Fast, simple fetch of a single X post body | Usually faster and more deterministic, but returns less context than Grok Build. |