devtools.mp4
A modern, reusable, and customizable developer tools component for React applications. This package provides a clean UI for inspecting routes, managing packages, and handling assets and components in your project.
- Routes Inspection: View available application routes.
- Package Manager Integration: Install and manage dependencies (supports npm, pnpm, yarn, and bun).
- Assets Viewer: Browse and preview static assets in your project.
- Component Highlighter: Highlight and inspect React components.
- Dark Mode UI: Sleek, developer-friendly interface.
- Easy Integration: Add to your application layout or document structure.
To use DevTools, integrate it into your application's layout or document structure to ensure it's always available for development:
// src/components/Layout.tsx
import React from 'react';
import { DevTools } from '@/components';
const Layout = ({ children }: { children: React.ReactNode }) => {
return (
<div>
{children}
<DevTools />
</div>
);
};
export default Layout;// src/pages/_app.tsx
import React from 'react';
import type { AppProps } from 'next/app';
import Layout from '../components/Layout';
const MyApp = ({ Component, pageProps }: AppProps) => {
return (
<Layout>
<Component {...pageProps} />
</Layout>
);
};
export default MyApp;The main component that provides the developer tools interface.
The DevTools component does not require any props. Simply include it in your React component tree.
app/
├── src/
│ ├── index.ts # Entry point
│ ├── DevTools.tsx # Main DevTools component
│ ├── Tabs/ # Subcomponents for tabs
│ └── Components/ # Utility components
├── dist/ # Compiled files (after build)
├── package.json # Package metadata
├── tsconfig.json # TypeScript configuration
└── README.md # Documentation
- Node.js (>= 14.x)
- npm or yarn
npm run build: Compiles the source code to thedistdirectory.npm run clean: Removes thedistdirectory.npm publish: Publishes the package to npm.
This component detects and supports the following package managers:
npmyarnpnpmbun
Contributions are welcome! If you'd like to improve this package, feel free to submit a pull request or open an issue.
- Fork the repository.
- Clone your fork.
- Make changes and commit.
- Submit a pull request.
This project is licensed under the MIT License.
Developed by Ali Khalouf