Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cloudflare avatar

Examples

  • 19 installs
  • 1.1k repo stars
  • Updated August 4, 2026
  • cloudflare/sandbox-sdk

examples documents running and adding Cloudflare Sandbox SDK sample apps.

About

The examples skill documents the examples/ directory as end-to-end sample apps and integration smoke tests. Run npm run dev inside an example to start wrangler dev with slow first Docker build, using npm run docker:rebuild from repo root after SDK or container changes. Catalog lists minimal, authentication, claude-code, code-interpreter, codex, collaborative-terminal, openai-agents, opencode, time-machine, typescript-validator, vite-sandbox, websocket-tunnel, and alpine demos. EXPOSE in Dockerfiles documents ports but does not gate access on Cloudflare containers. New examples copy minimal/, update wrangler bindings, add README H1 for scanner, verify clean checkout dev, and link new capabilities in packages/sandbox/README.md. examples/ apps exercise SDK end to end via wrangler dev. docker:rebuild required after container or SDK changes. EXPOSE documents ports without gating access. Table catalogs minimal through alpine sample apps. New example checklist from minimal template copy.

  • examples/ apps exercise SDK end to end via wrangler dev.
  • docker:rebuild required after container or SDK changes.
  • EXPOSE documents ports without gating access.
  • Table catalogs minimal through alpine sample apps.
  • New example checklist from minimal template copy.

Examples by the numbers

  • 19 all-time installs (skills.sh)
  • Ranked #818 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

examples capabilities & compatibility

Capabilities
running an example steps · available examples table · adding a new example checklist
Works with
cloudflare · docker
Use cases
testing · debugging
From the docs

What examples says it does

npm run dev
SKILL.md
npx skills add https://github.com/cloudflare/sandbox-sdk --skill examples

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs19
repo stars1.1k
Last updatedAugust 4, 2026
Repositorycloudflare/sandbox-sdk

How do I run a Sandbox SDK example locally?

Work in Cloudflare Sandbox SDK examples with wrangler dev, Docker rebuild, and EXPOSE conventions.

Who is it for?

SDK contributors validating features via sample apps.

Skip if: Skip for npm publish-only tasks without local dev.

When should I use this skill?

User runs, adds, or debugs examples/ sample projects.

What you get

Working wrangler dev session for chosen example app.

Files

SKILL.mdMarkdownGitHub ↗

Examples

The examples/ directory contains working sample apps that exercise the SDK end-to-end. They double as integration smoke tests and as reference material for users.

Running an Example

From inside an example directory (e.g. examples/minimal/):

npm run dev    # Start wrangler dev (builds Docker on first run)

The first run builds the container image, so it's slow. Subsequent runs reuse the image unless the SDK or Dockerfile changes. If you've changed the container runtime or SDK, run npm run docker:rebuild from the repo root before npm run dev.

Available Examples

ExampleDemonstrates
minimalSmallest possible Sandbox SDK setup
authenticationAuth-protected sandbox access
claude-codeRunning Claude Code inside a sandbox
code-interpreterCodeInterpreter API + Workers AI
codex / codex-app-serverOpenAI Codex integration patterns
collaborative-terminalMulti-user terminal sharing
openai-agentsOpenAI Agents SDK + Sandbox
opencodeOpenCode integration
time-machineSnapshot/restore patterns
typescript-validatorRunning tsc against user code
vite-sandboxVite dev server proxied through preview URLs
websocket-tunnelWebSocket transport / port exposure
alpineAlpine-based container variant

EXPOSE Directives

The Cloudflare containers primitive does not require EXPOSE directives — all ports are accessible in both local dev and production without them.

Including EXPOSE is still recommended in example Dockerfiles because it documents which ports the app uses (standard Docker convention). Don't add it expecting it to gate access; add it as documentation.

Adding a New Example

1. Copy examples/minimal/ as a starting point. 2. Update package.json name and any wrangler config (wrangler.jsonc) — class names, DO bindings, container image tag. 3. Add a README.md with an # H1 title (the README scanner uses it) and a short description of what the example demonstrates. 4. Make sure the example builds and npm run dev works from a clean checkout. 5. If the example demonstrates a new SDK capability, link to it from packages/sandbox/README.md.

Local Development Tips

  • Examples link to @cloudflare/sandbox via the workspace, so SDK changes are picked up after a build (npm run build from repo root).
  • Container changes require npm run docker:rebuild to take effect.
  • If you hit stale-image issues, delete the container image (docker images | grep sandbox) and re-run npm run dev.

Related skills

FAQ

What does examples do?

examples documents running and adding Cloudflare Sandbox SDK sample apps.

When should I use examples?

User runs, adds, or debugs examples/ sample projects.

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.