Fragments by E2B
Fragments is an open-source Next.js template designed for building AI-driven applications. It allows secure code execution and UI streaming, similar to Anthropic's Claude Artifacts or Vercel's v0.
Key features:
- Based on Next.js 14 (App Router, Server Actions), shadcn/ui, TailwindCSS, and Vercel AI SDK.
- Secure code execution using the E2B SDK.
- UI streaming for real-time updates.
- Ability to install and use npm and pip packages.
- Supports multiple stacks like Python interpreter, Next.js, Vue.js, Streamlit, and Gradio.
- Compatible with various LLM providers including OpenAI, Anthropic, Google AI, Mistral, Groq, Fireworks, Together AI, and Ollama.
Use cases:
- Building AI-powered coding environments.
- Creating applications that require secure code execution.
- Developing streaming user interfaces for AI interactions.