The Instagram for AI Creators - A modern social media platform designed specifically for sharing AI-generated content, prompts, and tools.
- Automatic Prompt Enhancement: Transform "a cat" into professional, detailed prompts instantly
- Image-to-Prompt Generation: Upload images and get AI-generated prompts automatically
- Multi-Style Variants: Get 4 enhanced versions (photographic, artistic, cinematic, digital art)
- Zero-Question Enhancement: AI intelligently enhances without asking for clarification
- Smart Content Generation: Auto-generate titles, descriptions, and tags
- Live Notifications: Instant notifications for likes, comments, follows, mentions
- Real-time Comments: Live commenting with typing indicators
- User Presence: See who's online with green dots
- Live Engagement Counters: Real-time like/comment counts across all users
- Toast Notifications: Beautiful popup notifications for new interactions
- Smart File Upload: Automatically detects content type and routes appropriately
- Multi-media Support: Images, videos, carousels
- Vertical Video Detection: Automatically creates reels for portrait videos
- Prompt Sharing: Users can share AI prompts with generated content
- Tool Directory: Community-driven AI tool discovery
- User Profiles: Customizable profiles with bio, avatar, verification status
- Following System: Follow other creators
- Engagement: Like, comment, and save content
- Search & Discovery: Find users, content, and tools
- Category Filtering: Organized by AI tool categories
- Offline Mode: Graceful fallback when services are unavailable
- Error Boundaries: Comprehensive error handling
- Protected Routes: Authentication-based route protection
- Responsive Design: Mobile-first responsive layout
- Dark Mode: System-wide dark/light theme support
- Frontend: React 18 + TypeScript + Vite
- Styling: Tailwind CSS with dark mode
- Backend: Supabase (PostgreSQL + Auth + Storage + Real-time)
- AI Integration: OpenRouter + Google Gemini 2.5 Pro
- Deployment: Vercel
- Icons: Lucide React
git clone <repository-url>
cd promptshareai
npm install
Create .env.local
:
# Supabase Configuration
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
# AI Integration (NEW!)
VITE_OPENROUTER_API_KEY=your_openrouter_api_key
- Create a Supabase project
- Run SQL files in order:
supabase/schema.sql
supabase/functions.sql
supabase/policies.sql
- Create storage buckets:
media
andavatars
- Enable real-time for:
notifications
,comments
,likes
,user_presence
,comment_typing
- Supabase: supabase.com โ Project Settings โ API
- OpenRouter: openrouter.ai โ API Keys
npm run dev
Visit http://localhost:5173
and go to /test
to verify all features work.
- AI & Real-time Features Guide - Comprehensive guide for new features
- Setup Guide - Detailed setup instructions
- Critical Issues Fixed - Recent bug fixes and improvements
Input: "a cat"
Output: "A majestic tabby cat with piercing green eyes, sitting gracefully on a vintage wooden windowsill, soft natural lighting streaming through lace curtains, shot with 85mm lens, shallow depth of field, photorealistic, highly detailed"
Ctrl+E
: Enhance current promptCtrl+C
: Copy enhanced promptCtrl+1-4
: Select enhancement styles
- Bell icon shows live notification count
- Comments appear instantly across all users
- Typing indicators show when someone is composing
- Toast notifications for new interactions
Visit /test
to test all features:
- โ Database connectivity
- โ File upload functionality
- โ AI prompt enhancement
- โ Real-time connections
- โ Image analysis
- โ All service integrations
src/
โโโ components/ # Reusable UI components
โ โโโ AIPromptEnhancer.tsx # AI prompt enhancement
โ โโโ AIImageAnalyzer.tsx # Image-to-prompt generation
โ โโโ RealtimeNotifications.tsx # Live notifications
โ โโโ RealtimeComments.tsx # Live commenting
โโโ services/ # Business logic layer
โ โโโ ai.ts # OpenRouter AI integration
โ โโโ realtime.ts # Supabase real-time features
โ โโโ database.ts # Database operations
โ โโโ storage.ts # File storage
โโโ types/ # TypeScript definitions
โ โโโ ai.ts # AI and real-time types
โ โโโ index.ts # Core types
โโโ pages/ # Route components
โโโ contexts/ # React contexts
โโโ utils/ # Utility functions
- Row Level Security (RLS): All database tables protected
- Authentication: Supabase Auth with Google OAuth
- File Upload Security: User-scoped storage policies
- API Key Security: Environment variables only
- Real-time Security: Authenticated subscriptions only
- Connect GitHub repository
- Add environment variables
- Deploy automatically
npm run build
# Deploy dist/ folder to your hosting provider
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly using
/test
page - Submit a pull request
This project is licensed under the MIT License.
- Issues: Create GitHub issues for bugs
- Features: Submit feature requests
- Documentation: Check
AI_REALTIME_FEATURES.md
for detailed guides - Testing: Use
/test
page to diagnose issues
PromptShare - Empowering AI creators with cutting-edge social features and intelligent content enhancement! ๐โจ "# promptsai"