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

@flowwright/outbound-network

v0.1.1

Published

FlowWright shared outbound-network transport — proxy-aware fetch, SDK agents, and Git proxy env for FlowWright-owned egress.

Readme

@flowwright/outbound-network

The shared outbound-network transport for FlowWright — a proxy-aware fetch, Node http/https agents, and Git proxy env, so every piece of FlowWright-owned egress (GitHub, GitLab, Vault, S3, Git) routes through the configured outbound proxy the same way. The proxy is applied per request, never installed globally.

FlowWright · Server · Worker

Use it

import { createOutboundContext } from "@flowwright/outbound-network";

const outbound = createOutboundContext(resolvedProxy /* or null for direct */);

// Proxy-aware fetch — falls back to global fetch when no proxy is configured.
const res = await outbound.fetch("https://api.github.com/user");

// Ephemeral Git proxy env for a clone/fetch; {} when direct.
const env = outbound.gitProxyEnv(repoUrl);

// Isolated probe for the admin "test connection" route.
const probe = await outbound.testConnect("https://vault.internal");

Public surface

| Area | Main exports | |---|---| | Context | createOutboundContext, OutboundContext, OutboundContextOptions, ResolvedProxy | | Matching | matchesNoProxy | | Types | OutboundTestResult, OutboundFailureCategory |

An OutboundContext exposes fetch, nodeAgents(destination), gitProxyEnv(repoUrl), classifyError, testConnect, redactionSecrets, and shutdown.

Design boundary

  • The single seam for FlowWright egress — callers ask the context for a route rather than reading proxy env themselves, so proxy behavior is consistent and fail-closed.
  • Never mutates global fetch/agents; the proxy is scoped per request/destination.
  • Registers known proxy secrets with the log redactor; they never surface in logs.
  • Browser-safe: uses a regex IP check, not node:net, so it can be shared with api-contract.

Development

$ pnpm --filter @flowwright/outbound-network typecheck
$ pnpm --filter @flowwright/outbound-network test
$ pnpm --filter @flowwright/outbound-network build

Requires Node.js 24+. Licensed under MIT.