▤TemplateCodingFree
E2B Fragments
Open-source AI-powered app starter built with Next.js and E2B sandboxes — let users generate and run full-stack apps from natural language.
E2B Fragments
E2B Fragments is a production-ready open-source starter that lets users generate and run full-stack web applications from natural language prompts. Built on Next.js, it uses E2B secure cloud sandboxes for safe code execution and streams generated apps in real time — think an open-source v0.dev or Replit Agent you can self-host.
Key features
- AI code generation — Claude, GPT-4o, or Fireworks generate runnable apps from a text prompt
- E2B sandbox execution — generated code runs in isolated cloud containers (no host machine risk)
- Real-time streaming — code and UI appear progressively as the model generates
- Multi-framework support — generates Next.js, Streamlit, Python, and Gradio apps
- Bring your own model — swap in any supported LLM via a single env var
- One-click deploy — ships with a Vercel deploy button and Docker support
Quick start
npx ai-supply add e2b-fragments-ai-app-starter
# Or clone and run directly
git clone https://github.com/e2b-dev/fragments
cd fragments
cp .env.example .env.local
# Set E2B_API_KEY and ANTHROPIC_API_KEY in .env.local
npm install
npm run dev
Open http://localhost:3000 and type a prompt like: "Build a to-do app with local storage".
Curated mirror of the open-source E2B Fragments project (Apache-2.0). Install upstream from the repository.