@vibro/tanstack-router-plugin
v0.5.0-alpha.0
Published
Vibro plugin for TanStack Router: route tree, current route and router-aware navigation for AI agents.
Maintainers
Readme
@vibro/tanstack-router-plugin
Vibro plugin for TanStack Router: route tree, current route and router-aware navigation for AI agents.
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/tanstack-router-pluginUsage
Register the plugin in vite.config.ts:
import {vibroPlugin} from '@vibro/bro';
import {tanstackRouterPlugin} from '@vibro/tanstack-router-plugin';
vibroPlugin({plugins: [tanstackRouterPlugin()]});Register your router in app code:
/// <reference types="@vibro/tanstack-router-plugin/client" />
const router = createRouter({routeTree});
Vibro?.tools.tanstackRouter?.registerRouter(router);Tools
tanstack_router_current_route— pathname, params, search and matches.tanstack_router_route_tree— the full route tree.tanstack_router_navigate— router-aware navigation that keeps SPA state.
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.
