An open API service indexing awesome lists of open source software.

https://github.com/mohammadshamchi/ai-react-playground

πŸ€– The perfect playground for testing AI-generated React components. Built for ChatGPT/Claude users to instantly test and iterate on AI-created components.
https://github.com/mohammadshamchi/ai-react-playground

ai-testing ai-tools chatgpt claude-ai-generated-code react tailwindcss typescript vite

Last synced: 2 months ago
JSON representation

πŸ€– The perfect playground for testing AI-generated React components. Built for ChatGPT/Claude users to instantly test and iterate on AI-created components.

Awesome Lists containing this project

README

          

# AI React Playground πŸš€

A simple, modern React playground for testing and showcasing React components and pages. Perfect for testing AI-generated React code or building your own components.

## Features ✨

- 🎯 **Simple Setup**: Just clone and run the setup script
- 🎨 **Modern Stack**: React + TypeScript + Vite + Tailwind CSS
- πŸ”§ **Component Generator**: Create new components with one command
- πŸ“± **Live Preview**: See your components in action instantly
- πŸ“ **Auto-Documentation**: Components are automatically added to the sidebar
- 🎭 **Page Support**: Create and test full pages
- πŸ› οΈ **Developer Friendly**: Hot reload, TypeScript support, and more

## Quick Start πŸƒβ€β™‚οΈ

1. Clone the repository:
```bash
git clone https://github.com/yourusername/ai-react-playground.git
cd ai-react-playground
```

2. Run the setup script:
```bash
chmod +x setup.sh
./setup.sh
```

3. Start the development server:
```bash
npm run dev
```

## Usage πŸ“–

### Creating Components

```bash
# Using CLI
npm run create-component Button

# Or use interactive generator
npm run generate
```

### Creating Pages

```bash
# Using CLI
npm run create-page Home

# Or use interactive generator
npm run generate
```

### Testing AI-Generated Code

1. Get React component code from your favorite AI
2. Use the generator to create a new component
3. Paste the code
4. See it live in the browser
5. Iterate and improve

## Documentation πŸ“š

- [Component Documentation](docs/components.md)
- [Development Guide](docs/development.md)
- [Troubleshooting](docs/troubleshooting.md)

## Project Structure πŸ—οΈ

```
β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ components/ # Reusable UI components
β”‚ β”œβ”€β”€ pages/ # Page components
β”‚ β”œβ”€β”€ assets/ # Static assets
β”‚ β”œβ”€β”€ App.tsx # Main application component
β”‚ └── main.tsx # Application entry point
β”œβ”€β”€ docs/ # Documentation
β”œβ”€β”€ scripts/ # Development scripts
└── setup.sh # Setup script
```

## Contributing 🀝

1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a Pull Request

## License πŸ“„

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Support πŸ’¬

- Check the [Troubleshooting Guide](docs/troubleshooting.md)
- Open an issue
- Start a discussion

## Roadmap πŸ—ΊοΈ

- [ ] Add more component templates
- [ ] Add testing setup
- [ ] Add CI/CD pipeline
- [ ] Add theme support
- [ ] Add more documentation
- [ ] Add more examples

## Acknowledgments πŸ™

- React Team
- Vite Team
- Tailwind CSS Team
- All contributors