pkg x-ray

For AI coding agents

A pre-install firewall for AI coding agents.

Check packages before your agent installs them.
SAFE, REVIEW, or BLOCK, with evidence you can inspect.

Live static scan

Check it before you install.

Public npm packages and GitHub repositories.
Fresh source. No installation or package execution.

Try a popular package:

Choose an example, then select Scan source. Each uses its latest published version.

A name without a version resolves the current npm tag or GitHub commit. Downloads and analysis run in your browser. npm, GitHub, and OSV receive the requests; pkgxray does not store your scan.

Up to 8 MiB compressed, 100 source files, and 1 MiB of source text. Large or unsupported sources may need the local CLI. Private repositories and local files are not supported.

Ready. Source is inspected as data; package code is never run.

01 / The evidence

A clean scan. A clear block.

Captured with published pkgxray 1.5.1.
29 Nov 2026. Source inspected, never executed.

SAFE is scoped to completed checks. Dependencies were not scanned. This is a recorded result, not a live browser scan or recommendation to install this version.

Artifact & record details

ms tarball SHA-256

f6616e15e530ed552f9daa2d3ce71963947c6bc7c98c9b64fd3e673fd02622c6

JSON omits source contents, registry contacts, local paths and timings; capture metadata records the full report digest.

Why Express gets REVIEW

Express loads view engines by name in lib/view.js. That is expected, but the selected engine cannot be resolved statically. The hold is a coverage limitation, not a malware finding. Chalk has unsupported flow semantics. Current Express receipt · 100-package results and scope.

02 / The boundary

Know what’s checked.

Read the threat model

Package inspection

Stage a package, inspect its source and supply-chain evidence, then review the cited findings. Normal static scans do not execute the inspected package’s code or install scripts.

Coverage varies

npm gets behavioral and supply-chain checks. PyPI has narrower coverage; general Python behavioral analysis is not implemented. Dependency checks depend on the command and flags you use.

Runtime has limits

Static analysis cannot see runtime-fetched payloads. Listing MCP tools can start a server; the proxy runs it, and opt-in canary scans execute code in a sandbox.

03 / Your terminal

Start with one package.

Node.js 18+ and network access.
No global install required.

Scan the example packagePublished CLI · v1.5.1
npx --yes pkgxray@1.5.1 guard npm:ms@2.1.3

Downloads ms into quarantine and inspects it. It does not install ms or run its code. This pinned example reproduces the command, not a guaranteed verdict.

Read the documentation

04 / Your MCP client

Connect without installing.

Public MCP over Streamable HTTP.
No account or API key required.

Remote server URLNo authentication
https://mcp.pkgxray.ca/mcp

Add a remote server in your MCP client, paste this URL, and choose Streamable HTTP with no authentication. The URL is a protocol endpoint, not a web page. Adding the tool does not automatically intercept installations; use the local guard for enforcement.

Client setup guide

Two focused tools

Check supplied source snippets for suspicious behavior, or look up metadata and known vulnerabilities for an exact npm version. No package execution, VM, complete archive scan, or installation approval.

Know what you share

Submitted source is processed on Cloudflare. Do not send secrets. Source checks accept up to 16 files and 16 KiB total; rate limits apply. Package names and versions are sent to npm and OSV for metadata checks.

Default CLI source analysis runs locally. The public MCP processes submitted snippets on Cloudflare. Optional Jev review uploads selected source to TypeSafe. Public MCP testing is maintainer-funded and needs no caller key; its explicit Jev gate can require REVIEW. The published CLI's Jev review needs your own key and is advisory. The maintainer has no commercial relationship with TypeSafe.