uicloner-extension  by AndySpider

Browser extension for instant UI cloning and code generation

created 8 months ago
459 stars

Top 66.9% on sourcepulse

GitHubView on GitHub
Project Summary

This browser extension allows users to instantly clone any web UI component with a single click, exporting the result as HTML with either Tailwind CSS or pure CSS. It's designed for developers and designers looking to quickly replicate or adapt existing web interfaces for their own projects.

How It Works

The extension leverages a vision Large Language Model (LLM) like GPT-4o or Claude 3.5, with the user's API key stored locally. Upon selecting a UI element on a webpage, the extension sends the element's visual information to the LLM, which then generates the corresponding HTML and CSS code. This approach aims to provide a fast and accurate way to extract and recreate UI designs without manual coding.

Quick Start & Requirements

  • Install: Chrome Web Store.
  • Prerequisites: Vision LLM API key (GPT-4o or Claude 3.5 recommended). API key is saved locally.
  • Demo: Facebook login form cloning is available.
  • Development: pnpm install, pnpm run dev (development), pnpm build (production).

Highlighted Details

  • AI-powered UI cloning with a single click.
  • Supports HTML + Tailwind CSS and HTML + pure CSS output formats.
  • Features live preview of cloned UI and generated code.
  • Built using WXT, React 18, Tailwind CSS, Shadcn UI, Langchain, and TypeScript.

Maintenance & Community

Contributions are welcome via Pull Requests and Issues.

Licensing & Compatibility

MIT License. Compatible with commercial and closed-source projects.

Limitations & Caveats

Requires a paid API key for a supported vision LLM. The quality of the generated code is dependent on the chosen LLM and the complexity of the UI component.

Health Check
Last commit

7 months ago

Responsiveness

1 week

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

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

screenshot-to-code by abi

0.1%
70k
Screenshot-to-code tool for generating code from visual inputs
created 1 year ago
updated 6 days ago
Feedback? Help us improve.