An open source Claude Artifacts – generate small apps with one prompt. Powered by Llama 3 on Together.ai.
- Llama 3.1 405B from Meta for the LLM
- Together AI for LLM inference
- Sandpack for the code sandbox
- Next.js app router with Tailwind
- Helicone for observability
- Plausible for website analytics
- Clone the repo:
git clone https://github.com/Nutlope/llamacoder - Create a
.envfile and add your Together AI API key:TOGETHER_API_KEY= - Run
npm installandnpm run devto install dependencies and run locally
To enable the GitHub export feature, you need to create a GitHub OAuth App:
- Go to https://github.com/settings/applications/new
- Fill in the application details:
- Application name:
LlamaCoder(or your preferred name) - Homepage URL:
http://localhost:3000(for development) - Authorization callback URL:
http://localhost:3000/api/auth/github/callback
- Application name:
- Click "Register application"
- Copy the Client ID and Client Secret
- Create a
.env.localfile in the root directory:GITHUB_CLIENT_ID=your_client_id_here GITHUB_CLIENT_SECRET=your_client_secret_here NEXTAUTH_URL=http://localhost:3000
For production deployment, update the URLs to match your domain.
- Generate React components with TypeScript types from plain English prompts
- Export components to GitHub with a single click
- Edit components in your favorite code editor
- Instant live preview of components
- Fully customizable app metadata and theme
- Dark mode support
- Built-in authentication with GitHub
- Server-side rendering and static site generation
- API routes for backend logic
- Environment variable support
- TypeScript support
- ESLint and Prettier configuration
- Commitizen and semantic release for versioning
- GitHub Actions for CI/CD
- Dockerfile and docker-compose.yml for containerization
- Vercel and Netlify deployment scripts
- Comprehensive documentation and examples