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

@useatlas/railway-sandbox

v0.0.1

Published

Atlas Railway sandbox plugin

Downloads

89

Readme

@useatlas/railway-sandbox

Ephemeral Railway microVM isolation via the Railway Sandboxes SDK.

⚠ Security caveat — read before adopting. Railway Sandboxes offer only ISOLATED (outbound internet via NAT) and PRIVATE (private network + outbound internet) network modes — neither blocks outbound egress. A compromised or malicious explore command can phone home, which makes this a strictly weaker isolation posture than a deny-all backend (e.g. Vercel Sandbox with networkPolicy: "deny-all"). This plugin always creates sandboxes in ISOLATED mode (never PRIVATE), reports security.networkIsolation: false honestly, and is suitable for single-tenant / self-hosted deployments that accept the trade-off. It is not suitable for multi-tenant SaaS until Railway ships a no-egress mode (#3231).

Install

bun add @useatlas/railway-sandbox railway

Usage

import { defineConfig } from "@atlas/api/lib/config";
import { railwaySandboxPlugin } from "@useatlas/railway-sandbox";

// On Railway, RAILWAY_API_TOKEN / RAILWAY_ENVIRONMENT_ID are picked up
// automatically by the SDK:
export default defineConfig({
  plugins: [railwaySandboxPlugin({})],
});

// Or pass credentials explicitly:
export default defineConfig({
  plugins: [
    railwaySandboxPlugin({
      token: process.env.RAILWAY_API_TOKEN!,
      environmentId: process.env.RAILWAY_ENVIRONMENT_ID!,
    }),
  ],
});

Config

| Field | Type | Default | Description | |-------|------|---------|-------------| | token | string? | RAILWAY_API_TOKEN env | Railway API token | | environmentId | string? | RAILWAY_ENVIRONMENT_ID env | Environment to create sandboxes in | | idleTimeoutMinutes | number | 10 | Idle backstop (1–120). Railway destroys the sandbox after this much idle time even if close() never runs | | timeoutSec | number | 30 | Command timeout in seconds |

Behavior notes

  • Lifecycle. The sandbox is destroyed eagerly when the cached backend is evicted (close()destroy()); idleTimeoutMinutes is the billing backstop for leaked sandboxes. Health checks create + destroy a sandbox with a 1-minute backstop.
  • File upload. The Railway SDK has no bulk file API ("use exec or SSH"), so the semantic tree is uploaded as base64 inside batched exec commands. Symlinks escaping the semantic root are skipped, matching the other sandbox backends.
  • Per-environment sandbox cap. Railway caps sandboxes per environment — 10 (Trial/Free), 50 (Hobby), 100 (Pro/Enterprise); only CREATING/RUNNING count. Atlas caches one explore backend per semantic root (per org), so more concurrently-active orgs than the cap will fail create() — the error message surfaces the cap and the remedy (destroy idle sandboxes, wait for idle timeouts, or upgrade the plan).
  • Beta SDK. Railway Sandboxes are in Priority Boarding; the SDK "may change in breaking ways between releases". Soak in staging before relying on it.

Reference