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

@vite-hub/sandbox

v0.0.3

Published

Sandbox execution primitives and Vite integration for ViteHub.

Readme

@vite-hub/sandbox

@vite-hub/sandbox discovers and runs named work by composing a package project and a Box. Sandbox owns discovery, orchestration, and project staging; Box owns provider-specific execution.

// server/sandboxes/release-notes/index.ts
interface SandboxPayload {
  notes?: string
}

export default async function releaseNotes(payload: SandboxPayload = {}) {
  return { summary: payload.notes?.split("\n")[0] ?? "" }
}

The folder supplies the Definition name, and the adjacent manifest owns portable lifecycle metadata:

{
  "private": true,
  "type": "module",
  "vitehub": {
    "sandbox": {
      "timeout": 30000
    }
  }
}

ViteHub calls the default function with (payload, context) and infers the runSandbox() payload and result types from it. Nested Blob and Uint8Array values cross the Box boundary through binary sidecars rather than application JSON; Node.js Buffer values retain their Buffer type. Existing non-function default exports remain supported; their optional exported SandboxPayload type is the payload fallback. The entrypoint needs no @vite-hub/sandbox runtime dependency.

ViteHub uses the manifest's packageManager, then a lockfile at that package root, then npm. A matching pnpm-workspace.yaml selects pnpm, moves preparation to the pnpm workspace root, and carries the transitive workspace:* dependency closure into the Box while the entrypoint still runs from its package directory.

Package entrypoints are ESM projects. Keep "type": "module", use explicit relative ESM imports for local .ts and .mts source, and depend on packages that expose runtime-ready JavaScript. ViteHub compiles the reachable local TypeScript graph without bundling package dependencies or moving relative assets. It rejects CommonJS/CTS, package import aliases and self-references for local source, imports that escape the selected package, and workspace dependencies that expose TypeScript runtime entries.

Use <path>.sandbox.ts with defineSandbox() for free-form Definitions outside server/sandboxes.

import { runSandbox } from "@vite-hub/sandbox"

const [error, result] = await runSandbox("release-notes", { notes: "ship it" })
if (error) throw error

Resolve a runner when orchestration needs to inspect the provider boundary before execution:

import { resolveSandboxRunner } from "@vite-hub/sandbox"

const runner = await resolveSandboxRunner("release-notes")
console.log(runner.executionAuthority)

The runner exposes the selected Box provider's complete ExecutionAuthority descriptor. A Sandbox Definition name and its structural command arguments choose work to run; they do not limit what that process can read, reach, inherit, or spawn.

Add hubSandbox() to Vite for discovery, typed registry generation, package preparation plans, and host output. Provider images and full Dockerfile overrides belong to the selected Box adapter or host configuration; Sandbox Definitions stay portable.