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

@leitwerk-dev/dev-sandbox

v0.2.1

Published

`@leitwerk-dev/dev-sandbox` runs the application with an explicit `SandboxCompositionFactory`. It imports no extensions. The factory receives paths, scripted/real mode, UI/backend origins, and the selected model profile. It supplies the catalog, process c

Readme

Development sandbox harness

@leitwerk-dev/dev-sandbox runs the application with an explicit SandboxCompositionFactory. It imports no extensions. The factory receives paths, scripted/real mode, UI/backend origins, and the selected model profile. It supplies the catalog, process configuration, named launch configurations, scripted Pi factory, initialization, controls, polling and cleanup. Adapters own their storage and scenario counters. Use StubToolCallScriptResolver, StubPiTreeHandleFactory({ recordSessionTrace: true }), and ordinary callbacks.

withSandboxLaunchers installs normal UI launchers on an SDK-defined process. Use it only in a development composition; SDK definition identity and turn semantics are retained. The harness admits control-page launches through /api/launchers/.../launch-runs with the caller's idempotency key. An optional prepareLaunch callback may prepare adapter input; it must reconcile its own durable writes. Startup delays belong to scenario registrations. Controls may emit local events and invoke /__local/poll; they must not assign process lifecycle state.

sandboxConfig(input) builds isolated defaults for launchers and tests. createSandboxApp(config, input, factory) returns the application context, polling, and an idempotent stop() that closes workers, the application and the composition. Register a composition-owned page at /__local. /__local/state contains scenario descriptions, processes and configured URLs alongside composition-owned state. Controls accept only same-origin browser requests. Listeners use 127.0.0.1.

The /launcher export provides launchSandbox({ publicRoot, workspaceRoot, compositionEntry }). It requires the public source checkout and its installed development dependencies. The composition entry exports its factory as default. This release does not provide installed-package sandbox startup. The CLI invokes the public development supervisor, including configuration reloads and custom backend/preflight entries. /preflight validates with disposable application, workspace, Pi and adapter storage; it never starts background services.

Storage lives at <workspace>/.leitwerk/sandbox/{scripted,real}. /storage exports the confined reset operation. It verifies supervisor identity, retains storage on shutdown failure, rejects symlinked storage, and keeps the sibling model.json. The launcher passes an allowlisted environment: isolated home/configuration, local Git identity and file-only Git transport. Ambient provider, Pi, SSH and Node overrides are excluded. This is a development environment, not a security boundary for hostile compositions or repository code.

Scripted mode substitutes Pi and bypasses only Docker preflight. Real mode uses the ordinary Pi SDK and preserves process runtime requirements. Supply dedicated model.json credentials with mode 0600, containing model_profiles and providers (the models extension configuration). Production credentials are never read. Ports default to UI 5173 and backend 18082; use --ui-port and --backend-port to choose strict alternative ports.