ScreenCoder is an intelligent UI-to-code generation tool that transforms any screenshot or design prototype into production-ready HTML/CSS code. It employs a modular multi-agent architecture that integrates visual understanding, layout planning, and adaptive code synthesis to generate accurate and editable front-end code.
ScreenCoder supports custom modifications, enabling developers and designers to adjust layouts and styles, and facilitates rapid prototyping and the creation of pixel-perfect interfaces.
How to Use ScreenCoder
Initial Generation with Placeholders: Run Python scripts to generate initial HTML code for a given screenshot.
python block_parsor.py.python html_generator.py.Final HTML Code: Run Python scripts to generate final HTML code with cropped images from the original screenshot.
python image_box_detection.py.python UIED/run_single.py.python mapping.py.python image_replacer.py.Simple Execution: Run the command python main.py to generate the final HTML code.
Try ScreenCoder huggingface demo at Demo.