React Dev Companion is an embeddable, zero-dependency developer tools panel for React and Next.js applications. It intercepts outgoing network requests in real-time, inspects runtime environments, and provides client-side visibility during development without relying on browser extensions.
- Real-Time API Interception: Monitors outgoing
window.fetchcalls and logs HTTP methods, request status, and target URLs. - Storage Inspector: View, inject, and delete keys across
localStorage,sessionStorage, andcookiesin real time. - Framework Agnostic Support: Compatible with React SPA setups (Vite, CRA) and SSR frameworks (Next.js client components).
- Non-Intrusive Overlay: Floating UI widget designed to stay out of the way of primary application elements.
- Zero Heavy Dependencies: Lightweight footprint focused on developer experience and minimal bundle impact.
- TypeScript Native: Fully typed with built-in
.d.tsdeclarations.
Install the package via npm, yarn, or pnpm:
npm install @kickd0wn/react-dev-companionOr using yarn:
yarn add @kickd0wn/react-dev-companionOr using pnpm:
pnpm add @kickd0wn/react-dev-companionImport and render the component within your application tree. It is recommended to load the component conditionally in development environments.
'use client';
import { DevCompanion } from '@kickd0wn/react-dev-companion';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
{process.env.NODE_ENV === 'development' && <DevCompanion />}
</body>
</html>
);
}import React from 'react';
import { DevCompanion } from '@kickd0wn/react-dev-companion';
export function App() {
return (
<div>
<MainContent />
{import.meta.env.DEV && <DevCompanion />}
</div>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
position |
'bottom-right' | 'bottom-left' |
'bottom-right' |
Position of the floating overlay trigger. |
React DevCompanion hooks into the global window.fetch object upon mounting, wrapping original request handlers with event emitters. Captured metrics are streamed directly into an isolated local state container to ensure application state remains completely decoupled from devtools inspection logic.
Contributions are welcome. Please read our guidelines below before submitting a Pull Request.
-
Fork and clone the repository:
git clone https://github.com/Kickz1nn/react-dev-companion.git cd react-dev-companion -
Install dependencies:
npm install
-
Run local build checks:
npm run build
This project enforces Conventional Commits. Commits are verified locally using Husky and Commitlint prior to stage completion.
Example commit formats:
feat: add localStorage inspection tabfix: handle fetch network failure edge casedocs: update setup guide in README
Distributed under the MIT License. See LICENSE for more information.