Scans your web app's API layer. Finds waterfalls, duplicate fetches, N+1 patterns, and missing cache. Drop-in DevTools for Vue & React. Generates framework-aware fix code.
13 audit rules catch the API anti-patterns killing your app performance
<FluxDevTools /> component for Vue 3 and React. Floating panel with live score, violations, and request feed. Integrates with TanStack Query & SWR.No config, no setup, no API key
npx flux-scan against any URL, or add <FluxDevTools /> to your Vue/React app for live monitoring.Same code, different scores. A waterfall costs 3x more on Jio 4G than WiFi.
Choose your setup — CLI, Vue DevTools, React DevTools, or programmatic SDK
# Zero install — scan any URL, get HTML report $ npx flux-scan https://your-app.com -o report.html # Test with Indian mobile network scoring $ npx flux-scan https://your-app.com --network jio-4g -o report.html # Authenticated apps — login manually, browse, press Enter $ npx flux-scan https://admin.your-app.com --no-headless --interact # JSON output for CI/CD pipelines (exit code 1 if score < 50) $ npx flux-scan https://staging.your-app.com -f json # Stress test on slow networks $ npx flux-scan https://your-app.com -n bsnl-2g -o slow-report.html
# Step 1: Install $ npm install @fluxiapi/vue # Step 2: Add one component to your App.vue <!-- App.vue --> <script setup> import { FluxDevTools } from '@fluxiapi/vue'; </script> <template> <RouterView /> <FluxDevTools force-show verbose network="jio-4g" /> </template> # That's it! A floating badge appears in the corner. # Click it to expand the panel. Press Ctrl+Shift+F to toggle. # Optional: With TanStack Vue Query import { wrapQueryClient } from '@fluxiapi/vue'; const queryClient = wrapQueryClient(new QueryClient()); # Optional: Use composables for custom UI import { useFluxScore, useFluxViolations } from '@fluxiapi/vue'; const score = useFluxScore(); // { overall, grade, color } const violations = useFluxViolations(); // RuleViolation[]
# Step 1: Install $ npm install @fluxiapi/react # Step 2: Add one component to your App.tsx import { FluxDevTools } from '@fluxiapi/react'; function App() { return ( <> <YourApp /> <FluxDevTools forceShow verbose network="jio-4g" /> </> ); } # That's it! Floating badge + expandable panel. # Optional: With TanStack Query import { wrapQueryClient } from '@fluxiapi/react'; const queryClient = wrapQueryClient(new QueryClient()); # Optional: With SWR import { fluxSWRMiddleware } from '@fluxiapi/react'; <SWRConfig value={{ use: [fluxSWRMiddleware] }}> # Optional: Use hooks for custom UI import { useFluxScore, useFluxViolations } from '@fluxiapi/react'; const { overall, grade } = useFluxScore();
# Step 1: Install the core SDK $ npm install @fluxiapi/scan # Step 2: Use programmatically import { FluxScanner, FluxAnalyzer, generateHtmlReport } from '@fluxiapi/scan'; // Scan const scanner = new FluxScanner({ duration: 60, network: 'jio-4g' }); scanner.start(); // ... user browses app ... const session = scanner.stop(); // Analyze const analyzer = new FluxAnalyzer({ network: 'jio-4g' }); const report = analyzer.analyze(session); // Output const html = generateHtmlReport(report); console.log(report.score.overall); // 38
FluxAPI fits into every stage of your development workflow
npx flux-scan https://staging.app.com -o report.html<FluxDevTools /> to your Vue or React app. See API health scores update in real-time as you develop. Catches issues the CLI can't — like component re-mounts and user interaction patterns.npx flux-scan https://admin.app.com --no-headless --interactnpx flux-scan https://app.com -n jio-4g -o jio.htmlnpx flux-scan https://staging.app.com -f jsonEvery option at a glance
-d, --duration <sec> Scan duration in seconds (default: 30) -n, --network <name> wifi | jio-4g | airtel-4g | airtel-3g | bsnl-2g | slow-3g -o, --output <file> Output file (.html or .json) -f, --format <fmt> console | html | json -s, --session <file> Analyze saved session JSON (skip live scan) --no-headless Show browser window during scan --interact Manual browse mode (press Enter to stop) -h, --help Show help -v, --version Show version EXIT CODES 0 Score >= 50 (pass) 1 Score < 50 (fail — useful for CI/CD) 2 Fatal error
One command. Sixty seconds. Copy-paste fixes.