Agentic Artifacts is a tool for generating and managing CodeSandbox artifacts using AI. It leverages the power of GPT-4o to create React components and other web development artifacts based on user prompts.
- Generate React components and other web artifacts using AI
- Automatically create and manage CodeSandbox environments
- Error detection and automatic code fixing
- Support for multiple CodeSandbox environments (React, Python, Next.js, FastAPI, etc.)
- Web-based UI for easy interaction
- Command-line interface for advanced users
-
Clone the repository:
git clone https://github.com/ruvnet/agentic-artifacts.git cd agentic-artifacts -
Install the required dependencies:
pip install -r requirements.txt
-
Set up your environment variables: Create a
.envfile in the root directory and add your API keys:OPENAI_API_KEY=your_openai_api_key CODESANDBOX_API_KEY=your_codesandbox_api_key
- Install the package in editable mode:
pip install -e .
To start the Agentic Artifacts server:
agentic-artifactsagentic-artifacts/
│
├── agentic_artifacts/
│ ├── __init__.py
│ ├── api/
│ │ ├── __init__.py
│ │ └── routes.py
│ ├── models/
│ │ ├── __init__.py
│ │ └── sandbox.py
│ ├── services/
│ │ ├── __init__.py
│ │ ├── code_generator.py
│ │ └── sandbox_manager.py
│ ├── ui/
│ │ ├── static/
│ │ │ ├── styles.css
│ │ │ └── script.js
│ │ └── templates/
│ │ └── index.html
│ └── utils/
│ ├── __init__.py
│ └── config.py
│
├── tests/
│ └── __init__.py
│
├── install.sh
├── requirements.txt
├── setup.py
├── README.md
└── main.py
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.

