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

grokrc

v0.2.3

Published

Remote control for xAI's Grok Build CLI — drive your terminal coding agent from your phone over the agent's own protocol, not a screen scrape.

Readme


⚡ Get started

# 1. Grok Build (required)
curl -fsSL https://x.ai/cli/install.sh | bash
grok login

# 2. grokrc
npm install -g grokrc

# 3. One required setting — where new sessions open
grokrc config set defaultCwd ~/code

# 4. Phone sessions auto-run tools (no per-tool stop).
#    For one-tap approvals on the phone:
#      grokrc config set permissionMode default
#    and in ~/.grok/config.toml (Grok defaults approvals off):
#      [features]
#      support_permission = true
#      [ui]
#      permission_mode = "default"

# 5. Start
grokrc up --lan

Open the printed URL on your phone, enter the 6-character code, add to Home Screen.

  grokrc listening on http://192.168.1.10:4319

  No paired devices. Open the URL above and enter:

      Y8M8GF

(192.168.1.10 is an example — use the address your machine prints.)

For access from anywhere (cellular, travel), use Tailscale so the phone gets HTTPS on your private tailnet — see Guide → Tailscale.

Check the install anytime: grokrc doctor


⭐ Features

| | Existing tools | grokrc | | ----------------------- | -------------------- | ------------------------------------- | | Transport | PTY / terminal bytes | ACP JSON-RPC (typed) | | Waiting for you? | Regex over ANSI | session/request_permission | | Approve a tool | Send keystrokes | One tap by optionId | | Networking | Open inbound ports | LAN, Tailscale, or outbound relay | | Terminal + phone | Separate sessions | Same session (grokrc term) | | Take over a TUI session | ✗ | One tap from the phone | | Hand back to desktop | ✗ | Auto-open terminal + grok -r | | Platforms | Often iOS-only | PWA — iOS and Android | | Grok Build | Unsupported | Native |

  • Owned sessions — start from the phone; full control
  • Observed sessions — watch a hand-started grok TUI (read-only until take over)
  • Push notifications — self-hosted Web Push (VAPID); no third-party cloud
  • Relay mode — daemon dials out; nothing listens on your machine

Full usage: docs/GUIDE.md


📥 Install

Requires Node 20+ and Grok Build.

npm install -g grokrc

From source:

git clone https://github.com/sandeep-alluru/grokrc.git
cd grokrc
npm install && npm run build
npm link

| Platform | Packaged CLI | Full suite (CI) | Service | | ----------- | ------------ | --------------- | ----------------- | | Linux | Node 20–24 | Node 22, 24 | systemd user unit | | macOS | Node 20–24 | Node 22, 24 | — | | Windows | Node 20–24 | Node 22, 24 | Scheduled Task |

Verified against Grok Build 0.2.x and 1.0.x.


🚀 Quickstart

grokrc config set defaultCwd ~/code   # required
grokrc doctor                         # agent, ACP, approvals
grokrc up --lan                       # reachable on your LAN

| Goal | Command | | ------------------------ | ----------------------------------------------------- | | Pair another device | grokrc pair | | List devices | grokrc devices | | Revoke a device | grokrc revoke <id> | | Terminal on same session | grokrc term | | Run as a service (Linux) | see Guide → Service | | Outbound relay | grokrc up --relay wss://your-relay |


📱 Reach your phone

  1. LAN — grokrc up --lan on a trusted Wi‑Fi only
  2. Tailscale (recommended) — install Tailscale on PC + phone, then:
    sudo tailscale set --operator=$USER
    tailscale serve --bg http://127.0.0.1:4319
    Open the printed https://your-machine.tail-xxxx.ts.net URL (sample shape only)
  3. Relay — daemon dials out to a VPS you control

Step-by-step Tailscale setup (install, Serve, pair, persist, troubleshooting):
Guide → Tailscale


📚 Documentation

| Doc | Contents | | ---------------------------------------- | ---------------------------------------------------------------------- | | Guide | Install, config, daily use, push, relay, service, troubleshooting, FAQ | | Architecture | Topology, ACP, session modes, event model | | Security | Threat model, reporting | | Contributing | Dev setup, tests, PRs | | Changelog | Release notes |


🔒 Security in one line

Remote control of a coding agent is remote code execution. Pair devices, prefer Tailscale or relay over open LAN, and if you want one-tap approvals set both grokrc config set permissionMode default and Grok support_permission / permission_mode = "default". See SECURITY.md.


License

MIT