Adiva AI is a cutting-edge, AI-powered advertising creation platform that leverages Google's Gemini AI to generate compelling ad copy and stunning visuals for multiple social media platforms. Built with React and TypeScript, it provides marketers, entrepreneurs, and content creators with an intuitive interface to create professional-quality advertisements in seconds.
- Smart Copywriting: Generate compelling ad headlines, body text, and CTAs tailored to your target audience
- Visual Creation: AI-generated high-quality images optimized for social media advertising
- Platform-Specific Optimization: Customized content for Instagram, Facebook, TikTok, Google, and LinkedIn
- Text-to-Image: Create stunning visuals from text descriptions
- Image Editing: Upload existing images and enhance them with AI-powered modifications
- Multi-Format Support: PNG, JPG, and GIF formats supported
- Real-time Preview: See changes instantly with interactive previews
- History Tracking: Automatically save all generated ads for future reference
- Favorites System: Star your best-performing ads for quick access
- Local Storage: Persistent storage across browser sessions
- Search & Filter: Easy navigation through your ad library
- Instagram: Square format with trending hashtags
- Facebook: Optimized for feed and story placements
- TikTok: Vertical format with viral content strategies
- Google: Search and display ad formats
- LinkedIn: Professional tone for B2B marketing
- Responsive Design: Works seamlessly on desktop, tablet, and mobile
- Dark/Light Mode: Toggle between themes based on preference
- Loading States: Smooth animations and loading indicators
- Toast Notifications: Real-time feedback for user actions
- React 19.1.1 - Modern UI framework with latest features
- TypeScript - Type-safe development
- Vite - Fast build tool and development server
- Tailwind CSS - Utility-first CSS framework
- Google Gemini 2.5 Flash - Advanced language model for text generation
- Google Imagen 4.0 - State-of-the-art image generation
- Google GenAI SDK - Official Google AI integration
- ESLint - Code linting and quality assurance
- Hot Module Replacement - Instant development updates
- Environment Variables - Secure API key management
- Node.js (v18 or higher)
- Google AI API Key - Get yours from Google AI Studio
-
Clone the repository
git clone <repository-url> cd adiva-ai
-
Install dependencies
npm install
-
Set up environment variables
cp .env.example .env.local
Edit
.env.localand add your Google AI API key:VITE_API_KEY=your_google_ai_api_key_here -
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:5173to start creating amazing ads!
- Select Your Platform: Choose from Instagram, Facebook, TikTok, Google, or LinkedIn
- Product Details: Enter your product name, description, and target audience
- Generate: Click "Generate Ad" to create both copy and visuals
- Download: Save your generated images and copy text
- Organize: Star favorites and browse your history
- Upload Images: Drag and drop or select images for editing
- Enter Prompt: Describe what changes you want to make
- Generate: AI will modify your images based on the prompt
- Download Results: Save your enhanced images
- History Tab: View all previously generated ads
- Favorites Tab: Access starred ads quickly
- Copy Text: Click any text to copy to clipboard
- Download Images: Use the download button on any generated image
- Campaign Creation: Generate multiple ad variations for A/B testing
- Client Presentations: Create professional mockups in minutes
- Social Media Management: Maintain consistent posting schedules
- Product Launches: Create buzz around new products
- Seasonal Campaigns: Generate holiday and event-specific ads
- Brand Awareness: Build consistent brand messaging
- Sponsored Content: Create engaging promotional posts
- Affiliate Marketing: Generate compelling product promotions
- Portfolio Building: Showcase ad creation capabilities
- Rapid Prototyping: Create concepts for client pitches
- Scale Operations: Generate hundreds of ad variations
- Quality Assurance: Ensure brand consistency across campaigns
The app uses Google's Gemini AI for both text and image generation:
- Text Generation:
generateAdCopy(platform, productName, description, audience) - Image Generation:
generateAdImage(productName, description, audience) - Image Editing:
generateOrEditImage(prompt, images)
interface Ad {
id: string;
platform: string;
headline: string;
body: string;
callToAction: string;
hashtags: string[];
isFavorite: boolean;
imageUrl?: string;
}Edit constants.ts to add new advertising platforms:
export const PLATFORMS = ['Instagram', 'Facebook', 'TikTok', 'Google', 'LinkedIn', 'YourPlatform'];The app uses Tailwind CSS with custom color schemes. Modify tailwind.config.js to customize:
- Brand colors
- Typography
- Spacing scales
- Dark mode variants
Customize AI prompts in services/geminiService.ts to:
- Adjust tone of voice
- Modify content length
- Add specific requirements
- Change creative direction
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
src/
βββ components/ # React components
β βββ GenerateScreen.tsx # Main ad generation interface
β βββ ImageEditorScreen.tsx # Image editing functionality
β βββ HistoryScreen.tsx # Ad history management
β βββ FavoritesScreen.tsx # Favorite ads management
βββ services/ # AI service integrations
β βββ geminiService.ts # Google AI API wrapper
βββ contexts/ # React context providers
βββ constants.ts # App constants and configurations
βββ types.ts # TypeScript type definitions
βββ App.tsx # Main application component
- Client-Side Processing: All AI requests are made client-side
- API Key Protection: Uses environment variables for secure API key storage
- No Data Storage: No user data is stored on external servers
- Local Storage: All data remains in user's browser
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- Mobile Browsers: iOS Safari, Chrome Mobile
We welcome contributions! Please see our contributing guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: Check this README and inline code comments
- Issues: Report bugs and request features on GitHub
- Google AI Support: Visit Google AI Studio for API-related questions
- Google AI Team for Gemini and Imagen models
- React Community for excellent development tools
- Tailwind CSS for the design system
- Vite Team for the fast build tool
Empowering creators to build amazing advertisements with AI