Skip to content

Commit 180a682

Browse files
committed
Redesign documentation home page
Replace the old home page with a clearer structure: hero code snippet, building blocks overview, docs navigation guide, and examples section.
1 parent 2fba168 commit 180a682

1 file changed

Lines changed: 36 additions & 18 deletions

File tree

docs.mdx

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,55 @@ sidebarTitle: Home
44
icon: house
55
---
66

7-
import { Concepts } from '/snippets/Concepts.jsx';
8-
import { CodeInterpreting } from '/snippets/CodeInterpreting.jsx';
97
import { Quickstart } from '/snippets/Quickstart.jsx';
108

11-
Here you'll find all the guides, concepts, and SDK references for developing with E2B.
9+
Spin up a sandbox and run code in a few lines:
1210

1311
<CodeGroup>
14-
```bash JavaScript & TypeScript
15-
npm i @e2b/code-interpreter
12+
```javascript JavaScript & TypeScript
13+
import { Sandbox } from '@e2b/code-interpreter'
14+
15+
const sandbox = await Sandbox.create()
16+
const execution = await sandbox.runCode('print("Hello, World!")')
17+
console.log(execution.logs)
1618
```
17-
```bash Python
18-
pip install e2b-code-interpreter
19+
```python Python
20+
from e2b_code_interpreter import Sandbox
21+
22+
sandbox = Sandbox.create()
23+
execution = sandbox.run_code('print("Hello, World!")')
24+
print(execution.logs)
1925
```
2026
</CodeGroup>
2127

2228
## What is E2B?
23-
E2B is an [open-source](https://github.com/e2b-dev) infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud.
24-
To start and control sandboxes, use our [Python SDK](https://pypi.org/project/e2b/) or [JavaScript SDK](https://www.npmjs.com/package/e2b).
2529

26-
Some of the typical use cases for E2B are AI data analysis or visualization, running AI-generated code of various languages, playground for coding agents, environment for codegen evals, or running full AI-generated apps like in [Fragments](https://github.com/e2b-dev/fragments).
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+
32+
## E2B Building Blocks
33+
34+
A quick overview of the core building blocks you'll interact with when using E2B.
35+
36+
- [**Sandbox**](/docs/sandbox) — A fast, secure Linux VM created on demand for your agent
37+
38+
- [**Template**](/docs/template/quickstart) — Defines what environment a sandbox starts with
39+
40+
## How to use the docs
41+
42+
The documentation is split into three main sections:
43+
44+
- [**Quickstart**](#quickstart) — Step-by-step tutorials that walk you through spinning up your first E2B sandboxes.
45+
46+
- [**Examples**](#examples) — In-depth tutorials focused on specific use cases. Pick the topics that match what you're building.
2747

28-
### Under the hood
29-
The E2B Sandbox is a small isolated VM the can be started very quickly (~150ms). You can think of it as a small computer for the AI model. You can run many sandboxes at once. Typically, you run separate sandbox for each LLM, user, or AI agent session in your app.
30-
For example, if you were building an AI data analysis chatbot, you would start the sandbox for every user session.
48+
- [**API/SDK Reference**](https://e2b.dev/docs/sdk-reference) — A complete technical reference for every feature, component, and configuration option.
3149

3250
## Quickstart
33-
<Quickstart/>
3451

35-
## Code interpreting with AI
36-
<CodeInterpreting/>
52+
<Quickstart />
3753

38-
## Learn the core concepts
39-
<Concepts/>
54+
## Examples
4055

56+
<CardGroup cols={2}>
57+
<Card title="Computer Use" icon="desktop" href="/docs/use-cases/computer-use" />
58+
</CardGroup>

0 commit comments

Comments
 (0)