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

@computesdk/render

v1.0.6

Published

Render sandbox adapter for ComputeSDK. Stream commands, transfer files, and manage snapshots.

Readme

@computesdk/render

Render provider for ComputeSDK - Render Sandboxes (public beta): isolated Linux environments with native command streaming, file transfer and snapshots.

Installation & Setup

npm install @computesdk/render

Create an API key on your Account Settings page in the Render Dashboard, and copy your workspace ID (tea-...) from your workspace's Settings page. Then add both to a .env file:

RENDER_API_KEY=your_render_api_key
RENDER_WORKSPACE_ID=tea-xxxxxxxxxxxxxxxxxxxx

Usage

import { compute } from 'computesdk';
import { render } from '@computesdk/render';

compute.setConfig({
  provider: render({
    apiKey: process.env.RENDER_API_KEY,
    workspaceId: process.env.RENDER_WORKSPACE_ID,
  }),
});

const sandbox = await compute.instances.create();

const result = await sandbox.runCommand('echo "Hello from Render!"');
console.log(result.stdout);

await sandbox.destroy();

Or call the provider factory directly:

import { render } from '@computesdk/render';

const sdk = render({});

const sandbox = await sdk.sandbox.create({ plan: '2c-4g', timeout: 30 * 60 * 1000 });

// Output streams in as the command runs
await sandbox.runCommand('for i in 1 2 3; do echo $i; sleep 1; done', {
  onStdout: (chunk) => process.stdout.write(chunk),
});

await sandbox.filesystem.writeFile('/tmp/hello.sh', 'echo $((6 * 7))');
console.log((await sandbox.runCommand('sh /tmp/hello.sh')).stdout); // "42\n"

// Runtime snapshot: filesystem plus memory. Restore it into a new sandbox.
const snapshot = await sdk.snapshot.create(sandbox.sandboxId, { name: 'checkpoint' });
const copy = await sdk.sandbox.create({ snapshotId: snapshot.id });

await copy.destroy();
await sandbox.destroy();

Configuration

interface RenderConfig {
  /** Render API key - if not provided, will use RENDER_API_KEY env var */
  apiKey?: string;
  /** Workspace ID (`tea-...`) - if not provided, will use RENDER_WORKSPACE_ID env var */
  workspaceId?: string;
  /** Sandbox group for new sandboxes and snapshot lookups - defaults to the workspace's default group */
  sandboxGroupId?: string;
  /** Default compute plan, e.g. `2c-4g` - defaults to Render's `1c-2g` */
  plan?: string;
}

Create Options

| Option | Maps to | Notes | |---|---|---| | timeout (ms) | timeoutSeconds | Maximum runtime. Rounded up to whole seconds and clamped to Render's 60 s - 30 day range. | | plan | plan | 1c-2g (default), 2c-4g, 4c-8g or 8c-16g. | | envs | env | Environment variables for the sandbox. | | name | name | Sandbox name. | | image / templateId | image | Custom image reference. Ignored when snapshotId is set. | | snapshotId | snapshotId | Restore a snapshot into the new sandbox. | | sandboxGroupId | sandboxGroupId | Overrides the config value. | | idleTimeoutSeconds | idleTimeoutSeconds | Idle seconds before Render suspends the sandbox. | | networkPolicy | networkPolicy | Passed through to Render. |

Features

  • Command execution with live stdout/stderr streaming, cwd, env, timeout and background commands
  • Filesystem: readFile and writeFile use Render's native upload and download; mkdir, readdir, exists and remove run as shell commands
  • Snapshots: snapshot.create() takes a runtime snapshot (filesystem and memory) of a running sandbox without stopping it; snapshot.list() and snapshot.delete() work on the configured sandbox group (or the workspace's default group). Restore with sandbox.create({ snapshotId }).
  • List: sandbox.list() returns active sandboxes in the workspace (or the configured group)

Limitations

  • Render Sandboxes are in public beta, and Render documents a single region (Oregon).
  • getUrl() throws: Render Sandboxes do not provide public URLs during the beta.
  • runCommand's timeout stops the command inside the sandbox with the timeout utility and reports exit code 124.
  • Suspended sandboxes are reported by getInfo() as stopped; Render resumes them automatically on the next command.
  • Sandboxes and snapshots in groups other than the configured one are not listed.

Sandbox providers · Sandbox Router