Transform your imagination into stunning visuals with AI-powered image generation
π¨ Create β’ π« Share β’ β¨ Inspire
- Stable Diffusion integration via Modal serverless GPU hosting
- Smart content moderation to ensure appropriate image generation
- Real-time image generation with loading states and error handling
- Instagram-like interface with image feed and interactions
- Like, comment, and bookmark generated images
- Share functionality with native Web Share API support
- Semantic search to discover relevant content
- Landing-first approach for new users with smart redirection
- Dark/Light mode toggle with system preference detection
- Responsive design optimized for all device sizes
- Smooth animations and modern UI/UX patterns
- Content moderation API for safe image generation
- Recommendation engine for personalized content discovery
- Toast notifications for user feedback
- Copy, download, and share utilities for enhanced interactions
- Node.js 18+
- npm or yarn
- Modal account (for AI image generation)
- Clone the repository
git clone https://github.com/rahatmoktadir03/visio-gram.git
cd visio-gram- Install dependencies
npm install- Set up Modal backend (Optional - demo works with placeholder images)
# Install Modal CLI
pip install modal
# Deploy the image generation function
modal deploy modal_app.py- Start development server
npm run dev- Open your browser
http://localhost:3000
src/
βββ app/ # Next.js App Router
β βββ api/ # API routes
β β βββ generate-image/ # AI image generation
β β βββ moderate-content/ # Content moderation
β β βββ recommendations/ # Content recommendations
β βββ feed/ # Main social feed
β βββ create/ # Image creation page
β βββ history/ # User's generation history
β βββ bookmarks/ # Bookmarked content
β βββ _profile/ # Profile page (disabled for demo)
β βββ page.tsx # Landing page
βββ components/ # Reusable React components
β βββ Header.tsx # Navigation header
β βββ ImageCard.tsx # Image display component
β βββ SearchBar.tsx # Search functionality
β βββ ThemeProvider.tsx # Dark/light mode context
β βββ ThemeToggle.tsx # Theme switch button
βββ utils/ # Utility functions
β βββ interactions.ts # User interaction helpers
βββ modal_app.py # Modal serverless functions
- Next.js 15 - React framework with App Router
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling with dark mode
- Heroicons - Beautiful SVG icons
- Modal - Serverless GPU compute for AI inference
- Stable Diffusion - Text-to-image AI model
- Next.js API Routes - Backend API endpoints
- Responsive Design - Mobile-first approach
- Dark Mode - System preference with manual toggle
- PWA Ready - Progressive Web App capabilities
- SEO Optimized - Meta tags and semantic HTML
/- Landing page with feature showcase/feed- Main social feed with image generation/create- Dedicated image creation interface/history- User's generation history/bookmarks- Saved/bookmarked images
The app uses Picsum Photos for placeholder images. For production, integrate with:
- Modal AI image generation API
- Your preferred image hosting service
# Add your Modal API endpoint if using real AI generation
NEXT_PUBLIC_MODAL_ENDPOINT=your-modal-endpoint- First Visit: Experience the landing page with feature overview
- Returning Users: Automatically redirected to the main feed
- Generate Images: Use the creation form with text prompts
- Social Interaction: Like, comment, and bookmark images
- Search & Discover: Find images using semantic search
- Theme Toggle: Switch between light and dark modes
- Connect your GitHub repository to Netlify
- Build command:
npm run build - Publish directory:
.next - Deploy!
npm install -g vercel
vercelThe app is a standard Next.js application and can be deployed to any platform supporting Node.js.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
- Modal for serverless GPU infrastructure
- Stability AI for Stable Diffusion models
- Vercel for Next.js framework
- Tailwind Labs for amazing CSS framework
Built with β€οΈ by Rahat Moktadir
Live Demo β’ Report Bug β’ Request Feature