
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@sucoza/router-devtools-plugin
Advanced tools
DevTools plugin for routing debugging, navigation tracking, and parameter inspection
A comprehensive router debugging plugin for TanStack DevTools with live parameter editing, route tree visualization, and navigation timeline tracking.
npm install @sucoza/router-devtools-plugin
import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { useRouterDevTools } from '@sucoza/router-devtools-plugin';
function App() {
// Initialize router DevTools
useRouterDevTools();
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/users/:id" element={<UserProfile />} />
<Route path="/products" element={<ProductList />} />
</Routes>
</BrowserRouter>
);
}
import { initializeRouterDevTools } from '@sucoza/router-devtools-plugin';
// Initialize manually
const cleanup = initializeRouterDevTools();
// Clean up when needed
cleanup();
import { TanStackRouterDevtools } from '@tanstack/router-devtools';
import { RouterDevToolsPanel } from '@sucoza/router-devtools-plugin';
function MyDevTools() {
return (
<TanStackRouterDevtools>
<RouterDevToolsPanel />
</TanStackRouterDevtools>
);
}
RouterDevToolsPanelMain DevTools panel component with three tabs:
RouteTreeViewDisplays hierarchical route structure with:
RouteParameterInspectorLive parameter editing interface featuring:
NavigationTimelineNavigation history display with:
RouterStateManagerCentral state management for router DevTools.
import { RouterStateManager } from '@sucoza/router-devtools-plugin';
const stateManager = new RouterStateManager({
maxHistoryEntries: 50,
autoExpandRoutes: true,
enableLiveEditing: true
});
ReactRouterAdapterAdapter for React Router v6 integration.
import { createReactRouterAdapter } from '@sucoza/router-devtools-plugin';
const adapter = createReactRouterAdapter();
stateManager.registerAdapter(adapter);
IRouterAdapterInterface for creating custom router adapters:
interface IRouterAdapter {
getCurrentState(): NavigationState | null;
getRouteTree(): RouteInfo[];
subscribe(callback: (state: NavigationState) => void): () => void;
navigate(to: string, options?: NavigationOptions): void;
updateParams(params: Record<string, string>): void;
updateSearch(search: string): void;
getRouterType(): string;
}
RouteInfoRoute definition structure:
interface RouteInfo {
id: string;
path: string;
element?: string;
index?: boolean;
caseSensitive?: boolean;
children?: RouteInfo[];
loader?: boolean;
action?: boolean;
errorElement?: string;
handle?: Record<string, unknown>;
}
NavigationStateCurrent navigation state:
interface NavigationState {
location: {
pathname: string;
search: string;
hash: string;
state?: unknown;
key: string;
};
matches: RouteMatch[];
navigation: {
state: 'idle' | 'loading' | 'submitting';
// ... additional navigation properties
};
actionData?: unknown;
loaderData: Record<string, unknown>;
errors?: Record<string, Error>;
}
interface RouterDevToolsConfig {
maxHistoryEntries?: number; // Default: 50
autoExpandRoutes?: boolean; // Default: true
enableLiveEditing?: boolean; // Default: true
routeNameResolver?: (route: RouteInfo) => string;
paramValidator?: (params: Record<string, string>) => Record<string, string>;
}
Custom parameter validators can be provided:
import { commonValidators } from '@sucoza/router-devtools-plugin';
const config = {
paramValidator: (params) => {
const errors: Record<string, string> = {};
if (params.id && !commonValidators.uuid(params.id)) {
errors.id = 'Must be a valid UUID';
}
return errors;
}
};
Create adapters for other router libraries:
import { IRouterAdapter, NavigationState } from '@sucoza/router-devtools-plugin';
class MyRouterAdapter implements IRouterAdapter {
getCurrentState(): NavigationState | null {
// Implementation for your router
}
getRouteTree(): RouteInfo[] {
// Implementation for your router
}
// ... other interface methods
}
Listen to router events programmatically:
import { routerEventClient } from '@sucoza/router-devtools-plugin';
routerEventClient.on('router-navigation', (event) => {
console.log('Navigation event:', event.payload);
});
This package is written in TypeScript and includes comprehensive type definitions. No additional @types packages are required.
Contributions are welcome! Please see our contributing guide for details.
MIT
Part of the @sucoza TanStack DevTools ecosystem.
FAQs
DevTools plugin for routing debugging, navigation tracking, and parameter inspection
We found that @sucoza/router-devtools-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.