Next.js template for AI-generated apps
Top 9.1% on sourcepulse
Fragments is an open-source Next.js template for building AI-powered applications, similar to Claude Artifacts or Vercel v0. It targets developers looking to create interactive AI experiences that can securely execute code generated by large language models. The primary benefit is a robust, customizable framework for integrating AI code execution into web applications.
How It Works
The application leverages the E2B SDK to securely run AI-generated code within sandboxed environments. It supports various programming languages and AI model providers, allowing for flexible integration. The architecture is built on Next.js 14 with App Router and Server Actions, utilizing shadcn/ui and TailwindCSS for the frontend, and the Vercel AI SDK for streaming AI responses.
Quick Start & Requirements
npm i
npm run dev
.env.local
file.Highlighted Details
Maintenance & Community
The project is developed by E2B. Contributions are welcomed via issues and pull requests.
Licensing & Compatibility
The project is open-source, with the specific license not explicitly stated in the README. Compatibility for commercial use or closed-source linking would require license clarification.
Limitations & Caveats
The README does not explicitly state the project's license, which is crucial for determining commercial use and compatibility. Some configuration options, like Vercel/Upstash KV or Supabase, suggest potential dependencies for certain features.
1 week ago
1 week