Skip to content

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

License

Notifications You must be signed in to change notification settings

MohammadShamchi/ai-react-playground

Repository files navigation

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:
git clone https://github.com/yourusername/ai-react-playground.git
cd ai-react-playground
  1. Run the setup script:
chmod +x setup.sh
./setup.sh
  1. Start the development server:
npm run dev

Usage πŸ“–

Creating Components

# Using CLI
npm run create-component Button

# Or use interactive generator
npm run generate

Creating Pages

# 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 πŸ“š

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 file for details.

Support πŸ’¬

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published