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

@overskyai/inference-broker

v0.1.0

Published

Loopback credential broker: keeps a managed inference credential out of the harness process that uses it.

Readme

@overskyai/inference-broker

A loopback credential broker. It keeps a managed-inference credential out of the process that uses it.

Why this exists

A managed OverSky session runs a coding harness — a model-driven process with tool execution — and that harness needs to reach an inference endpoint. The obvious implementation hands it a bearer token through the environment. That is the one thing this package exists to prevent, because the harness's environment is also available to its descendants, to crash dumps, and to the default wrapper's serialized request.

Instead the broker listens on a Unix-domain socket in the session's own temp directory, and the harness is given a base URL on that socket plus a loopback-only secret that is worthless anywhere else. The broker holds the real session capability, attaches it on the way out, and enforces the request envelope the server authorized before anything leaves the machine.

The property this buys is stated as invariant I1 in docs/architecture/managed-inference-execution-shapes-2026-08-12.md:

No cloud-reusable credential enters the harness process. Not its environment, not its address space, not a file it can read.

That invariant is deliberately implementation-free, which is why this is a package rather than a directory in one service: it is satisfied by a broker hosted in the daemon (cloud-dispatched runs) or in the CLI (a human running sky code), and both hosts run the same code. Before the extraction, only the daemon could host one, which made a background service a hard prerequisite for an interactive command.

What it does

  • Serves a loopback relay over a Unix socket, in the provider dialect the admitted model needs (OpenAI-compatible, native Anthropic Messages, or Bedrock).
  • Enforces the request envelope locally before egress — request count, in-flight concurrency, body size — so a violation fails fast instead of at the metering gateway. The server re-checks everything; this is defence in depth, not the control.
  • Runs the lease renewal heartbeat, extending the session's authority while the human is present and classifying every refusal into a typed RenewalStopReason (stopped, denied, unavailable, ceiling, expired) so the caller can say which ending this was.
  • Refreshes the session capability it forwards with, swapping the one variable every forwarded request and every lease renewal reads.
  • Reports status on a reserved local path so a supervised session's spend and remaining lease can be shown to the human in real time — invariant I5.

What it is not

It is not a proxy you point at arbitrary hosts. Every request is checked against the daemon-issued broker origin and refused otherwise, and the socket path is supplied for exactly one spawned session — there is no socket discovery, no proxy environment, and no remote fallback.

Consumers

daemon (cloud-dispatched managed sessions) and @overskyai/cli (sky code). Both depend on this package; neither reimplements it.

Testing

npm test        # node --import tsx --test 'src/**/*.test.ts'

The suite covers the loopback server, dialect routing, request-envelope enforcement, the renewal loop and its refusal classification, and the status channel. It is the only coverage for any of those behaviours anywhere in the repository, so it runs in CI as its own job rather than under the monorepo's jest projects — the runner is Node's built-in test runner, not jest.