A privacy-first, local-only AI conversation platform designed to uncover behavioral insights and identify mindful individuals through authentic, personality-driven interactions. Experience meaningful connection discovery with our advanced compatibility evaluation system, featuring modern UI/UX design, robust error handling, and complete data privacy - all data stays on your machine!
- ๐ง AI Personality Engine: Context-aware conversations with advanced personality modeling
- ๐ Compatibility Core: Automatic behavioral pattern recognition and scoring
- ๐ก๏ธ Insight Shield: Comprehensive error handling with graceful fallbacks
- ๐ Conversation Logs: Detailed interaction tracking and behavioral analysis
- โ๏ธ Profile Configuration: Easy-to-modify personality and evaluation parameters
- ๐ฏ Type Safety: Full TypeScript implementation for enterprise-grade code quality
- ๐ Fallback Systems: Automatic AI service switching for maximum reliability
- ๐ง Input Validation: Advanced input validation and conversation sanitization
- ๐ Communication Array: Beautiful web-based chat interface with glass morphism
- ๐จ Mindful Theme: Elegant design with gradient backgrounds and smooth animations
- ๐ฑ Responsive Design: Works perfectly on desktop, tablet, and mobile
- โจ Modern UI/UX: Smooth transitions, hover effects, and intuitive navigation
- ๐ Real-time Updates: Live compatibility scoring and behavioral insights
- ๐ Offline Mode: Complete functionality with local storage fallback
- ๐ Privacy-First Design: All AI processing happens locally - no data leaves your machine
- ๐ฆ Ollama Integration: Local LLM support with Llama 3.1, Mistral, and other models
- ๐ Life Wisdom Engine: Comprehensive knowledge base for meaningful conversations
- ๐ Intelligent Fallback: Graceful degradation to wisdom-based responses when Ollama unavailable
- โก Performance Optimized: Fast local processing with minimal resource usage
- ๐ก๏ธ Complete Privacy: No cloud AI services, no data transmission, no external dependencies
๐ก๏ธ Privacy-First: All AI processing happens locally with Ollama - no data ever leaves your machine!
# Clone or download the project
cd meaningful-ai
# Launch the Insight Engine
npm install
npm run dev
# Optional: Setup Offline AI (Recommended for better conversations)
npm run setup:ollamaAccess URL: http://localhost:3000
Offline AI Setup: The app works great with just the built-in wisdom system, but for enhanced conversations, run npm run setup:ollama to install Ollama with Llama 3.1 8B for offline AI conversations.
The Behavioral Insight Engine will automatically:
- Initialize the AI personality system
- Set up conversation tracking
- Launch the modern web interface
- Begin behavioral pattern analysis
# 1. Install dependencies
npm install
# 2. Set up environment
cp env.template .env.local
# 3. Configure your AI personality
# Edit src/config/profile.json with your values and preferences
# 4. Add API keys to .env.local
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here # Optional fallback
# 5. Launch the engine
npm run dev- ๐ Launch: Open http://localhost:3000 in your browser
- ๐ก Communication: Start conversations to analyze behavioral patterns
- ๐ง AI Analysis: Watch as the system evaluates compatibility and mindfulness
- ๐ Insights: Review behavioral insights and compatibility scores
- ๐ฌ Admin Dashboard: Access detailed analytics at
/admin(password: admin123)
๐ง Meaningful AI - Behavioral Insight Engine
๐ Welcome to authentic conversation analysis ๐
๐ก User: Hi! I'm really interested in personal growth and mindfulness.
๐ AI Analysis: [Analyzing response patterns...]
๐ Behavioral Insights:
๐ค User: Hi! I'm really interested in personal growth and mindfulness.
๐ค AI Core: That's wonderful! I appreciate your openness about growth. What draws you to mindfulness? Is it something you've practiced for a while, or are you exploring new ways to connect with yourself?
๐ Compatibility Score: 78/100
๐ข Green Flags: Growth mindset, Self-awareness, Authenticity
๐ด Red Flags: None detected
The Behavioral Insight Engine can be customized by modifying the ProfileConfig in src/config/profile.json:
{
"name": "Your AI Personality",
"values": [
"authenticity",
"growth mindset",
"emotional intelligence",
"mindfulness"
],
"filters": {
"greenFlags": [
"genuine curiosity",
"self-awareness",
"emotional maturity",
"mindfulness practice"
],
"redFlags": [
"superficial interactions",
"lack of empathy",
"closed mindset"
]
}
}The web interface theme can be customized by modifying the CSS in src/app/globals.css:
- Colors: Change the gradient backgrounds and accent colors
- Fonts: Modify the Geist font family
- Animations: Adjust transition effects and hover states
- Layout: Customize the glass morphism panels
Current AI Personality Engine: Custom GPT-4o-mini with Claude-3 Haiku fallback
- ๐ง Type: Advanced Conversational AI with Personality Modeling
- ๐ Parameters: Context-aware behavioral pattern recognition
- ๐พ Memory Usage: Optimized conversation history management
- โก Response Time: ~1-3 seconds with fallback systems
- ๐ Capabilities: Compatibility scoring, behavioral insights, personality matching
The system analyzes behavioral patterns across multiple dimensions:
| Behavioral Factor | Weight | Description |
|---|---|---|
| Value Alignment | 25% | Core values and principles compatibility |
| Emotional Intelligence | 20% | Empathy, self-awareness, emotional maturity |
| Authenticity | 20% | Genuine self-expression vs. performative behavior |
| Communication Style | 15% | How they express thoughts and feelings |
| Growth Orientation | 10% | Openness to learning and personal development |
| Depth of Responses | 5% | Thoughtfulness and engagement level |
| Respectfulness | 3% | Basic human decency and consideration |
| Intellectual Curiosity | 2% | Question-asking and exploration behavior |
meaningful-ai/
โโโ ๐ src/
โ โโโ ๐ app/ # Next.js app router
โ โ โโโ admin/ # Behavioral analytics dashboard
โ โ โโโ api/chat/ # Conversation analysis endpoints
โ โ โโโ page.tsx # Main conversation interface
โ โโโ ๐ง components/ # React conversation components
โ โโโ ๐ lib/ # Core behavioral analysis services
โ โ โโโ ai-service.ts # AI personality engine
โ โ โโโ database.ts # Behavioral data persistence
โ โ โโโ evaluation-engine.ts # Compatibility scoring system
โ โ โโโ config.ts # Configuration loader
โ โโโ ๐ฏ types/ # TypeScript behavioral definitions
โ โโโ โ๏ธ config/ # AI personality configuration
โโโ ๐ ๏ธ setup.sh # Quick setup script
โโโ ๐ env.template # Environment variables template
โโโ ๐ README.md # Mission documentation
โโโ ๐ซ .gitignore # Git ignore rules
- ๐ Chat Interface (
ChatInterface.tsx): Modern conversation experience - ๐ Admin Dashboard (
admin/page.tsx): Behavioral analytics and insights - ๐ง AI Service (
ai-service.ts): Personality-driven conversation engine - ๐ Evaluation Engine (
evaluation-engine.ts): Compatibility scoring system
The Behavioral Insight Engine creates detailed conversation logs:
- ๐ AI personality initialization progress
- โ Error messages and diagnostic traces
- ๐ Conversation history and pattern analysis
- ๐ Behavioral insights and compatibility metrics
- ๐ธ Interaction session summaries
- ๐ AI Service Loading: Graceful failure with helpful diagnostic messages
- ๐ง Input Validation: Advanced conversation sanitization and validation
- โก Generation Errors: Intelligent fallback responses when AI fails
- ๐พ Memory Management: Automatic cleanup to prevent system crashes
- ๐ Network Issues: Offline mode resilience and error recovery
- ๐ Dual AI Services: OpenAI primary with Anthropic fallback
- ๐พ Memory Management: Configurable conversation history limits
- ๐ง Efficient Processing: Optimized text analysis algorithms
- โก Batch Processing: High-performance behavioral analysis
- ๐ Resource Monitoring: Real-time performance tracking
| Issue | ๐ ๏ธ Solution |
|---|---|
| ๐พ Memory Overload | Reduce conversation history limits or use local storage |
| ๐ Slow Performance | Check API key configuration and network connection |
| ๐ API Failures | Verify OpenAI/Anthropic API keys and fallback systems |
| โ Import Errors | Ensure all dependencies are properly installed |
| ๐ Admin Access | Use default password admin123 or check environment config |
- ๐ First Launch: Slower due to AI model initialization (~2-5 seconds)
- ๐ Subsequent Runs: Much faster as models are cached
- ๐ API Users: Ensure valid API keys for optimal performance
- ๐พ Memory Issues: Use local storage fallback for offline functionality
- ๐ Resource Monitoring: Check browser console for detailed diagnostics
The Behavioral Insight Engine includes comprehensive testing protocols:
# Test behavioral analysis system
npm run build # Test production build
npm run lint # Test code quality
npm run dev # Test development server
# Test fallback systems
npm run test:fallback # Test AI service fallback mechanisms- ๐ค @anthropic-ai/sdk (โฅ0.60.0): Anthropic AI fallback service
- โก openai (โฅ5.15.0): OpenAI primary AI service
- ๐ next (โฅ15.5.0): Next.js web framework
- ๐จ tailwindcss (โฅ4.0.0): Modern styling framework
- ๐ @supabase/supabase-js (โฅ2.56.0): Optional cloud storage
- ๐ญ framer-motion (โฅ12.23.12): Smooth animations and transitions
This Behavioral Insight Engine uses AI services and libraries with their respective licenses:
- ๐ค OpenAI API: OpenAI Terms of Service
- ๐ง Anthropic API: Anthropic Terms of Service
- ๐ Behavioral Analysis Implementation: MIT License
If you encounter any mission issues:
- ๐ Check the Behavioral Analysis Diagnostics section above
- ๐ Review the browser console for detailed error logs
- ๐ง Ensure all dependencies and API keys are properly configured
- ๐ Try using the local storage fallback for testing
- ๐ Check the GitHub issues for known behavioral analysis problems
๐ง Welcome to the Future of Meaningful Connection Discovery! ๐ฏ