@mxf-dev/dashboard
v1.0.0
Published
MXF Framework Dashboard — Vue 3 + Vuetify web UI. Run it against any MXF server with `npx @mxf-dev/dashboard --api-url <server>`.
Downloads
70
Readme
MXF Dashboard
⚠️ Status: In Development - The MXF Dashboard is currently under active development. Some features may be incomplete or subject to change.
Overview
The MXF Dashboard is a modern, responsive web application built with Vue 3, TypeScript, and Vuetify. It provides a comprehensive management interface for the Model Exchange Framework (MXF), enabling users to manage channels, agents, documents, analytics, and context data through an intuitive dashboard interface.
🚀 Features
Core Functionality
- Channel Management: Create, view, and manage channels with real-time metrics
- Agent Monitoring: View agent performance and lifecycle management
- Document Management: Upload, organize, and manage documents across channels
- Context Management: Handle channel context data with full CRUD operations
- Analytics Dashboard: Real-time analytics with charts, metrics, and data export
- User Account Management: Profile management with magic link authentication
- Validation Analytics: Monitor validation success rates, error prevention, and system health
- Auto-Correction Dashboard: Track correction attempts, success patterns, and learning progress
- Performance Optimization: View bottlenecks, optimization recommendations, and system tuning
- Error Prediction Monitoring: ML model accuracy, prediction effectiveness, and risk assessment
Technical Highlights
- Full Backend Integration: Complete backend API integration with zero mock data
- Real-time Data: Live updates from backend analytics and metrics
- Error Handling: Comprehensive error handling with user-friendly feedback
- Loading States: Professional loading indicators and skeleton loaders
- Responsive Design: Mobile-first responsive design with Vuetify components
- Type Safety: Full TypeScript integration throughout the application
🏗️ Architecture
Frontend Stack
- Vue 3: Composition API with
<script setup>pattern - TypeScript: Full type safety and modern JavaScript features
- Vuetify 3: Material Design component library
- Pinia: State management for reactive data handling
- Vue Router: Client-side routing and navigation
- Axios: HTTP client for API communication
- Vite: Fast development server and build tool
Project Structure
dashboard/
├── src/
│ ├── components/ # Reusable Vue components
│ ├── layouts/ # Layout components
│ ├── plugins/ # Vuetify and other plugin configurations
│ ├── router/ # Vue Router configuration
│ ├── stores/ # Pinia stores for state management
│ │ ├── analytics.ts # Analytics data and charts
│ │ ├── auth.ts # Authentication state
│ │ ├── channels.ts # Channel management
│ │ ├── context.ts # Context data management
│ │ ├── documents.ts # Document management
│ │ ├── validation.ts # Validation system monitoring
│ │ ├── correction.ts # Auto-correction analytics
│ │ └── optimization.ts # Performance optimization data
│ ├── views/ # Page components
│ │ ├── analytics/ # Analytics pages (Data, Charts)
│ │ ├── channels/ # Channel pages (Context, Docs, Overview)
│ │ ├── validation/ # Validation monitoring pages
│ │ ├── correction/ # Auto-correction analytics pages
│ │ ├── optimization/ # Performance optimization pages
│ │ ├── Account.vue # User account management
│ │ ├── Analytics.vue # Analytics main page
│ │ ├── Channels.vue # Channels main page
│ │ ├── Validation.vue # Validation system dashboard
│ │ └── Dashboard.vue # Main dashboard page
│ ├── App.vue # Root application component
│ └── main.ts # Application entry point
├── public/ # Static assets
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── vite.config.ts # Vite build configuration
└── README.md # This documentation🔧 Development
Prerequisites
- Bun 1.1+ (recommended) or Node.js >= 18.0.0
- npm, yarn, or bun for package management
Getting Started
Install Dependencies
cd dashboard npm installEnvironment Configuration Create
.envfile with:VITE_API_BASE_URL=http://localhost:3001Development Server
bun run devThe dashboard will be available at
http://localhost:5173Build for Production
bun run buildType Checking
bun run type-checkLinting
bun run lint
🔌 API Integration
The dashboard integrates with the MXF backend API running on port 3001. All stores use real backend endpoints:
Analytics API
GET /api/analytics/stats- Analytics summary statisticsGET /api/analytics/events- Event data with filteringGET /api/analytics/performance- Performance metricsGET /api/analytics/channels- Channel activity dataGET /api/analytics/agents- Agent metricsGET /api/analytics/export/{type}- Data export functionality
Channels API
GET /api/channels- List all channelsPOST /api/channels- Create new channelGET /api/channels/:id- Get channel detailsGET /api/analytics/channels/:id/activity- Channel metrics
Context API
GET /api/channels/:id/context- Channel context dataPOST /api/channels/:id/context- Create context entryPATCH /api/channels/:id/context- Update/archive context
Documents API
GET /api/documents- List documentsPOST /api/documents/upload- Upload documentsGET /api/documents/:id- Get document details
Validation API
GET /api/validation/stats- Validation system statisticsGET /api/validation/metrics- Real-time validation metricsGET /api/validation/performance- Validation performance dataGET /api/validation/errors- Error prevention analyticsPOST /api/validation/config- Update validation configuration
Auto-Correction API
GET /api/correction/stats- Auto-correction statisticsGET /api/correction/attempts- Correction attempt historyGET /api/correction/patterns- Learned correction patternsGET /api/correction/success-rates- Correction success analytics
Optimization API
GET /api/optimization/bottlenecks- Performance bottleneck analysisGET /api/optimization/recommendations- Optimization recommendationsGET /api/optimization/metrics- Performance optimization metricsPOST /api/optimization/auto-tune- Enable/configure auto-tuning
Prediction API
GET /api/prediction/accuracy- ML model accuracy metricsGET /api/prediction/errors- Error prediction analyticsGET /api/prediction/risk-scores- Risk assessment dataGET /api/prediction/anomalies- Anomaly detection results
Authentication
- JWT tokens handled automatically via Axios interceptors
- Magic link authentication (no password management)
🎨 UI/UX Features
Design System
- Material Design 3: Modern Google Material Design principles
- Consistent Theming: Unified color scheme and typography
- Responsive Layout: Adapts to mobile, tablet, and desktop
- Dark/Light Mode: Theme switching support
User Experience
- Loading States: Skeleton loaders and progress indicators
- Error Handling: User-friendly error messages with snackbar notifications
- Data Export: CSV export functionality for analytics data
- Real-time Updates: Auto-refresh capabilities for live data
- Form Validation: Client-side validation with clear error feedback
📊 State Management
Pinia Stores
Analytics Store (
stores/analytics.ts)- Analytics stats, events, and chart data
- Data export functionality
- Auto-refresh capabilities
Channels Store (
stores/channels.ts)- Channel listing and management
- Channel metrics and activity
- Channel creation workflow
Context Store (
stores/context.ts)- Context entry management
- CRUD operations for context data
- Context statistics and filtering
Documents Store (
stores/documents.ts)- Document upload and management
- File processing status
- Document organization
Auth Store (
stores/auth.ts)- User authentication state
- Profile management
- JWT token handling
Validation Store (
stores/validation.ts)- Validation system health monitoring
- Error prevention metrics
- Validation performance analytics
- Configuration management
Correction Store (
stores/correction.ts)- Auto-correction attempt tracking
- Pattern learning progress
- Correction success analytics
- Error recovery insights
Optimization Store (
stores/optimization.ts)- Performance bottleneck analysis
- Optimization recommendation management
- Auto-tuning configuration
- System performance metrics
🔒 Security
Authentication
- Magic Link Authentication: Secure, passwordless authentication
- JWT Tokens: Automatic token handling and refresh
- Route Protection: Protected routes requiring authentication
- Session Management: Automatic logout on token expiration
Data Security
- Input Validation: Client-side validation for all forms
- XSS Protection: Vue.js built-in XSS protection
- HTTPS Ready: Production builds support HTTPS deployment
- Environment Variables: Sensitive configuration via environment variables
🚀 Running & Deploying
The dashboard is a self-contained, independently deployable web app with no MXF dependencies of its own — it talks to an MXF server purely over HTTP + sockets. The server URL is resolved at run time, so one build works against any server.
Run it instantly (no clone, no build)
npx @mxf-dev/dashboard --api-url https://your-mxf-server.example.com
# then open http://localhost:4173 (override with --port)This serves the prebuilt UI pointed at the server you name. That's the simplest way for a developer to bring up the dashboard against their own MXF server.
How the server URL is resolved (at run time)
window.__MXF_CONFIG__.apiBaseUrl— set by/config.js, which thenpxserver generates from--api-url.VITE_API_BASE_URL— build-time env (for custom builds / Docker).http://localhost:3001— default.
Build it yourself (static site)
npm install
npm run build # → dist/ (a plain static bundle)
npm run serve -- --api-url https://your-mxf-server.example.com # optional local serveThe dist/ bundle hosts on Netlify, Vercel, GitHub Pages, S3 + CloudFront, or
any web server. To bake a fixed server URL into the build instead of using the
runtime npx flag, set VITE_API_BASE_URL before npm run build
(copy .env.example to .env).
Docker image (nginx)
docker build -t mxf-dashboard \
--build-arg VITE_API_BASE_URL=https://your-mxf-server.example.com \
.
docker run -p 8080:80 mxf-dashboard🧪 Testing
Development Testing
- Use the development server with
bun run dev - Test against local backend API on port 3001
- Browser developer tools for debugging
- Vue DevTools browser extension recommended
Production Testing
- Build and serve with
bun run build && bun run preview - Test all API integrations with production backend
- Verify responsive design across devices
- Test authentication flows end-to-end
📝 Contributing
Code Style
- TypeScript: All code uses TypeScript with strict typing
- Vue 3 Composition API:
<script setup>pattern preferred - ESLint: Automated linting with TypeScript rules
- Arrow Functions: Required for all function declarations
- 4-Space Indentation: Consistent indentation throughout
Component Structure
Vue components should follow this order:
<script setup>
// Component logic
</script>
<template>
<!-- Component template -->
</template>
<style>
/* Component styles */
</style>Git Workflow
- Commit changes with descriptive messages
- Run
git add .andgit commit -m "message"after changes - Ensure TypeScript compilation passes before commits
🐛 Troubleshooting
Common Issues
API Connection Errors
- Verify backend server is running on port 3001
- Check
VITE_API_BASE_URLin.envfile - Verify network connectivity
Authentication Issues
- Clear browser localStorage/sessionStorage
- Check JWT token expiration
- Verify magic link authentication setup
Build Errors
- Run
bun run type-checkfor TypeScript errors - Ensure all dependencies are installed
- Check for ESLint errors with
bun run lint
- Run
Performance Issues
- Check browser developer tools Network tab
- Verify API response times
- Check for JavaScript errors in console
📞 Support
For issues and questions:
- Check the troubleshooting section above
- Review the main project README at repository root
- Check the CHANGELOG.md for recent updates
- Review API documentation for backend integration
📚 Key Features Explained
Channel Management
Create and manage communication channels where agents collaborate:
- Channel creation with custom settings
- Real-time channel metrics and activity
- Context data management per channel
- Document organization by channel
Agent Monitoring
Track and manage AI agents across the framework:
- Agent lifecycle status (online, offline, idle)
- Performance metrics per agent
- Agent configuration and capabilities
- Tool usage analytics
Analytics Dashboard
Comprehensive analytics with multiple views:
- Overview: System-wide statistics and trends
- Charts: Visual representation of metrics
- Data Export: CSV export for external analysis
- Real-time Updates: Live data refresh capabilities
Validation System Monitoring
Track validation system health and effectiveness:
- Validation success rates
- Error prevention metrics
- Configuration management
- Performance analytics
Auto-Correction Analytics
Monitor auto-correction attempts and learning:
- Correction success patterns
- Pattern learning progress
- Error recovery insights
- Effectiveness tracking
Performance Optimization
System performance monitoring and tuning:
- Bottleneck identification
- Optimization recommendations
- Auto-tuning configuration
- Performance metrics
🔗 Related Documentation
- Main Project Documentation - Complete MXF documentation
- Getting Started Guide - Quick start tutorial
- Dashboard Documentation - Detailed dashboard guide
- API Documentation - Backend API reference
- SDK Documentation - TypeScript SDK reference
- CHANGELOG - Project change history
