fragments

Open-source Next.js template for building apps that are fully generated by AI. By E2B.

What is fragments?

Open-source Next.js template for building apps that are fully generated by AI. By E2B.

Overview of fragments

What it is

Fragments is an open-source Next.js template for building applications that are fully generated by AI. It is created by E2B and is inspired by tools like Anthropic's Claude Artifacts, Vercel v0, or GPT Engineer. The template is powered by the E2B SDK.

Key features

  • Based on Next.js 14 (App Router, Server Actions), shadcn/ui, TailwindCSS, and the Vercel AI SDK.
  • Uses the E2B SDK to securely execute code generated by AI.
  • Supports streaming in the UI.
  • Can install and use any package from npm or pip.
  • Supported stacks include Python interpreter, Next.js, Vue.js, Streamlit, and Gradio (users can add their own).
  • Supports multiple LLM providers: OpenAI, Anthropic, Google AI, Mistral, Groq, Fireworks, Together AI, and Ollama (users can add their own).
  • Integrates with the Morph Apply model for token-efficient, accurate, and faster code editing.

Use cases

Fragments can be used to create AI-powered applications that generate and run code interactively. It is suitable for building coding assistants, prototyping tools, educational platforms, and any app that requires AI to produce and execute code in a sandboxed environment.

Getting started

git clone https://github.com/e2b-dev/fragments.gitcd fragmentsnpm iSet up environment variables in a .env.local file (E2B API key and at least one LLM provider API key are required). Then start the development server:npm run devFor full details, see the repository README.

License and pricing

Licensed under Apache-2.0. The project is open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/e2b-devfragments.svg)](https://yunodb.com/tools/e2b-devfragments?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/e2b-devfragments?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/e2b-devfragments.svg" alt="Featured on YunoDB" height="20"></a>