e2b-dev/fragments
Open-source Next.js template for building apps that are fully generated by AI. By E2B.
What it solves
Fragments is an open-source alternative to AI-powered code generation and preview tools like Claude Artifacts, v0, and GPT Engineer. It allows users to generate code via an LLM and immediately execute and preview it in a secure, isolated environment.
How it works
The project uses the E2B SDK to create secure sandboxes for executing AI-generated code. It integrates with various LLM providers (such as OpenAI, Anthropic, and Google AI) and the Vercel AI SDK for streaming UI updates. Users can choose from several supported stacks, including Python, Next.js, Vue.js, Streamlit, and Gradio, and can install any npm or pip package within the sandbox.
Who it’s for
Developers who want to self-host a code-generation-and-preview platform or build their own AI-driven application development environment.
Highlights
- Secure Execution: Uses E2B SDK for isolated code execution.
- Multi-Stack Support: Supports Python, Next.js, Vue.js, Streamlit, and Gradio.
- Broad LLM Integration: Compatible with a wide range of providers including OpenAI, Anthropic, Google AI, Mistral, Groq, Fireworks, Together AI, and Ollama.
- Extensible: Allows users to add custom personas (sandbox templates) and custom LLM models/providers.
- Real-time Streaming: Features streaming in the UI for a responsive experience.
Related
- Project
- Project
- Project
- Project
- Project