UNPKG

flowengine-n8n-workflow-builder

Version:

Build n8n workflows from text using AI. Connect to Claude, Cursor, or any LLM to generate and validate n8n workflows with expert knowledge and intelligent auto-fixing. Built by FlowEngine. Now with real node parameter schemas from n8n packages!

36 lines 1.13 kB
/** * Performance Analyzer - Workflow Performance Analysis * * Analyze workflows for performance bottlenecks, resource usage, * and optimization opportunities. */ import type { Workflow } from './generator.js'; export interface PerformanceMetrics { complexity: 'low' | 'medium' | 'high' | 'very-high'; estimatedExecutionTime: number; nodeCount: number; connectionCount: number; depth: number; parallelPaths: number; bottlenecks: BottleneckInfo[]; recommendations: string[]; } export interface BottleneckInfo { type: 'sequential-dependency' | 'excessive-branching' | 'heavy-computation' | 'external-api'; location: string; impact: 'low' | 'medium' | 'high'; description: string; } /** * Analyze workflow performance */ export declare function analyzePerformance(workflow: Workflow): PerformanceMetrics; /** * Calculate resource usage estimate */ export declare function estimateResourceUsage(workflow: Workflow): { memory: 'low' | 'medium' | 'high'; cpu: 'low' | 'medium' | 'high'; network: 'low' | 'medium' | 'high'; }; //# sourceMappingURL=analyzer.d.ts.map