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

@trustabl/code-execution-agent-network-access-probe

v0.1.0

Published

Trustabl Probe as plain functions for agents that write and run code in a sandbox: draft a network allow list and find tool problems

Readme

Code execution for Trustabl Probe

Trustabl Probe as plain functions, for agents that write and run code in a sandbox.

Instead of calling a tool and receiving Probe's whole report into its context, an agent writes a short script: it scans, filters the result in code, and prints only what the request needs. The full result stays in the sandbox.

import { scan, summarize } from "@trustabl/code-execution-agent-network-access-probe";

const result = await scan("./tools/weather");
console.log(summarize(result));       // readiness score, findings per severity, allow list
console.log(result.allowList);        // e.g. ["api.example.com:443"]

On the one-file tool in test/fixture, the full result is 6,434 characters; a summary plus the critical findings' titles is 284.

This package sits alongside Probe's CLI, MCP server and plugins. It does not replace any of them.

Install

npm install @trustabl/code-execution-agent-network-access-probe

Node 20 or later. On first use the package downloads the pinned Probe release for your OS and architecture from GitHub Releases, checks it against the release's checksums.txt, and caches it in ~/.trustabl-code-execution/probe/. A binary that does not match is never run.

| Variable | Effect | | --- | --- | | PROBE_BIN | Use this Probe binary instead of downloading one. | | PROBE_VERSION | Download this release tag instead of the pinned one. | | GITHUB_TOKEN | Authenticate the download, to avoid GitHub's anonymous rate limit. |

API

  • scan(dir, options?): scan a directory of agent tool code (Python, Go, JavaScript/TypeScript, Ruby, Shell). Static analysis always runs. With sandbox: "auto" (default) the tool also runs in a network-blocked sandbox when Docker or OpenShell is ready; "off" is static only; "on" fails without a runner. Other options: entrypoints, allowWriteTools. Resolves to readinessScore, findings (worst first, each with a fix_hint), allowList, languages, sandbox, notes, files, and the raw report, attestation and profile. Probe writes network_policies.draft.yaml and its reports into the scanned directory.
  • summarize(result): score, findings per severity, allow list, whether the sandbox ran.
  • checkSetup(): read-only check of the binary, Docker, sandbox images, OpenShell and Python. nextSteps(setup) lists what is missing; steps with who: "you" are commands for the user to run, with their permission.
  • install(options?): downloads the binary and pulls the sandbox images. It never installs system software.
  • version(): the Probe binary's version.

Types ship in index.d.ts.

Skill

skills/code-execution-agent-network-access-probe/SKILL.md teaches an agent this workflow. Copy it into your agent's skills folder.

Sandbox

The Dockerfile builds a reference sandbox with Node, this package and a verified binary. Inside it Probe runs static analysis; its own sandbox runs need Docker or OpenShell on the host.

docker build -t code-execution-agent-network-access-probe .
docker run --rm -v "$PWD:/workspace" code-execution-agent-network-access-probe node script.mjs

License

Apache-2.0