[Feature Request] Replace E2B with local Docker sandbox for self-hosted deployments

オープン
#4,965 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, kubernetes, nodejs, python, typescript

調査の方向性

The issue names no implementation files or tests; begin with the Function block and self-hosting Kubernetes documentation linked in References, then locate the current E2B execution entry point. Done means self-hosted deployments can execute imported JavaScript and Python in a local isolated sandbox without E2B, with the relevant behavior covered by tests.

索引モデルが issue の本文から書いたものです。

説明

feature

Problem

In self-hosted Kubernetes deployments, the Function block shows:

"JavaScript code with import statements requires E2B to be enabled.
Please remove the import statements, or contact your administrator to enable E2B"

E2B is an external third-party cloud service. Self-hosted users should not
be forced to depend on an external paid service for basic code execution.

Feature Request

Add a local sandbox execution option for self-hosted instances — for example:

  • Spin up an isolated Docker/Kubernetes Job to execute the Function block code
  • Use Node.js child_process with --experimental-vm-modules for JS imports
  • Use a restricted Python container for Python execution

This would allow self-hosted users to use JavaScript imports and Python
in Function blocks without needing an E2B account or external dependency.

Why This Matters

  • Self-hosted users want full data privacy — no code leaving the cluster
  • E2B is a paid external service — adds cost and external dependency
  • Simple use cases (import lodash, import axios) don't need a full microVM

Alternatives Considered

  • E2B self-hosting via Terraform — too complex, requires AWS/GCP infra
  • Using fetch() only — limits what Function blocks can do

References

主要言語
TypeScript
スター
29.8k
フォーク
3.9k
平均マージ
1時間 44分
マージ済み PR(30日)
841

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

simstudioai/sim のほかの issue

simstudioai/sim の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。