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

@kkantdev/contextpilot

v1.0.0

Published

ContextPilot Laptop Agent - Phone-to-Laptop developer bridge and AI agent

Readme

ContextPilot

ContextPilot is a local-first laptop agent that lets the ContextPilot mobile app securely pair with a developer workstation over a local network. It displays a pairing QR code, authenticates the phone, and can run approved development workflows inside the directory where it starts.

This is an MVP intended for trusted local development networks. Review the security notes before using it with real projects.

Requirements

  • Node.js 18 or later
  • A local network shared by the laptop and phone
  • Optional: Ollama for local AI planning. Without it, ContextPilot uses its deterministic mock AI fallback.

Install and run

Note: The npm package name is @kkantdev/contextpilot, but the installed CLI command remains contextpilot.

Run the agent from the root of the project you want to work on:

npm install -g @kkantdev/contextpilot
cd /path/to/your/project
contextpilot start

Or run it without a global install:

npx @kkantdev/contextpilot start

The command prints a QR code. Scan it from the ContextPilot mobile app to pair. Pairing tokens expire after five minutes.

CLI commands

# Start the agent (default command)
contextpilot start

# Choose a port, AI model, or force the offline mock adapter
contextpilot start --port 8765 --model qwen2.5-coder
contextpilot start --mock-ai

# Check Node, workspace, and Ollama availability
contextpilot doctor

# Test a running agent from another terminal
contextpilot mock-client --host 127.0.0.1 --port 8765 --token YOUR_TOKEN

If the requested port is occupied, ContextPilot automatically tries the next available port (up to ten ports). On Windows it also prints the firewall command needed to allow phone connections.

Configuration

Environment variables are optional:

| Variable | Default | Description | | --- | --- | --- | | CONTEXTPILOT_PORT | 8765 | WebSocket and HTTP server port | | CONTEXTPILOT_HOST | 0.0.0.0 | Bind address | | CONTEXTPILOT_MODEL | qwen2.5-coder | Ollama model name | | OLLAMA_HOST | http://127.0.0.1:11434 | Ollama server URL | | CONTEXTPILOT_USE_MOCK | false | Use the offline mock AI adapter | | LOG_LEVEL | info | debug, info, warn, or error | | TOKEN_TTL_SECONDS | 300 | Pairing-token lifetime |

Security

  • Start the agent only from a workspace you trust.
  • Pair only with devices you trust on a private network.
  • Keep pairing QR codes and tokens private; tokens grant access for their configured lifetime.
  • ContextPilot validates requests and requires approval for review/dangerous operations, but it can execute actions in your workspace after approval.
  • Do not expose the agent directly to the public internet.

Development

npm install
npm run build
npm test
npm run dev

npm run build compiles TypeScript to dist/. The published package contains only the compiled output, CLI launcher, README, and license.

License

MIT. See LICENSE.