- π€ AI-Powered Code Generation - Describe your vision and watch AI create HTML, CSS, and JavaScript
- π¨ Modern UI/UX - Claude/Cursor-inspired design with smooth animations
- π Dark/Light Theme - Beautiful themes that adapt to your preference
- β‘ Live Preview - Instant preview of generated code in an isolated iframe
- π Syntax Highlighting - Clean code display with copy-to-clipboard functionality
- π Dynamic Greetings - Time-aware welcome messages based on your timezone
- π± Responsive Design - Works seamlessly across desktop, tablet, and mobile
- π Browser Navigation - Full support for browser back/forward buttons
- π Fast & Lightweight - Built with Vite for optimal performance
- Node.js (v16 or higher)
- npm or yarn
- Google Gemini API Key
-
Clone the repository
git clone https://github.com/LikhithSP/artifex.git cd artifex -
Install dependencies
npm install
-
Set up environment variables
Create a
.envfile in the root directory:GEMINI_API_KEY=your_gemini_api_key_here
Get your API key from Google AI Studio
-
Start the development server
npm run dev
-
Open your browser
Navigate to
http://localhost:5173
- React - UI library
- TypeScript - Type safety
- Vite - Build tool and dev server
- Tailwind CSS - Utility-first CSS framework
- Google Gemini API - AI code generation
- Lucide Icons - Beautiful icon set
artifex/
βββ components/ # React components
β βββ CodeDisplay.tsx # Code editor style
β βββ Header.tsx # Navigation header with theme toggle
β βββ Preview.tsx # Live preview iframe
β βββ PromptInput.tsx # User input component
β βββ WelcomeScreen.tsx # Landing page with examples
β βββ LoadingIndicator.tsx
βββ contexts/
β βββ ThemeContext.tsx # Theme management
βββ services/
β βββ geminiService.ts # AI API integration
βββ public/
β βββ favicon.svg # App icon
βββ App.tsx # Main application
βββ index.html # HTML entry point
βββ types.ts # TypeScript types
βββ vite.config.ts # Vite configuration
Artifex features a modern, professionally designed interface inspired by Claude and Cursor:
- Light Mode: Clean white backgrounds with purple accents
- Dark Mode: Deep dark backgrounds (
#1C1C1C) with vibrant purple highlights - Accent Color: Violet gradient (
#8B5CF6to#9333EA)
-
Enter a prompt describing the web page you want to create
- Example: "A modern portfolio website with smooth animations"
-
Click Generate or press
Enter -
View your code in three tabs (HTML, CSS, JavaScript)
-
Preview live in the built-in browser
-
Copy code with one click using the copy button
-
Start a new project using the "New Project" button or "Back" button
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Icons by Lucide
- AI powered by Google Gemini

