{"id":13434410,"url":"https://github.com/e2b-dev/e2b-cookbook","last_synced_at":"2025-05-14T22:08:18.765Z","repository":{"id":197450807,"uuid":"697252953","full_name":"e2b-dev/e2b-cookbook","owner":"e2b-dev","description":"Examples of using E2B","archived":false,"fork":false,"pushed_at":"2025-05-13T09:33:24.000Z","size":146541,"stargazers_count":954,"open_issues_count":7,"forks_count":169,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-13T10:29:01.176Z","etag":null,"topics":["agent","ai","ai-agents","code-interpreter","cookbook","devtools","e2b","example","gpt","gpt4","guides","javascript","llm","openai","python","python3","sdk","tutorial","typescript"],"latest_commit_sha":null,"homepage":"https://e2b.dev/docs","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e2b-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-27T11:02:43.000Z","updated_at":"2025-05-13T10:25:48.000Z","dependencies_parsed_at":"2024-05-01T12:35:52.016Z","dependency_job_id":"d767ad78-d57e-4018-adb2-95c306223c03","html_url":"https://github.com/e2b-dev/e2b-cookbook","commit_stats":{"total_commits":405,"total_committers":14,"mean_commits":"28.928571428571427","dds":0.6518518518518519,"last_synced_commit":"fe4ec46b917a234d16f75b4ea47813ef6a7c1829"},"previous_names":["e2b-dev/e2b-cookbook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fe2b-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fe2b-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fe2b-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fe2b-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e2b-dev","download_url":"https://codeload.github.com/e2b-dev/e2b-cookbook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235700,"owners_count":22036964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","ai-agents","code-interpreter","cookbook","devtools","e2b","example","gpt","gpt4","guides","javascript","llm","openai","python","python3","sdk","tutorial","typescript"],"created_at":"2024-07-31T02:01:55.879Z","updated_at":"2025-05-14T22:08:13.746Z","avatar_url":"https://github.com/e2b-dev.png","language":"TypeScript","readme":"![E2B Cookbook Preview Light](/readme-assets/cookbook-light.png#gh-light-mode-only)\n![E2B Cookbook Preview Dark](/readme-assets/cookbook-dark.png#gh-dark-mode-only)\n\n# ✴️ E2B Cookbook\n\nExample code and guides for building with [E2B SDK](https://github.com/e2b-dev/e2b).\n\nRead more about E2B on the [E2B website](https://e2b.dev) and the official [E2B documentation](https://e2b.dev/docs).\n\n## Examples\n\n**Hello World guide**\n\n- [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/hello-world-js)\n- [Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/hello-world-python)\n\n**Open-source apps**\n\n- [E2B AI Analyst](https://github.com/e2b-dev/ai-analyst) - analyze your data \u0026 create interactive charts\n- [E2B Fragments](https://github.com/e2b-dev/fragments) - prompt different LLMS to generate apps with UI\n- [E2B Surf](https://github.com/e2b-dev/surf) - computer use AI agent powered by OpenAI\n\n**LLM providers**\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eProvider\u003c/th\u003e\n      \u003cth\u003eModel(s)\u003c/th\u003e\n      \u003cth\u003eExample\u003c/th\u003e\n      \u003cth\u003ePython\u003c/th\u003e\n      \u003cth\u003eTypeScript\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd rowspan=\"3\"\u003eOpenAI\u003c/td\u003e\n      \u003ctd\u003eo1, o3-mini\u003c/td\u003e\n      \u003ctd\u003eData analysis and visualization of a CSV\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/openai-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/openai-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eGPT-4o\u003c/td\u003e\n      \u003ctd\u003eCode interpreter and reasoning on image data\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/gpt-4o-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/gpt-4o-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eo1, o3-mini, GPT-4\u003c/td\u003e\n      \u003ctd\u003eCode interpreter for ML on dataset\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/o1-and-gpt-4-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/o1-and-gpt-4-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eAnthropic\u003c/td\u003e\n      \u003ctd\u003eClaude 3 Opus\u003c/td\u003e\n      \u003ctd\u003eCode interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/claude-code-interpreter-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/claude-code-interpreter-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eMistral\u003c/td\u003e\n      \u003ctd\u003eCodestral\u003c/td\u003e\n      \u003ctd\u003eCode interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/codestral-code-interpreter-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/codestral-code-interpreter-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eGroq\u003c/td\u003e\n      \u003ctd\u003eLlama 3\u003c/td\u003e\n      \u003ctd\u003eCode interpreter via function calling\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/blob/main/examples/groq-code-interpreter-python/llama_3_code_interpreter.ipynb\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/blob/main/examples/groq-code-interpreter-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd rowspan=\"2\"\u003eFireworks AI\u003c/td\u003e\n      \u003ctd\u003eQwen2.5-Coder-32B-Instruct\u003c/td\u003e\n      \u003ctd\u003eCode interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/blob/main/examples/fireworks-code-interpreter-python/qwen_code_interpreter.ipynb\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eLlama 3.1 405B, 70B, 8B\u003c/td\u003e\n      \u003ctd\u003eCode interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/blob/fireworks/examples/fireworks-code-interpreter-python/llama_3.1_code_interpreter.ipynb\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eTogether AI\u003c/td\u003e\n      \u003ctd\u003eLlama 3.1, Qwen 2, Code Llama, DeepSeek Coder\u003c/td\u003e\n      \u003ctd\u003eCode interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/together-ai-code-interpreter-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/together-ai-code-interpreter-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eWatsonX AI\u003c/td\u003e\n      \u003ctd\u003eIBM Graphite, Llama, Mistral\u003c/td\u003e\n      \u003ctd\u003eCode interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/watsonx-ai-code-interpreter-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/watsonx-ai-code-interpreter-js\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n**AI frameworks integrations**\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eFramework\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n      \u003cth\u003ePython\u003c/th\u003e\n      \u003cth\u003eTypeScript\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e🦜⛓️ LangChain\u003c/td\u003e\n      \u003ctd\u003eLangChain with Code Interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/langchain-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e🦜🕸️ LangGraph\u003c/td\u003e\n      \u003ctd\u003eLangGraph with code interpreter\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/langgraph-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eAutogen\u003c/td\u003e\n      \u003ctd\u003eAutogen with secure sandboxed for code interpreting\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/autogen-python\"\u003ePython\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003e▲ Vercel AI SDK\u003c/td\u003e\n      \u003ctd\u003eNext.js + AI SDK + Code Interpreter\u003c/td\u003e\n      \u003ctd\u003e-\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/nextjs-code-interpreter\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003eAgentKit\u003c/td\u003e\n      \u003ctd\u003eAgentKit Coding Agent\u003c/td\u003e\n      \u003ctd\u003e-\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/agentkit-coding-agent\"\u003eTypeScript\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n**Example use cases**\n\n- Upload dataset and analyze it with Llama 3 - [Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/upload-dataset-code-interpreter)\n- Scrape Airbnb and analyze data with Claude 3 Opus and Firecrawl - [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/firecrawl-scrape-and-analyze-airbnb-data)\n- Visualize website topics with Claude 3.5 Sonnet and Firecrawl - [Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/claude-visualize-website-topics)\n- Next.js app with LLM + Code Interpreter and streaming - [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/nextjs-code-interpreter)\n- How to run a Docker container in E2B - [Python/TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/docker-in-e2b)\n- How to run Playwright in E2B - [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/playwright-in-e2b)\n\n","funding_links":[],"categories":["Check out E2B - Code Interpreting for AI apps","Others","TypeScript","Tutorials","HarmonyOS"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe2b-dev%2Fe2b-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe2b-dev%2Fe2b-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe2b-dev%2Fe2b-cookbook/lists"}