This project is an AI-powered tool for Sitecore developers, leveraging the power of Generative AI to streamline the process of creating Sitecore JSS components. It offers two primary functionalities:
-
Design-to-Code Conversion: Transform any design, screenshot, or wireframe into a fully functional Sitecore JSS component (Nextjs/TypeScript) in seconds.
-
Legacy Code Conversion: Convert traditional Sitecore MVC or SXA Scriban components into modern Sitecore JSS components (Nextjs).
Check out the live demo of the Sitecore JSS Copilot here.
- Convert designs to working Sitecore JSS components instantly
- Real-time preview of generated components
- AI-powered chat for component customization
- Legacy Sitecore code conversion
Follow these steps to get your development environment set up:
-
Clone the repository
git clone https://github.com/ahmed-ae/SitecoreCodeConversionGenAI.git
-
Navigate to the project directory
cd SitecoreCodeConversionGenAI -
Install dependencies
npm install
-
Build the project
npm run build
-
Set up environment variables You can either use OpenAI Gpt-4o or Anthropic Claude 3.5 Sonnet or both, first you need to get API keys for each:
-
Create a
.env.localfile in the root directory -
Add your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here
-
Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
Note: You can get the OpenAI API key from here: https://platform.openai.com/ or Anthropic API key from here: https://console.anthropic.com/
-
-
Start the development server
npm run dev
-
Open http://localhost:3000 in your browser to see the application in action!
-
Design-to-Code Conversion:
- Upload your design image or provide a URL
- Watch as the AI generates a Sitecore JSS component in real-time
- Use the AI chat to make further customizations
-
Legacy Code Conversion:
- Paste your Sitecore MVC or SXA Scriban code
- Get the converted Sitecore JSS (Nextjs) component instantly
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
This project is licensed under the GNU Lesser General Public License v3.0 (LGPLv3).
For more details, see the GNU Lesser General Public License v3.0.
The GNU LGPLv3 is a free, copyleft license that allows the use of the software within proprietary software, provided that the proprietary software is dynamically linked against the licensed software. Any modifications to the LGPL-licensed code must be made available under the LGPL.
