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

@fluxiapi/vue

v0.3.3

Published

Vue DevTools for FluxAPI — live API health monitoring with Vue Query & Pinia integration

Readme

@fluxiapi/vue

Drop-in Vue DevTools for FluxAPI. Live API health monitoring for Vue 3 and Nuxt apps with TanStack Vue Query integration.

Installation

npm install @fluxiapi/vue

Requirements

  • Vue >= 3.3 (Composition API required)
  • @fluxiapi/scan — installed automatically as a dependency

Optional

# For TanStack Vue Query integration
npm install @tanstack/vue-query

Quick Start

Option 1: Just add the component (simplest)

<script setup>
import { FluxDevTools } from '@fluxiapi/vue';
</script>

<template>
  <RouterView />
  <FluxDevTools />
</template>

That's it. A floating badge appears in the corner showing your live API health score. Click to expand the full panel.

Option 2: Use the Vue Plugin (recommended for larger apps)

// main.ts
import { createApp } from 'vue';
import { FluxPlugin } from '@fluxiapi/vue';
import App from './App.vue';

const app = createApp(App);
app.use(FluxPlugin, { network: 'jio-4g', autoStart: true, verbose: true });
app.mount('#app');

Then in any component:

<script setup>
import { FluxDevTools } from '@fluxiapi/vue';
</script>

<template>
  <FluxDevTools />
</template>

Option 3: With TanStack Vue Query

// main.ts
import { createApp } from 'vue';
import { VueQueryPlugin, QueryClient } from '@tanstack/vue-query';
import { FluxPlugin, wrapQueryClient } from '@fluxiapi/vue';

const queryClient = wrapQueryClient(new QueryClient({
  defaultOptions: { queries: { staleTime: 30_000 } },
}));

const app = createApp(App);
app.use(VueQueryPlugin, { queryClient });
app.use(FluxPlugin);
app.mount('#app');

<FluxDevTools /> Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | position | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'bottom-right' | Badge position | | network | string | 'wifi' | Network profile for scoring | | analysisInterval | number | 3000 | Re-analysis interval (ms) | | autoStart | boolean | true | Auto-start scanning on mount | | defaultOpen | boolean | false | Start with panel expanded | | verbose | boolean | false | Console debug logging | | forceShow | boolean | false | Show in production mode | | shortcut | string \| null | 'ctrl+shift+f' | Keyboard toggle shortcut |


Composables

Use composables in your own components to access scan data:

<script setup>
import { useFluxScore, useFluxViolations, useFluxScanning } from '@fluxiapi/vue';

const score = useFluxScore();
const violations = useFluxViolations({ severity: 'critical' });
const { scanning, elapsed, start, stop } = useFluxScanning();
</script>

<template>
  <div :style="{ color: score.color }">
    Score: {{ score.overall }} ({{ score.grade }})
    · {{ violations.length }} critical issues
    · {{ elapsed }}s elapsed
  </div>
  <button @click="scanning ? stop() : start()">
    {{ scanning ? 'Stop' : 'Start' }} Scan
  </button>
</template>

Available Composables

| Composable | Returns | Description | |------------|---------|-------------| | useFluxScore() | ComputedRef<{ overall, grade, efficiency, caching, patterns, color }> | Current API health score | | useFluxViolations(filter?) | ComputedRef<RuleViolation[]> | Active violations | | useFluxRequests(filter?) | ComputedRef<FluxRequestRecord[]> | Captured requests | | useFluxReport() | ComputedRef<FluxReport \| null> | Full analysis report | | useFluxScanning() | { scanning, elapsed, requestCount, start, stop, reset } | Scan lifecycle control | | useFluxState() | { state: Ref<FluxState>, bridge } | Full reactive state + bridge | | useFluxBridge() | ScannerBridge | Low-level bridge access |


Usage with Nuxt

Plugin file

// plugins/fluxapi.client.ts
import { FluxPlugin } from '@fluxiapi/vue';

export default defineNuxtPlugin((nuxtApp) => {
  if (process.dev) {
    nuxtApp.vueApp.use(FluxPlugin, {
      network: 'jio-4g',
      verbose: true,
    });
  }
});

In your layout

<!-- layouts/default.vue -->
<script setup>
import { FluxDevTools } from '@fluxiapi/vue';
</script>

<template>
  <slot />
  <FluxDevTools v-if="$config.public.dev" />
</template>

Usage with iTax V2 / Laravel + Vue

Add to your main Vue entry:

// resources/js/app.ts
import { createApp } from 'vue';
import { FluxPlugin } from '@fluxiapi/vue';
import App from './App.vue';

const app = createApp(App);

// Only in development
if (import.meta.env.DEV) {
  app.use(FluxPlugin, {
    network: 'jio-4g',  // Test with Indian network conditions
    verbose: true,
  });
}

app.mount('#app');

Then in your root component:

<!-- App.vue -->
<script setup>
import { FluxDevTools } from '@fluxiapi/vue';
const isDev = import.meta.env.DEV;
</script>

<template>
  <RouterView />
  <FluxDevTools v-if="isDev" force-show />
</template>

Now when you browse iTax — every Axios/fetch call to your Laravel API gets captured and scored in real-time.


What the Panel Shows

Overview Tab

  • API health score gauge (0-100) with A+/B/C/F grade
  • Category breakdown: ⚡ Efficiency / 💾 Caching / 🔄 Patterns
  • Stats cards: critical issues, warnings, total API calls
  • Impact banner: time saveable, requests eliminable
  • Top 3 issues at a glance

Violations Tab

  • All violations with severity indicators (🔴 critical, 🟡 warning, 🔵 info)
  • Rule ID badges (E1, E2, E3, C1, P1, etc.)
  • Impact pills showing time/requests/bandwidth savings
  • Expandable: description, affected endpoints, fix code

Requests Tab

  • Live request feed (newest first)
  • Method badges (GET/POST/PUT/DELETE)
  • Status codes with color coding
  • Duration with performance coloring (green < 200ms < orange < 500ms < red)

13 Rules Detected

| Category | Rules | |----------|-------| | ⚡ Efficiency | E1 Waterfalls, E2 Duplicates, E3 N+1, E4 Over-fetching, E5 Batchable | | 💾 Caching | C1 No Cache, C2 Under-Caching, C3 Over-Caching, C4 Missing Revalidation | | 🔄 Patterns | P1 Missing Prefetch, P2 Unnecessary Polling, P3 No Error Recovery, P4 Uncompressed |


License

MIT