@vibro/react-query-plugin
v0.5.0-alpha.0
Published
Vibro plugin for TanStack Query: exposes query-cache state to AI agents via the react_query_cache_read tool.
Maintainers
Readme
@vibro/react-query-plugin
Vibro plugin for TanStack Query: exposes query-cache state to AI agents via the react_query_cache_read tool.
Part of Vibro — agent-facing devtools for Vite apps. Requires
@vibro/bro in the same project;
the target library peer dependency is optional.
Install
pnpm add -D @vibro/react-query-pluginUsage
Register the plugin in vite.config.ts:
import {vibroPlugin} from '@vibro/bro';
import {reactQueryPlugin} from '@vibro/react-query-plugin';
vibroPlugin({plugins: [reactQueryPlugin()]});Register your QueryClient in app code:
/// <reference types="@vibro/react-query-plugin/client" />
const queryClient = new QueryClient();
Vibro?.tools.tanstackQuery?.registerQueryClient(queryClient);
// several clients: registerQueryClient(adminClient, {id: 'admin'})Tools
react_query_cache_read— snapshot of the query cache (all queries or filtered);includeData: falsereturns metadata only.
License
Closed pre-release — see LICENSE. Installing the published package and running it unmodified, to evaluate it, is the whole of the grant. Redistribution, modification, reverse engineering and production or commercial use are not permitted.
