react-agent  by eylonmiz

React component generator from user stories

Created 2 years ago
1,636 stars

Top 25.7% on SourcePulse

GitHubView on GitHub
Project Summary

ReactAgent is an experimental autonomous agent designed to generate and compose React.js components from user stories using GPT-4. It targets developers seeking to accelerate UI development by leveraging AI to translate natural language descriptions into functional React code, built with modern web technologies and atomic design principles.

How It Works

The agent utilizes GPT-4 to interpret user stories, converting them into a structured JSON format that guides the component generation process. It then composes these components, potentially integrating with local design systems (Shadcn UI, Radix UI) and TailwindCSS, following atomic design principles for modularity. This approach aims to automate the initial scaffolding and composition of React UIs from high-level requirements.

Quick Start & Requirements

  • Install dependencies: yarn install
  • Run backend (component generation): yarn backend:dev
  • Run frontend (view components): yarn frontend:dev
  • Requires an OpenAI API key with GPT-4 access, set as OPENAI_SECRET_KEY in backend/main/.env.
  • Documentation: Docs Website

Highlighted Details

  • Generates React components from user stories.
  • Composes components using existing ones and a local design system.
  • Built with React, TailwindCSS, TypeScript, Radix UI, and Shadcn UI.
  • Adheres to Atomic Design principles.

Maintenance & Community

  • Active Discord community available: Discord
  • Co-created by @eylonmiz and @leetwito.

Licensing & Compatibility

  • Licensed under the MIT License.
  • Permissive license suitable for commercial use and integration into closed-source projects.

Limitations & Caveats

Generated code is experimental and not production-ready, requiring review and testing. Only GPT-4 is supported; GPT-3.5 is not compatible. The initial user story to JSON conversion may have inaccuracies. OpenAI API usage costs apply.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
10 stars in the last 30 days

Explore Similar Projects

Starred by Kevin Hou Kevin Hou(Head of Product Engineering at Windsurf), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

ai-jsx by fixie-ai

0%
1k
AI app framework for Javascript
Created 2 years ago
Updated 1 year ago
Feedback? Help us improve.