Claude Artifacts React is an open-source tool that simplifies the process of deploying React code snippets to Vercel or Cloudflare Pages. This project allows you to quickly test and share React code generated by Claude Artifacts without the need for complex setup or configuration.
- Click on either the "Deploy with Vercel" or "Deploy to Cloudflare Pages" button above.
- This will fork the repository to your account and start the deployment process.
- Once deployed, you can edit the
src/ArtifactCode.jsx
file in your forked repository with the React code output from Claude. - Commit your changes, and your deployment will automatically update with the new code.
- One-click deployment to Vercel or Cloudflare Pages
- Easy editing of React code through
ArtifactCode.jsx
- Supports React code snippets and components from Claude
- Minimal configuration required
- All dependencies of Claude artifacts are already installed
- Ideal for prototyping, sharing code examples, or quickly testing ideas
After deploying, follow these steps to update your React code:
- Navigate to the
ArtifactCode.jsx
file in your forked repository. - Click on the edit button (pencil icon).
- Paste the React code output from Claude into this file.
- Commit your changes.
- Your deployment will automatically update with the new code.
If you prefer to set up the project manually:
-
Clone the repository:
git clone https://github.com/risonsimon/claude-artifacts-react.git cd claude-artifacts-react
-
Install dependencies:
pnpm install
-
Edit the
ArtifactCode.tsx
file with your React code. -
Deploy to your preferred platform.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please file an issue on the GitHub repository.