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

@fractalcode/bridge

v0.1.1

Published

Compiles Fractal Code channel sidecars into OpenShell sandbox policy YAML, and wires the OpenShell Z3 prover as a finalize-time gate. Standalone — zero NVIDIA code, zero Fractal-internal dependency.

Readme

fractal-openshell-bridge

Compiles Fractal Code channel sidecars into OpenShell sandbox policy YAML, and wires the OpenShell Z3 prover as a finalize-time gate.

Fractal governs what an agent may semantically do (scoped channels, typed intents). OpenShell governs where bytes may physically travel (kernel filesystem/network/process containment). This bridge compiles between their domain models so an agent must pass both enforcement gates.

Alpha. Open source, Apache-2.0. Issues and PRs welcome.


What it does

  • compile — reads a directory of Fractal .channels.json sidecars, emits OpenShell policy.yaml. A pure, deterministic function: identical input → byte-identical output → identical SHA-256 hash.
  • prove — invokes openshell-prover as a subprocess against a compiled policy + credentials, returns structured findings. Fail-closed if the prover is flagged-on but absent or crashing.
  • verify — compile + prove in one step. Intended as a finalize-time gate: a pipeline that would leak data through a misconfigured channel is rejected before it can execute.

Channel scope (keepers only)

The bridge maps only the channels that earn their keep — app-semantic scopes the platform can't enforce natively:

| Fractal kind | Maps to | |---|---| | file | filesystem_policy (read_write / read_only) | | http | network_policies (host + L7 method rules) | | anthropic / openai / google-genai / cohere / mistral | network_policies (provider API host) | | github | network_policies (api.github.com + L7 method/path rules from allowedOperations) |

Deliberately NOT mapped (documented in emitted YAML comments): postgres/sqlite (read-only via SQL inspection is unsound — use DB roles), stripe (duplicates Stripe's restricted-key model), aws-s3/sqs (duplicates IAM), docker/kubernetes/terraform/vault/github-actions (native RBAC), browser (overlaps OpenShell network policy), test runners (local execution), and unaudited SaaS channels. See docs/mapping-reference.md.

Install

npm install -g @fractalcode/bridge

Or from source:

git clone https://github.com/haltandcatchwater/fractal-openshell-bridge.git
cd fractal-openshell-bridge
npm install && npm run build

Usage

# Compile a finalized scaffold's sidecars into OpenShell policy
fractal-openshell-bridge compile ./my-pipeline/cells -o policy.yaml

# Run the prover against the compiled policy
fractal-openshell-bridge prove --policy policy.yaml --credentials creds.yaml

# Compile + prove in one step (finalize-time gate)
fractal-openshell-bridge verify ./my-pipeline/cells --credentials creds.yaml

Security posture

  • Pure-function compiler. No temp files, no shared state, no side effects. Parallel invocations cannot cross-contaminate (nothing shared). Deterministic output (sorted keys, selective array sort) → identical input yields identical hash.
  • Prover gate fail-closed when flagged. If --openshell-prover is set and the binary is absent or crashing, finalization blocks (exit 2). An attacker who deletes the binary or mutates $PATH cannot silently disable the gate. No-op only when the flag is entirely absent.
  • No shell injection surface. Prover invoked via spawn with arg array, shell: false. Zero sidecar-derived data in any shell context.
  • Input hardening. 1 MiB file-size cap + parse-depth limit before JSON.parse. Sidecar directory must never be agent-writable (TOCTOU defense).
  • Policy file protection. policy.yaml is bind-mounted into the sandbox read-only (kernel-enforced), root-owned 0644, never in any FileChannel's allowedPaths, reinforced by Landlock, with the policy hash sealed into Fractal's Merkle root at finalize (tamper detection).
  • Zero NVIDIA code. No OpenShell source bundled or forked. OpenShell consumed as an Apache-2.0 binary via subprocess. No upstream PR required.

What it is NOT

  • Not a sandbox. It compiles a policy and invokes a prover. OpenShell does the enforcement.
  • Not a substitute for human review. The compiler mapping and prover wiring are AI-authored and unreviewed. The generated policy.yaml is plain YAML — read it before applying it.
  • Not a complete channel surface. Only the keeper channels are mapped. The dropped channels are documented, not silently ignored.

License

Apache-2.0. See LICENSE and NOTICE.