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

n8n-nodes-e2b

v0.1.1

Published

n8n community node for E2B Code Interpreter - Run code in cloud sandboxes

Readme

n8n-nodes-e2b

Unofficial n8n community node for E2B Code Interpreter. Run Python and JavaScript code in secure cloud sandboxes directly from your n8n workflows.

This node wraps the @e2b/code-interpreter SDK and exposes sandbox lifecycle operations as individual n8n actions, allowing you to freely compose them within your workflows.

Installation

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Click Install a community node
  4. Enter n8n-nodes-e2b
  5. Click Install

Prerequisites

You need an E2B API key. Sign up at e2b.dev and get your API key from the dashboard.

Credential Setup

  1. In n8n, go to Credentials > Add Credential
  2. Search for E2B API
  3. Enter your API key
  4. Click Save

Operations

The node provides a single Sandbox resource with 7 operations:

Create Sandbox

Create a new sandbox and return its ID for subsequent operations.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Template | string | (empty) | Custom sandbox template ID | | Timeout (Seconds) | number | 300 | Auto-kill timeout (max 86400; requires Pro plan for >3600) | | Environment Variables | key-value | (empty) | Environment variables passed to the sandbox |

Output:

{ "sandboxId": "sandbox-xxxx" }

Execute Code

Execute Python or JavaScript code inside a sandbox.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Sandbox ID | string | (required) | Target sandbox ID | | Code | string | (required) | Code to execute (multiline) | | Language | options | python | python or javascript |

Output:

{
  "sandboxId": "sandbox-xxxx",
  "stdout": "...",
  "stderr": "...",
  "results": [],
  "error": ""
}
  • results contains structured data from code execution (charts, images, etc.)
  • error contains the error message if execution failed

Run Command

Run a shell command inside a sandbox.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Sandbox ID | string | (required) | Target sandbox ID | | Command | string | (required) | Shell command to run | | Working Directory | string | / | Working directory for the command |

Output:

{
  "sandboxId": "sandbox-xxxx",
  "stdout": "...",
  "stderr": "...",
  "exitCode": 0
}

Upload File

Upload a file to a sandbox. Supports both text content and binary data from previous n8n nodes.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Sandbox ID | string | (required) | Target sandbox ID | | Remote Path | string | (required) | Destination path inside the sandbox | | Content | string | (empty) | File content as text (ignored when binary input is used) | | Binary Property | string | data | Name of the input binary property. Binary data takes priority over Content. |

Output:

{
  "sandboxId": "sandbox-xxxx",
  "remotePath": "/home/user/data.csv",
  "success": true
}

Download File

Download a file from a sandbox as text or binary data.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Sandbox ID | string | (required) | Target sandbox ID | | Remote Path | string | (required) | File path inside the sandbox | | Binary Output | boolean | false | Output as n8n binary data instead of text |

Output (text):

{
  "sandboxId": "sandbox-xxxx",
  "remotePath": "/home/user/result.txt",
  "content": "..."
}

Output (binary): Returns n8n binary data that can be used by downstream nodes (e.g., Write Binary File).

List Files

List files and directories in a sandbox.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Sandbox ID | string | (required) | Target sandbox ID | | Path | string | / | Directory path to list |

Output:

{
  "sandboxId": "sandbox-xxxx",
  "path": "/home/user",
  "files": [
    { "name": "data.csv", "type": "file" },
    { "name": "output", "type": "dir" }
  ]
}

Kill Sandbox

Terminate a sandbox and release its resources.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Sandbox ID | string | (required) | Target sandbox ID |

Output:

{
  "sandboxId": "sandbox-xxxx",
  "killed": true
}

Workflow Examples

Simple Code Execution

Create Sandbox -> Execute Code -> Kill Sandbox

Data Analysis Pipeline

Create Sandbox -> Upload File -> Execute Code -> Execute Code -> Download File -> Kill Sandbox

Environment Setup + Multiple Tasks

Create Sandbox -> Run Command (pip install) -> Execute Code -> Execute Code -> List Files -> Download File -> Kill Sandbox

Compatibility

  • n8n version: 1.0+
  • Node.js version: 18+

Resources

License

MIT