Re-Vibe code the front end of any website! 🎨✨
A Chrome extension that can reshape any website you visit by using AI to generate CSS overrides. The extension feeds HTML skeleton data to an LLM and asks it to generate CSS modifications to transform the page's appearance.
Hate the way those banking apps look? 🏦
Don't think a UI sparks joy? 😤
Redesign it yourself! With Vibes ✨
Transform any website's appearance with AI-powered styling that matches your aesthetic preferences. From drab to fab in seconds!
Demo-Reskin.mov
- 🎨 AI-Powered Styling: Uses LLM to generate CSS overrides for any website
- 🚀 Real-time Transformation: Instantly applies styling changes to web pages
- 🔧 Simple Setup: Easy-to-use Chrome extension with React interface
- 🎯 Universal Compatibility: Works on any website with HTML content
- Frontend: Chrome extension built with React + Tailwind CSS
- Backend: Simple Express.js server with TypeScript
- AI Integration: LLM-powered CSS generation from HTML skeleton data
- Node.js (v18 or higher)
- npm or yarn
- Google Chrome browser
git clone <repository-url>
cd facelift-ai
npm install
cd backend && npm installnpm run copy-sharednpm run buildcd backend
npm run devThe backend will start on http://localhost:3001
To load an unpacked extension in developer mode:
-
Go to the Extensions page by entering
chrome://extensionsin a new tab- (By design chrome:// URLs are not linkable)
- Alternatively, click the Extensions menu puzzle button and select "Manage Extensions" at the bottom of the menu
- Or, click the Chrome menu, hover over "More Tools", then select "Extensions"
-
Enable Developer Mode by clicking the toggle switch next to "Developer mode"
-
Click the "Load unpacked" button and select the
extensionfolder from this project. -
The Facelift AI extension should now appear in your extensions list
- Navigate to any website
- Click the Facelift AI extension icon in your browser toolbar
- The extension will analyze the page and generate AI-powered styling suggestions
- Apply the generated styles to transform the page appearance
facelift-ai/
├── backend/ # Express.js server
│ ├── src/
│ │ ├── server.ts # Main server file
│ │ ├── model.ts # AI integration
│ │ └── shared/ # Shared types
│ └── package.json
├── extension/ # Chrome extension files
│ ├── manifest.json # Extension manifest
│ ├── content.js # Content script
│ ├── background.js # Background script
│ └── dist/ # Built extension files
├── src/ # Frontend React app
│ ├── components/ # React components
│ ├── services/ # API services
│ └── shared/ # Shared types
├── shared/ # Shared TypeScript types
└── scripts/ # Build and setup scripts
npm run build- Build the extensionnpm run dev- Start development servernpm run copy-shared- Copy shared types to frontend/backend
npm run dev- Start development server with hot reloadnpm run build- Build for productionnpm start- Start production server
- Copy Shared Files:
npm run copy-shared(if you modified shared types) - Build Extension:
npm run build(from root) - Start Backend:
cd backend && npm run dev - Reload Extension: Go to
chrome://extensions/and click reload - Test Changes: Navigate to any website and reload the page, then test the extension
Create a .env file in the backend directory:
# Add your AI service API keys here
OPENAI_API_KEY=your_openai_api_key_here- Content Analysis: The extension's content script captures the HTML structure of the current page
- AI Processing: HTML skeleton data is sent to the backend, which uses an LLM to generate CSS overrides
- Style Application: Generated CSS is applied to the page using dynamic style injection
- Real-time Updates: Users can regenerate styles or modify existing ones through the extension popup
Extension Not Loading
- Ensure you're loading the
extensionfolder (not the root project folder) - Check that the build completed successfully
- Verify the manifest.json file is valid
Backend Connection Issues
- Confirm the backend is running on port 3001
- Check that no other services are using the same port
- Verify your firewall settings allow localhost connections
Build Errors
- Run
npm run copy-sharedto ensure shared types are up to date - Clear the
extension/distfolder and rebuild - Check that all dependencies are installed
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For issues and questions, please create an issue in the repository.