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

@pronative.ai/doctor

v1.0.50

Published

Official ProNative Doctor CLI — authenticates with Doctor API and installs the assigned toolchain

Readme

pronative.ai

Official Doctor CLI for the ProNative Doctor Platform (@pronative.ai/doctor).

Authenticates with Doctor API using your Student ID, loads your assigned profile (AS / AN / FDE), and installs the toolchain on macOS and Windows. After a successful install it starts the local agent (used by Playground / verify-lab and Copilot Verify).

You never choose a group — Doctor API assigns it. You never set an API URL — the CLI targets Production by default.

Current package version: 1.0.35

Quick start (students)

One short command

Windows (normal PowerShell — Admin optional):

irm https://api.doctor.pronative.ai/win | iex

No Administrator required for bootstrap. Node installs with winget --scope user when possible; Doctor runs via npx. Tool installs prefer non-admin paths; .NET / GitHub CLI use smart winget scope + script fallbacks. Some tools (e.g. Docker) may still need elevation.

Windows — start the local agent only (skip Student ID / tool install; use after Doctor has been installed once):

$env:PRONATIVE_MODE='agent'; irm https://api.doctor.pronative.ai/win | iex

Or, if Doctor is already on PATH: pronativeai agent

macOS (Terminal):

curl -fsSL https://api.doctor.pronative.ai/mac | bash

macOS — agent only:

PRONATIVE_MODE=agent curl -fsSL https://api.doctor.pronative.ai/mac | bash

That command checks the machine automatically (installs or upgrades Node to v24+ if needed), then starts Doctor. When prompted, enter your Student / Trainer ID only (PT-… for Event, ST-… for Training student, TR-… for Trainer).

npx "@pronative.ai/[email protected]"

In PowerShell, keep the quotes: npx "@pronative.ai/[email protected]"

Student flow

Welcome to pronative.ai Environment Doctor
Enter Student ID:
✔ Authentication Successful
Loading profile...
Registering device...
Starting installation...
Completed.
Starting local agent…   (http://127.0.0.1:4747)

Use --no-agent if you want to skip starting the agent after install.

Commands

| Command | Description | |---------|-------------| | pronativeai / pronativeai doctor | Authenticate and install tools, then start the local agent | | pronativeai verify | Check required tools for your profile (present / missing / outdated) | | pronativeai doctor health | Check Doctor API health | | pronativeai agent [--port=4747] | Start the local agent only (Admin optional on Windows) | | pronativeai execute --command="..." | Run a one-shot command in ~/ProNative (or PRONATIVE_WORKSPACE) | | pronativeai help | Show help | | pronativeai version | Show CLI version |

pronativeai help
pronativeai verify
pronativeai doctor health
pronativeai agent
pronativeai execute --command="gh auth status" --workdir=.

Useful flags

| Flag | Description | |------|-------------| | --no-agent | Skip starting the local agent after a successful doctor install | | --port=4747 | Agent listen port (default 4747) | | --command="..." | Command/script for execute (multiline supported) | | --workdir=. | Relative workdir under the ProNative workspace | | --json | JSON output for execute | | --allow-non-admin | Deprecated no-op (agent runs without Admin by default) | | --api-url=... | Maintainer override for Doctor API base URL |

Environment overrides (maintainers):

| Variable | Description | |----------|-------------| | PRONATIVE_API_BASE_URL / DOCTOR_API_BASE_URL | Doctor API base URL | | PRONATIVE_ENV | Production (default), Local, or Development | | PRONATIVE_STUDENT_TOKEN | Student JWT for agent activity / heartbeat reporting | | PRONATIVE_WORKSPACE | Override workspace root (default ~/ProNative) |

Local agent

The agent is a small HTTP + WebSocket server on 127.0.0.1:4747 (loopback only). Ops UI Playground and Copilot Verify use it to run commands on the student machine.

# Windows: open PowerShell (Admin), then:
pronativeai agent

# macOS / Linux:
pronativeai agent

| Endpoint | Description | |----------|-------------| | GET /health | Agent health (ok, version, agentToken) | | POST /v1/execute | Run a command/script (JSON body: command, workdir, timeoutMs) | | WS /v1/liveness | Persistent presence for Copilot (welcome JSON + 30s ping; no token on connect; closes when agent stops) | | WS /v1/session | Live session with streamed stdout/stderr + stdin |

Notes:

  • Windows: agent runs without Admin for most tools. .NET SDK / GitHub CLI no longer force winget --scope user (that failed on machine-only packages); Doctor tries default/portable winget first, then a user-local dotnet-install.ps1 fallback for .NET. Elevate only if a tool still needs machine install (e.g. Docker). If PowerShell scripts are blocked, use Set-ExecutionPolicy -Scope Process Bypass for that session.
  • Multiline scripts are supported. On Windows they run via PowerShell -EncodedCommand.
  • Optional Authorization: Bearer <studentJwt> on execute/session (or PRONATIVE_STUDENT_TOKEN) reports activity and heartbeats to Doctor API so ops can see Agent Online on student lists. Reporting never blocks or fails local execute.
  • WS /v1/liveness is for browser presence only (loopback Host + Origin allow-list). On connect it pushes { type, ok, version, agentToken, workspaceRoot, platform, isAdmin } and keeps the socket open until the agent process exits — so Copilot can flip online/offline without polling GET /health. Command execution still uses /v1/session or POST /v1/execute with the token from the welcome payload.
  • After doctor install, the CLI starts the agent automatically unless --no-agent is set.

Security

  • JWT is held in memory for the process only (never written to disk)
  • DeviceId is stored under AppData / Application Support
  • Group (AS / AN / FDE) comes from the API profile — never student-selected
  • Activity/heartbeat posts use the student JWT when present; failures are logged only and do not affect installs or local execute

Architecture

  • IDoctorApiService → HttpDoctorApiService
  • Profile strategy factory from API groupCode (AS / AN / FDE)
  • Local agent: src/agent/LocalAgentServer.ts + ActivityReporter
  • Existing brew / winget / vscode installers under src/installer/

More docs: docs/IntegrationGuide.md, docs/CLI-API-Contract.md

Development

npm install
npm run build
npm test
npm start

License

MIT