Skip to main content

sandbox-sdk

Use when implementing isolated code execution with @opencoredev/sandbox-sdk, choosing a provider, or working with sandbox files, commands, processes, ports, and snapshots.

소스 정보

저장소
opencoredev/sandbox-sdk
최근 소스 활동
2026년 9월 15일 21:39
감지된 SKILL.md 언어
영어
스타
77
포크
6

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
sandbox-sdk
description
Use when implementing isolated code execution with @opencoredev/sandbox-sdk, choosing a provider, or working with sandbox files, commands, processes, ports, and snapshots.
# Sandbox SDK Use one normalized TypeScript interface across Local, E2B, Daytona, Vercel Sandbox, Upstash Box, Ascii Box, Railway Sandboxes, and Tenki. ## Start here 1. Fetch `https://sandbox-sdk.app/llms.txt` to find the current documentation. 2. Read the Quickstart and exactly one provider page. 3. Read a focused API or integration page only when the task needs it. ## Default implementation ```ts import { createSandbox } from "@opencoredev/sandbox-sdk"; import { local } from "@opencoredev/sandbox-sdk/local"; await using sandbox = await createSandbox({ provider: local() }); const result = await sandbox.run("node --version"); console.log(result.stdout); ``` ## Rules - Prefer `await using sandbox = await createSandbox(...)` so the sandbox stops automatically when its scope exits. - Use `withSandbox()` when callback-style lifecycle management is required or uncompiled JavaScript runs on Node.js 22. - Use Local when no hosted runtime is required. Select a cloud provider from the compatibility table when persistence, previews, native Linux, GPUs, or provider-specific features matter. - Use `sandbox.files`, `sandbox.run`, `sandbox.processes`, `sandbox.ports`, and `sandbox.snapshots` before native SDK methods. - Check `sandbox.capabilities` or use `requireCapability()` before optional operations. - Access provider-specific APIs through the typed `sandbox.raw` escape hatch. - Put `sandbox.stop()` in `finally` only when the sandbox must outlive an `await using` scope. - Treat preview URLs, environment variables, credentials, and untrusted commands as security boundaries owned by the application. - Do not assume optional behavior is portable. Verify it in `https://sandbox-sdk.app/docs/reference/compatibility`. ## Focused Markdown Fetch one page with: `https://sandbox-sdk.app/llms.mdx/docs/{path}/content.md` Use `https://sandbox-sdk.app/llms-full.txt` only when the task genuinely needs the entire documentation set.
GitHub에서 보기