MindToEye is a powerful brand concept visualization platform that empowers creative professionals to rapidly generate, iterate, and present unique brand identities through intelligent design tools and collaborative workflows.
The application is built with a modern full-stack JavaScript architecture:
Express Server (Port 5000): A Node.js backend that serves both the React frontend and API endpoints from a single server, with PostgreSQL for data persistence and Supabase for authentication
The application is configured to run on port 5000 with the "Start application" workflow:
npm run dev
The following environment variables need to be set:
ANTHROPIC_API_KEY- API key for Claude (3.7 Sonnet)OPENAI_API_KEY- API key for OpenAI (optional)REPLICATE_API_TOKEN- API token for Replicate (FLUX 1.1 Pro)SUPABASE_URL- URL for your Supabase projectSUPABASE_ANON_KEY- Anon/Public key for Supabase authenticationSUPABASE_SERVICE_ROLE_KEY- Service role key for Supabase admin operationsDATABASE_URL- PostgreSQL connection stringSESSION_SECRET- Secret for securing user sessions
MindToEye uses a robust authentication system with multiple layers of fallback:
- Supabase Authentication - Primary authentication provider with JWT token support
- Token Refresh - Automatic refresh mechanism for expired tokens
- Session Persistence - LocalStorage fallback for maintaining sessions during API disruptions
- Anonymous Sessions - Support for demo users with secure account conversion
- Header Authentication - All API requests include proper authentication headers
- AI-assisted design generation (Claude 3.7 Sonnet + Black Forest Labs FLUX 1.1 Pro)
- Interactive visualization components
- Real-time collaborative design editing
- Replicate AI integration for logo generation
- Selective regeneration of design elements
- Advanced error handling and keyword-based AI fallbacks
- Dynamic element regeneration with contextual AI support
- Demo account conversion with persistent project data
- Robust authentication with multiple fallback mechanisms
- Supabase storage integration for asset management
- React TypeScript frontend
- Node.js/Express backend
- Claude 3.7 Sonnet for brand concept generation
- Black Forest Labs FLUX 1.1 Pro for logo generation
- PostgreSQL database for persistent storage
- Supabase for authentication and storage
- RESTful API with authenticated endpoints
- TanStack Query for data fetching
- Shadcn UI components