MNKY VERSE
MNKY VERSE is the central hub for the MOOD MNKY ecosystem, providing an integrated interface to interact with our specialized AI agents. This application delivers personalized experiences, technical support, and educational content through a unified, intuitive interface.MNKY VERSE represents THE VERSE pillar of the MOOD MNKY ecosystem, providing the technological foundation that powers both THE EXPERIENCE and THE DOJO pillars.
Overview
MNKY VERSE serves as the primary user-facing application where members interact with MOOD MNKY, CODE MNKY, and SAGE MNKY agents. The application provides a unified dashboard, agent-specific chat interfaces, profile management, and seamless navigation across the ecosystem.Key Features
- Multi-Agent Interaction: Engage with three specialized agents (MOOD, CODE, SAGE)
- Unified Dashboard: Centralized view of your journey with easy access to all agents
- Enhanced Navigation: Context-aware sidebar with breadcrumbs and keyboard shortcuts
- Personalized Experience: Custom recommendations and content based on user preferences
- Secure Authentication: Robust user management with Supabase Auth
- Cross-Agent Collaboration: Seamless handoffs between agents for comprehensive support
Architecture
Technology Stack
- Frontend: Next.js 14+ (App Router), TypeScript, React
- Styling: Tailwind CSS, ShadCN UI components
- State Management: React Context API, Server Components
- Backend: Supabase, Edge Functions
- Database: PostgreSQL (via Supabase)
- Authentication: Supabase Auth
- AI Integration: Vector search, LLM integrations
- Deployment: Vercel
Application Structure
Getting Started
Prerequisites
- Node.js 18+ and pnpm installed
- Supabase account and project
- Environment variables configured
Setup
-
Clone the repository:
-
Install dependencies:
-
Configure environment variables:
Create
.env.localinapps/mnky-verse/: -
Start development server:
- Visit http://localhost:3000
Local Supabase Setup
For full functionality with local Supabase:Agent Integration
MNKY VERSE integrates with three specialized agents:MOOD MNKY Agent
- Purpose: Experience and personalization specialist
- Capabilities: Custom fragrance recommendations, self-care journey guidance
- Integration: Chat interface, product recommendations, mood tracking
CODE MNKY Agent
- Purpose: Technical expert and development support
- Capabilities: Code analysis, infrastructure management, documentation
- Integration: Developer tools, technical support, system diagnostics
SAGE MNKY Agent
- Purpose: Knowledge and learning guide
- Capabilities: Educational content, community facilitation, learning paths
- Integration: Learning environments, content delivery, community features
API Integration
MNKY VERSE integrates with multiple APIs:- Supabase API: Authentication, database, storage, real-time subscriptions
- OpenAI API: AI capabilities and agent interactions
- Shopify API: Product data and e-commerce functionality
- Notion API: Content management and knowledge base
- Custom APIs: Flowise, Ollama, Langchain, n8n integrations
Deployment
Vercel Deployment
- Connect GitHub repository to Vercel
- Set environment variables in Vercel dashboard
- Configure build settings:
- Build Command:
cd ../.. && pnpm deploy:mnky-verse - Output Directory:
.next - Install Command:
pnpm install
- Build Command:
Environment Variables
| Variable | Description | Required |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase project URL | Yes |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase anonymous key | Yes |
NEXT_PUBLIC_SITE_URL | Site URL for auth redirects | In production |
OPENAI_API_KEY | OpenAI API key | Optional |
Development Workflow
Running Tests
Type Checking
Linting
Troubleshooting
Common Issues
Authentication Errors
- Issue: “Invalid credentials” or “Session expired”
- Solution: Clear browser cookies and re-authenticate. Verify
NEXT_PUBLIC_SUPABASE_URLandNEXT_PUBLIC_SUPABASE_ANON_KEYare correct.
Sidebar Not Appearing
- Issue: Sidebar navigation not visible
- Solution: Press
⌘+B(Mac) orCtrl+B(Windows) to toggle sidebar. Check browser console for errors.
Agent Not Responding
- Issue: Agent chat interface not loading or timing out
- Solution: Verify OpenAI API key is set (if using OpenAI features). Check network connectivity and API endpoint status.
Performance Optimization
- Enable Edge Caching: Configure Vercel edge caching for static assets
- Optimize Images: Use Next.js Image component for automatic optimization
- Code Splitting: Leverage Next.js automatic code splitting
- Database Queries: Use Supabase query optimization and indexing
Related Resources
- Agent Ecosystem - Learn about MOOD, CODE, and SAGE agents
- API Documentation - Comprehensive API reference
- Supabase Integration - Database and auth setup
- UI Components Package - Shared UI component library
- Supabase Client Package - Database client utilities
- Contribution Guidelines - How to contribute