MCPcopy Index your code
hub / github.com/code-forge-io/react-router-devtools

github.com/code-forge-io/react-router-devtools @v6.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v6.2.1 ↗ · + Follow
854 symbols 1,973 edges 343 files 10 documented · 1% 58 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-router-devtools

GitHub Repo stars npm GitHub npm npm GitHub top language

react-router-devtools

react-router-devtools is an open-source package designed to enhance your development workflow when working with React Router v7+, a full-stack JavaScript framework for building web applications. This package provides a user-friendly interface consisting of three tabs, Active Page, Terminal, Settings, Errors, Network and Routes, along with a side tab called Timeline. With react-router-devtools, you can efficiently monitor and manage various aspects of your React Router v7+ projects, including page information, URL parameters, server responses, loader data, routes, and more.

You can also track down hydration issues with the Errors tab and view your routes in a tree/list view with the Routes tab.

Network tab is a powerful tool for tracing all your network requests and see what's happening under the hood. You can see all the requests in real-time, with the ability to see if they are aborted, if they are cached, and if they are successful or not.

Remix Development Tools

This repository used to be called remix-development-tools, but we decided to rename it to react-router-devtools to better reflect the fact that it's a package for React Router v7+ and not just for Remix.

If you're looking for the old version of this package, you can find it here.

And the detailed documentation can be found here.

Documentation

Detailed documentation can be found here:

https://remix-development-tools.fly.dev/

Getting Started

  1. Install the package via npm:
npm install react-router-devtools -D
import { reactRouterDevTools } from "react-router-devtools";

// Add it to your plugins array in vite.config.js
export default defineConfig({
  plugins: [reactRouterDevTools(), reactRouter(), tsconfigPaths()],
});

That's it, you're done!

CloudFlare

If you're trying to spin it up on CF, try adding this to your optimizeDeps in your vite.config.js file:

optimizeDeps: {
  include: [
    // other optimized deps
  ],
},

Support

If you like react-router-devtools consider starring the repository or donating via Github sponsors. If you have any questions, comments, or suggestions, please feel free to reach out!

License

react-router-devtools is open-source software released under the MIT License.

Acknowledgments

React Router Devtools was inspired by the React Router v7 and aims to enhance the development experience for React Router v7+ users.

Feel free to explore React Router Devtools, and we hope it significantly improves your React Router development process. If you encounter any issues or have suggestions for enhancements, please don't hesitate to open an issue on our GitHub repository. Happy Remixing!

Thanks

Thanks to all the contributors on this project and the support to the community. You guys are awesome!


Devoted to my loving wife and my little late bird Kiira who helped me initially build out these tools by keeping me company and being my rubber duck, she will forever be my best friend.

In loving memory of my late Grandfather, who taught me to always be curious, never stop learning, and to always be kind to others, and my late Grandmother who always encouraged me to learn new things, and stand up for the things I believe in.

Extension points exported contracts — how you extend this code

TestContext (Interface)
(no doc)
packages/react-router-devtools/test/setup.tsx
IconProps (Interface)
(no doc)
plugins/icon-library/icon-library.tsx
Window (Interface)
(no doc)
docs/app/env.server.ts
TestContext (Interface)
(no doc)
docs/tests/setup.browser.tsx
AppLoadContext (Interface)
(no doc)
test-apps/custom-server/server/app.ts
ButtonProps (Interface)
(no doc)
test-apps/react-router-vite/app/components/Button.tsx
LoaderFunctionArgs (Interface)
(no doc)
packages/react-router-devtools/src/index.ts
IconLinkProps (Interface)
(no doc)
docs/app/components/icon-link.tsx

Core symbols most depended-on inside this repo

addRouteTypes
called by 70
packages/react-router-devtools/src/vite/utils/codegen.ts
cn
called by 69
docs/app/utils/css.ts
addSourceToJsx
called by 48
packages/react-router-devtools/src/vite/utils/inject-source.ts
augmentDataFetchingFunctions
called by 46
packages/react-router-devtools/src/vite/utils/data-functions-augment.ts
injectContext
called by 43
packages/react-router-devtools/src/vite/utils/inject-context.ts
t
called by 37
packages/react-router-devtools/src/client/styles/use-styles.ts
augmentMiddlewareFunctions
called by 36
packages/react-router-devtools/src/vite/utils/middleware-augment.ts
cx
called by 35
packages/react-router-devtools/src/client/styles/use-styles.ts

Shape

Function 749
Interface 103
Enum 2

Languages

TypeScript100%

Modules by API surface

packages/react-router-devtools/src/vite/plugin.tsx17 symbols
packages/react-router-devtools/src/vite/utils/codegen.ts14 symbols
packages/react-router-devtools/src/server/utils.ts14 symbols
docs/scripts/generate-docs.ts14 symbols
packages/react-router-devtools/src/external/react-json-view/types/index.tsx13 symbols
docs/app/components/code-block/code-block-syntax-highlighter.ts13 symbols
docs/app/utils/version-resolvers.ts11 symbols
packages/react-router-devtools/src/vite/utils/inject-source.ts10 symbols
packages/react-router-devtools/src/client/components/network-tracer/NetworkWaterfall.tsx10 symbols
test-apps/react-router-vite/app/routes/correct.tsx9 symbols
test-apps/react-router-vite/app/routes/_layout.one_more_time.tsx9 symbols
test-apps/react-router-vite/app/routes/_layout.final_test.tsx9 symbols

For agents

$ claude mcp add react-router-devtools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact