Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

e2b

Package Overview
Dependencies
Maintainers
3
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e2b - npm Package Compare versions

Comparing version 0.16.2 to 1.0.0

dist/index.d.mts

56

package.json
{
"name": "e2b",
"version": "0.16.2",
"version": "1.0.0",
"description": "E2B SDK that give agents cloud environments",

@@ -26,16 +26,22 @@ "homepage": "https://e2b.dev",

"devDependencies": {
"@testing-library/react": "^16.0.1",
"@types/node": "^18.18.6",
"@types/normalize-path": "^3.0.0",
"@types/path-browserify": "^1.0.1",
"@types/platform": "^1.3.4",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@types/platform": "^1.3.6",
"@types/react": "^18.3.11",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vitejs/plugin-react": "^4.3.2",
"@vitest/browser": "^2.1.2",
"dotenv": "^16.4.5",
"knip": "^2.34.0",
"npm-check-updates": "^16.14.6",
"openapi-typescript": "^5.4.1",
"tsup": "^6.7.0",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
"knip": "^5.17.3",
"npm-check-updates": "^16.14.20",
"openapi-typescript": "^6.7.6",
"playwright": "^1.48.0",
"react": "^18.3.1",
"tsup": "^8.0.2",
"typedoc": "^0.26.8",
"typedoc-plugin-markdown": "^4.2.7",
"typescript": "^5.4.5",
"vitest": "^2.1.2",
"vitest-browser-react": "^0.0.1"
},

@@ -62,8 +68,8 @@ "files": [

"dependencies": {
"isomorphic-ws": "^5.0.0",
"normalize-path": "^3.0.0",
"openapi-typescript-fetch": "^1.1.3",
"path-browserify": "^1.0.1",
"platform": "^1.3.6",
"ws": "^8.15.1"
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"compare-versions": "^6.1.0",
"openapi-fetch": "^0.9.7",
"platform": "^1.3.6"
},

@@ -76,18 +82,16 @@ "engines": {

],
"optionalDependencies": {
"bufferutil": "^4.0.8",
"utf-8-validate": "^6.0.3"
},
"scripts": {
"build": "tsc --noEmit && tsup",
"dev": "tsup --watch",
"measure": "node test/performance.mjs",
"example": "tsx example.mts",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"generate": "openapi-typescript ../../spec/openapi.yml -x api_key --support-array-length --alphabetize --output src/api/schema.gen.ts",
"generate-envd-api": "openapi-typescript ../../spec/envd/envd.yaml -x api_key --support-array-length --alphabetize --output src/envd/schema.gen.ts",
"generate-api-reference": "./scripts/generate_api_ref.sh",
"check-deps": "knip",
"update-deps": "ncu -u && pnpm i",
"postPublish": "./scripts/post-publish.sh || true"
"postPublish": "./scripts/post-publish.sh || true",
"test:bun": "bun test tests/runtimes/bun --env-file=.env",
"test:deno": "deno test tests/runtimes/deno/ --allow-net --allow-read --allow-env --unstable-sloppy-imports --trace-leaks"
}
}
<p align="center">
<img width="100" src="https://raw.githubusercontent.com/e2b-dev/E2B/main/readme-assets/logo-circle.png" alt="e2b logo">
<img width="100" src="/readme-assets/logo-circle.png" alt="e2b logo">
</p>
<h1 align="center">
Sandbox for AI Apps & Agents
</h1>
<h3 align="center">
Secure sandboxed cloud environments made for AI agents and AI apps
</h3>
<h4 align="center">
<a href="https://e2b.dev/docs">Docs</a> |
<a href="https://e2b.dev">Website</a> |
<a href="https://discord.gg/U7KEcGErtQ">Discord</a> |
<a href="https://twitter.com/e2b_dev">Twitter</a>
</h4>
<h4 align="center">
<a href="https://pypi.org/project/e2b/">
<img alt="Last 1 month downloads for the Python SDK" loading="lazy" width="200" height="20" decoding="async" data-nimg="1"
style="color:transparent;width:auto;height:100%" src="https://img.shields.io/pypi/dm/e2b?label=PyPI%20Downloads">
</a>
<h4 align="center">
<a href="https://www.npmjs.com/package/e2b">
<img alt="Last 1 month downloads for the Python SDK" loading="lazy" width="200" height="20" decoding="async" data-nimg="1"
<img alt="Last 1 month downloads for the JavaScript SDK" loading="lazy" width="200" height="20" decoding="async" data-nimg="1"
style="color:transparent;width:auto;height:100%" src="https://img.shields.io/npm/dm/e2b?label=NPM%20Downloads">

@@ -31,44 +12,40 @@ </a>

<img width="100%" src="https://raw.githubusercontent.com/e2b-dev/E2B/main/readme-assets/preview.png" alt="Cover image">
<!---
<img width="100%" src="/readme-assets/preview.png" alt="Cover image">
--->
## What is E2B?
[E2B](https://www.e2b.dev/) is an open-source infrastructure that allows you run to AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our [JavaScript SDK](https://www.npmjs.com/package/@e2b/code-interpreter) or [Python SDK](https://pypi.org/project/e2b_code_interpreter).
E2B Sandbox is a secure sandboxed cloud environment made for AI agents and AI
apps. Sandboxes allow AI agents and apps to have long running cloud secure
environments. In these environments, large language models can use the same
tools as humans do. For example:
## Run your first Sandbox
- Cloud browsers
- GitHub repositories and CLIs
- Coding tools like linters, autocomplete, "go-to defintion"
- Running LLM generated code
- Audio & video editing
### 1. Install SDK
**The E2B sandbox can be connected to any LLM and any AI agent or app.**
```bash
npm i @e2b/code-interpreter
```
## Getting Started & Documentation
### 2. Get your E2B API key
1. Sign up to E2B [here](https://e2b.dev).
2. Get your API key [here](https://e2b.dev/dashboard?tab=keys).
3. Set environment variable with your API key
```
E2B_API_KEY=e2b_***
```
> Please visit [documentation](https://e2b.dev/docs) to get started.
### 3. Execute code with code interpreter inside Sandbox
To create and control a sandbox, you use our SDK:
```ts
import { Sandbox } from '@e2b/code-interpreter'
### Install SDK
const sandbox = await Sandbox.create()
await sbx.runCode()('x = 1')
```bash
npm install e2b
const execution = await sbx.runCode()('x+=1; x')
console.log(execution.text) // outputs 2
```
### Start sandbox
### 4. Check docs
Visit [E2B documentation](https://e2b.dev/docs).
```js
import { Sandbox } from "e2b";
// Create sandbox
const sandbox = await Sandbox.create();
// Let an LLM use the sandbox here
// Visit https://e2b.dev/docs/sandbox/overview to learn more about sandboxes.
// Close sandbox once done
await sandbox.close();
```
### 5. E2B cookbook
Visit our [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) to get inspired by examples with different LLMs and AI frameworks.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc