@stacksleuth/frontend-agent
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

@stacksleuth/frontend-agent

StackSleuth Frontend Agent

StackSleuth Frontend Agent

npm version License: MIT TypeScript Node.js

🚀 What is StackSleuth Frontend Agent?

Advanced frontend performance monitoring for web applications - DOM event tracking, component lifecycle profiling, bundle analysis, memory leak detection, and real-time user interaction monitoring.

✨ Key Features

  • 🌐 DOM Event Tracking: Comprehensive user interaction monitoring
  • ⚛️ Component Lifecycle: Framework-agnostic component profiling
  • 📦 Bundle Analysis: JavaScript bundle performance optimization
  • 💾 Memory Leak Detection: Client-side memory usage monitoring
  • 📊 Core Web Vitals: LCP, FID, CLS, and other performance metrics
  • 🔄 Real-time Monitoring: Live performance insights
  • 📱 Mobile Optimization: Mobile-specific performance tracking
  • 🎯 User Journey Analysis: Complete user interaction flow tracking

📦 Installation

npm install @stacksleuth/frontend-agent
yarn add @stacksleuth/frontend-agent
pnpm add @stacksleuth/frontend-agent

🏁 Quick Start

import { FrontendAgent } from '@stacksleuth/frontend-agent';

// Initialize the agent
const agent = new FrontendAgent({
  enabled: true,
  trackUserInteractions: true,
  monitorWebVitals: true
});

// Start monitoring
agent.startMonitoring();

// Track custom events
agent.trackEvent('user-action', {
  action: 'button-click',
  component: 'LoginForm'
});

// Track page navigation
agent.trackPageView('/dashboard', {
  userId: '12345',
  referrer: document.referrer
});

📚 Resources

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

MIT License - see the LICENSE file for details.


WebsiteDocumentationNPM RegistryGitHub

Made with ⚡ by StackSleuth

Package Sidebar

Install

npm i @stacksleuth/frontend-agent

Weekly Downloads

1

Version

0.2.3

License

MIT

Unpacked Size

24.3 kB

Total Files

6

Last publish

Collaborators

  • jacklauoptimizer