Skip to content

Commit d2b4099

Browse files
committed
Refine home page: simplify hero snippet and reorder sections
Use base e2b SDK instead of code-interpreter, simplify to create + run command, add API key comment, move "What is E2B?" to top, and add description to Computer Use example card.
1 parent 2c52235 commit d2b4099

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

docs.mdx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@ icon: house
66

77
import { Quickstart } from '/snippets/Quickstart.jsx';
88

9+
## What is E2B?
10+
11+
E2B provides isolated sandboxes that let agents safely execute code, process data, and run tools. Our SDKs make it easy to start and manage these environments.
12+
913
Spin up a sandbox and run code in a few lines:
1014

1115
<CodeGroup>
1216
```javascript JavaScript & TypeScript
13-
import { Sandbox } from '@e2b/code-interpreter'
17+
import { Sandbox } from 'e2b'
1418

15-
const sandbox = await Sandbox.create()
16-
const execution = await sandbox.runCode('print("Hello, World!")')
17-
console.log(execution.logs)
19+
const sandbox = await Sandbox.create() // Needs E2B_API_KEY environment variable
20+
const result = await sandbox.commands.run('echo "Hello from E2B Sandbox!"')
21+
console.log(result.stdout)
1822
```
1923
```python Python
20-
from e2b_code_interpreter import Sandbox
24+
from e2b import Sandbox
2125

22-
sandbox = Sandbox.create()
23-
execution = sandbox.run_code('print("Hello, World!")')
24-
print(execution.logs)
26+
sandbox = Sandbox.create() # Needs E2B_API_KEY environment variable
27+
result = sandbox.commands.run('echo "Hello from E2B Sandbox!"')
28+
print(result.stdout)
2529
```
2630
</CodeGroup>
2731

28-
## What is E2B?
29-
30-
E2B provides isolated sandboxes that let agents safely execute code, process data, and run tools. Our SDKs make it easy to start and manage these environments.
31-
3232
## E2B Building Blocks
3333

3434
A quick overview of the core building blocks you'll interact with when using E2B.
@@ -54,5 +54,7 @@ The documentation is split into three main sections:
5454
## Examples
5555

5656
<CardGroup cols={2}>
57-
<Card title="Computer Use" icon="desktop" href="/docs/use-cases/computer-use" />
57+
<Card title="Computer Use" icon="desktop" href="/docs/use-cases/computer-use">
58+
Build AI agents that see, understand, and control virtual Linux desktops using E2B Desktop sandboxes.
59+
</Card>
5860
</CardGroup>

0 commit comments

Comments
 (0)