Skip to content

Files

Latest commit

c80256a · Mar 11, 2025

History

History

basic-javascript

Desktop Sandbox JavaScript Example

This is a basic example of how to use the Desktop Sandbox JavaScript SDK with streaming and moving mouse around inside an Electron app.

How to run

1. Create .env file

cp .env.example .env

2. Set E2B_API_KEY in .env file

Get your API key at e2b.dev/dashboard.

E2B_API_KEY="your_api_key"

3. Install dependencies

npm install

4. Run

npm start