Enterprise-grade AI Agent Operations Platform for Monitoring, Diagnostics, and Self-healing
Live Demo β’ Documentation β’ Features β’ Tech Stack
SuperAI is a next-generation AI operations platform that monitors, diagnoses, and automatically repairs AI agents in real-time. Built for the modern AI-first enterprise, SuperAI ensures your AI agents never go dark with autonomous health monitoring, intelligent diagnostics, and self-healing capabilities.
AI agents are growing fast, but they break silently:
- π΄ Silent Failures - Agent timeouts and degraded performance go unnoticed
- β±οΈ Manual Debugging - Hours wasted troubleshooting AI-specific issues
- πΈ Revenue Impact - Undetected failures cost time, trust, and money
SuperAI provides:
- β Instant Detection - AI-powered monitoring detects issues in seconds
- π Root Cause Analysis - Automated diagnosis identifies the exact problem
- π§ Self-Healing - Autonomous remediation with zero downtime
- π Full Visibility - Real-time dashboards and performance analytics
- Agent Health Grid - Visual dashboard showing real-time status of all AI agents
- Performance Monitoring - Track success rates, response times, and uptime
- Agent Configuration - Manage models, data sources, and response styles
- Custom Metrics - Define and track custom KPIs for each agent
- Automatic Detection - ML-powered anomaly detection for AI-specific issues
- Root Cause Analysis - Deep diagnostics to identify exact failure points
- Proposed Fixes - AI-generated remediation plans with confidence scores
- Incident Timeline - Complete audit trail of detection, diagnosis, and recovery
- Auto-Remediation - Execute approved fixes without human intervention
- Validation Testing - Run comprehensive tests before deploying fixes
- Rollback Support - Automatic rollback if fixes don't resolve issues
- Semi-Autonomous Mode - Human-in-the-loop for critical decisions
- Performance Trends - Historical charts showing agent health over time
- System Health Score - Overall platform health rating (0-10)
- Activity Feed - Real-time supervisor actions and system events
- Custom Reports - Generate detailed reports on agent performance
- Live Simulation - See self-healing in action with realistic scenarios
- Step-by-Step Walkthrough - Understand detection, diagnosis, and recovery phases
- Real-Time Logs - Watch the supervisor AI work through issues
- React 18.3+ - Modern UI framework with hooks
- TypeScript - Type-safe development
- Vite - Lightning-fast build tool
- TailwindCSS - Utility-first styling with custom design tokens
- Radix UI - Headless UI primitives
- shadcn/ui - Beautiful, accessible component library
- TanStack Query v5 - Powerful data synchronization
- React Router v6 - Client-side routing
- Recharts - Data visualization
- Lucide React - Icon library
- Embla Carousel - Touch-friendly carousels
- React Hook Form - Form validation and handling
- Supabase
- PostgreSQL database
- Real-time subscriptions
- Edge Functions
- Authentication
- File Storage
- Row Level Security
- Serverless Architecture - Scalable backend logic
- WebSocket - Real-time data streaming
- Grok (x.ai API) - Intelligent diagnostics
- Relevance AI - Agent orchestration
- Custom AI Pipelines - Proprietary analysis engine
- AI Supervisor - Automated decision making
- Node.js (v18 or higher) - Install with nvm
- npm or yarn package manager
- Git for version control
- Clone the repository
git clone <YOUR_GIT_URL>
cd <YOUR_PROJECT_NAME>- Install dependencies
npm install
# or
yarn install- Set up environment variables
The .env file is auto-configured by Lovable Cloud and includes:
VITE_SUPABASE_URL=<your-supabase-url>
VITE_SUPABASE_PUBLISHABLE_KEY=<your-publishable-key>
VITE_SUPABASE_PROJECT_ID=<your-project-id>- Start the development server
npm run dev- Open your browser
The application will be available at the URL shown in your terminal (typically
http://localhost:5173)
superai/
βββ src/
β βββ components/ # React components
β β βββ landing/ # Landing page sections
β β β βββ HeroSection.tsx
β β β βββ ProblemVisionSection.tsx
β β β βββ LiveSimulation.tsx
β β β βββ FeaturesSection.tsx
β β β βββ ImpactSection.tsx
β β β βββ ArchitectureSection.tsx
β β β βββ TeamSection.tsx
β β β βββ Footer.tsx
β β βββ ui/ # shadcn/ui components
β β βββ AgentCard.tsx # Agent status card
β β βββ AgentDetailsModal.tsx
β β βββ IncidentModal.tsx
β β βββ SelfHealingModal.tsx
β β βββ LogTerminal.tsx
β β βββ Navigation.tsx
β β βββ StatusBadge.tsx
β β βββ SupervisorFeed.tsx
β βββ pages/ # Page components
β β βββ Landing.tsx # Landing page
β β βββ Index.tsx # Dashboard (main app)
β β βββ Agents.tsx # Agents management
β β βββ Analytics.tsx # Analytics view
β β βββ Incidents.tsx # Incidents list
β β βββ Settings.tsx # Settings page
β β βββ CreateAgent.tsx # Create new agent
β βββ hooks/ # Custom React hooks
β β βββ useAgents.tsx # Agent CRUD operations
β β βββ useRelevanceAgents.tsx
β β βββ useAISupervisor.tsx
β βββ data/ # Mock data
β β βββ mockData.ts
β β βββ extendedMockData.ts
β βββ types/ # TypeScript types
β β βββ agent.ts
β βββ integrations/ # External integrations
β β βββ supabase/
β β βββ client.ts # Supabase client
β β βββ types.ts # Auto-generated types
β βββ lib/ # Utility functions
β β βββ utils.ts
β βββ App.tsx # Main app component
β βββ main.tsx # Entry point
β βββ index.css # Global styles & design system
βββ supabase/
β βββ functions/ # Edge Functions
β β βββ relevance-agents/
β β βββ supervisor-diagnose/
β βββ config.toml # Supabase configuration
βββ public/ # Static assets
βββ index.html # HTML template
βββ tailwind.config.ts # Tailwind configuration
βββ vite.config.ts # Vite configuration
βββ package.json # Dependencies
Stores AI agent configurations and metadata
- id (uuid, primary key)
- name (text, not null)
- icon (text)
- status (text) - 'healthy' | 'warning' | 'failed'
- description (text, not null)
- category (text)
- model (text)
- data_source (text)
- response_style (text)
- success_rate (numeric)
- uptime (numeric)
- avg_response_time (integer)
- total_requests (integer)
- last_issue (text)
- version (text)
- goal_metric (text)
- alert_sensitivity (text)
- owner (text)
- fix_permissions (text)
- self_monitoring (boolean)
- configuration (jsonb)
- created_at (timestamp)
- updated_at (timestamp)Tracks detected issues and their resolution
- id (uuid, primary key)
- agent_id (uuid)
- agent_name (text, not null)
- title (text, not null)
- description (text)
- severity (text) - 'low' | 'medium' | 'high' | 'critical'
- status (text) - 'open' | 'resolving' | 'resolved'
- impact (text)
- root_cause (text)
- proposed_fix (jsonb)
- confidence (numeric)
- logs (jsonb)
- detected_at (timestamp)
- resolved_at (timestamp)Historical performance metrics for agents
- id (uuid, primary key)
- agent_id (uuid)
- success_rate (numeric)
- response_time (integer)
- requests (integer)
- timestamp (timestamp)Audit trail of supervisor actions
- id (uuid, primary key)
- agent_id (uuid)
- action (text, not null)
- status (text) - 'success' | 'failed' | 'pending'
- details (text)
- timestamp (timestamp)Fetches and synchronizes agents from Relevance AI platform
AI-powered diagnostic analysis for incident root cause identification
SuperAI uses a comprehensive design system with semantic tokens:
- Primary - Midnight Blue (
hsl(220 85% 16%)) - Accent - Electric Cyan (
hsl(185 100% 52%)) - Purple - Neon Purple (
hsl(280 95% 62%)) - Success - Green (
hsl(142 76% 48%)) - Warning - Amber (
hsl(38 95% 52%)) - Destructive - Red (
hsl(0 88% 62%))
- Glassmorphism - Frosted glass UI elements
- Glow Effects - Cyan and purple neon glows
- Animations - Smooth transitions and micro-interactions
- Gradients - Multi-layer gradient overlays
- Shadows - Cinematic elevation shadows
- Headings - Large, bold, with gradient text effects
- Body - Clean, readable with proper hierarchy
- Mono - Terminal-style for logs and code
- Row Level Security (RLS) enabled on all tables
- Public read access for demonstration purposes
- Authenticated writes for production environments
- All sensitive keys stored in Supabase secrets
- No hardcoded credentials in source code
- Automatic injection via Lovable Cloud
- Edge Functions use service role keys
- CORS configured for allowed origins
- Rate limiting on external API calls
- Create a production build:
npm run build- Preview the production build:
npm run previewThe app can be deployed to any static hosting provider that supports modern web applications:
Vercel
npm run build
vercel --prodNetlify
npm run build
netlify deploy --prod --dir=distMake sure to configure your environment variables in your hosting provider's dashboard.
npm run testnpm run lintnpm run type-checknpm run buildAgent - An AI system being monitored (chatbot, analytics engine, etc.)
Supervisor - The AI that monitors and manages other agents
Incident - A detected issue with an agent requiring attention
Self-Healing - Automated remediation without human intervention
Performance History - Time-series data showing agent health trends
Fetch all agents
const { data: agents } = await supabase
.from("agents")
.select("*")
.order("created_at", { ascending: false });Create incident
const { data: incident } = await supabase
.from("incidents")
.insert({
agent_id: "uuid",
agent_name: "Chat Agent",
title: "High error rate detected",
severity: "high",
status: "open",
})
.select()
.single();Update agent status
const { data } = await supabase
.from("agents")
.update({ status: "healthy", success_rate: 97 })
.eq("id", agentId);We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Use TypeScript for type safety
- Follow the existing component structure
- Use semantic variable names
- Add comments for complex logic
- Ensure responsive design
- Test on multiple browsers
Build Errors
- Ensure Node.js version is 18+
- Clear
node_modulesand reinstall:rm -rf node_modules && npm install - Check for TypeScript errors:
npm run type-check
Database Connection Issues
- Verify
.envfile has correct Supabase credentials - Check network connectivity to Supabase
- Ensure RLS policies are configured correctly
Agent Not Updating
- Check browser console for errors
- Verify agent ID is valid UUID format
- Ensure database permissions are correct
For more help, see the Lovable Troubleshooting Guide.
- Real-time WebSocket updates for live agent monitoring
- Advanced ML models for predictive failure detection
- Multi-tenant support with organization management
- Custom alert channels (Slack, PagerDuty, etc.)
- Agent marketplace for pre-built configurations
- API endpoints for third-party integrations
- Mobile app for on-the-go monitoring
- Advanced cost tracking and optimization
This project is built with Lovable and is available for demonstration and educational purposes.
- Supabase - For the powerful backend infrastructure
- shadcn/ui - For the beautiful component library
- Tailwind CSS - For the utility-first styling system
- Radix UI - For accessible UI primitives
- Relevance AI - For agent integration capabilities
- x.ai - For Grok AI integration