// the find
e2b-dev/fragments
Open-source Next.js template for building apps that are fully generated by AI. By E2B.
Fragments is a self-hostable Claude Artifacts / v0 clone: paste a prompt, get a runnable app back, executed in an E2B sandbox. It supports multiple LLM providers and output targets (Next.js, Vue, Streamlit, Python interpreter). Aimed at developers who want to build or ship their own AI code-generation product without starting from scratch.
The E2B sandbox integration is the real differentiator — generated code runs in an isolated microVM rather than the browser, so you can actually install packages and run servers, not just toy scripts. Provider abstraction via Vercel AI SDK is clean: swapping in Groq or Ollama is a one-line config change. The sandbox template system (custom Dockerfiles + e2b.toml) lets you add new runtimes without touching the core app. Streaming output and the Morph apply-model integration mean edits are fast and incremental rather than full re-generations.
Hard dependency on E2B for anything beyond demos — the sandbox is not optional, and E2B is a paid external service with its own pricing cliff once you're past the free tier. Auth and persistence are bolted on via optional Supabase env vars, meaning most self-hosters ship with no auth at all by default. The prompt engineering lives in a single lib/prompt.ts with no versioning or eval harness, so changing the system prompt is a gut-feel operation. Rate limiting requires Upstash KV, adding yet another external dependency just to not get hammered.