npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@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

  1. Install Dependencies

    cd dashboard
    npm install
  2. Environment Configuration Create .env file with:

    VITE_API_BASE_URL=http://localhost:3001
  3. Development Server

    bun run dev

    The dashboard will be available at http://localhost:5173

  4. Build for Production

    bun run build
  5. Type Checking

    bun run type-check
  6. Linting

    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 statistics
  • GET /api/analytics/events - Event data with filtering
  • GET /api/analytics/performance - Performance metrics
  • GET /api/analytics/channels - Channel activity data
  • GET /api/analytics/agents - Agent metrics
  • GET /api/analytics/export/{type} - Data export functionality

Channels API

  • GET /api/channels - List all channels
  • POST /api/channels - Create new channel
  • GET /api/channels/:id - Get channel details
  • GET /api/analytics/channels/:id/activity - Channel metrics

Context API

  • GET /api/channels/:id/context - Channel context data
  • POST /api/channels/:id/context - Create context entry
  • PATCH /api/channels/:id/context - Update/archive context

Documents API

  • GET /api/documents - List documents
  • POST /api/documents/upload - Upload documents
  • GET /api/documents/:id - Get document details

Validation API

  • GET /api/validation/stats - Validation system statistics
  • GET /api/validation/metrics - Real-time validation metrics
  • GET /api/validation/performance - Validation performance data
  • GET /api/validation/errors - Error prevention analytics
  • POST /api/validation/config - Update validation configuration

Auto-Correction API

  • GET /api/correction/stats - Auto-correction statistics
  • GET /api/correction/attempts - Correction attempt history
  • GET /api/correction/patterns - Learned correction patterns
  • GET /api/correction/success-rates - Correction success analytics

Optimization API

  • GET /api/optimization/bottlenecks - Performance bottleneck analysis
  • GET /api/optimization/recommendations - Optimization recommendations
  • GET /api/optimization/metrics - Performance optimization metrics
  • POST /api/optimization/auto-tune - Enable/configure auto-tuning

Prediction API

  • GET /api/prediction/accuracy - ML model accuracy metrics
  • GET /api/prediction/errors - Error prediction analytics
  • GET /api/prediction/risk-scores - Risk assessment data
  • GET /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

  1. Analytics Store (stores/analytics.ts)

    • Analytics stats, events, and chart data
    • Data export functionality
    • Auto-refresh capabilities
  2. Channels Store (stores/channels.ts)

    • Channel listing and management
    • Channel metrics and activity
    • Channel creation workflow
  3. Context Store (stores/context.ts)

    • Context entry management
    • CRUD operations for context data
    • Context statistics and filtering
  4. Documents Store (stores/documents.ts)

    • Document upload and management
    • File processing status
    • Document organization
  5. Auth Store (stores/auth.ts)

    • User authentication state
    • Profile management
    • JWT token handling
  6. Validation Store (stores/validation.ts)

    • Validation system health monitoring
    • Error prevention metrics
    • Validation performance analytics
    • Configuration management
  7. Correction Store (stores/correction.ts)

    • Auto-correction attempt tracking
    • Pattern learning progress
    • Correction success analytics
    • Error recovery insights
  8. 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)

  1. window.__MXF_CONFIG__.apiBaseUrl — set by /config.js, which the npx server generates from --api-url.
  2. VITE_API_BASE_URL — build-time env (for custom builds / Docker).
  3. 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 serve

The 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 . and git commit -m "message" after changes
  • Ensure TypeScript compilation passes before commits

🐛 Troubleshooting

Common Issues

  1. API Connection Errors

    • Verify backend server is running on port 3001
    • Check VITE_API_BASE_URL in .env file
    • Verify network connectivity
  2. Authentication Issues

    • Clear browser localStorage/sessionStorage
    • Check JWT token expiration
    • Verify magic link authentication setup
  3. Build Errors

    • Run bun run type-check for TypeScript errors
    • Ensure all dependencies are installed
    • Check for ESLint errors with bun run lint
  4. Performance Issues

    • Check browser developer tools Network tab
    • Verify API response times
    • Check for JavaScript errors in console

📞 Support

For issues and questions:

  1. Check the troubleshooting section above
  2. Review the main project README at repository root
  3. Check the CHANGELOG.md for recent updates
  4. 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