DevTools Plugin
Devtools plugin allow you to connect your application to a HyperFlow. It allows you to inspect the requests and responses, inspect and modify cache and to control the requests.
Purpose
- Real-time Request Inspection: Monitor all incoming and outgoing requests and their corresponding responses within your application in real-time.
- Advanced Cache Management: Gain full control over the cache, allowing you to inspect, modify, and clear cached data on the fly.
- Interactive Request Control: Manage your application's data flow with options to cancel, pause, and resume requests directly from the devtools.
Install the Plugin
Install the ESLint plugin using npm or yarn:
- npm
- yarn
- pnpm
npm install @hyper-fetch/plugin-devtools
yarn add @hyper-fetch/plugin-devtools
pnpm add @hyper-fetch/plugin-devtools
Usage
Import the plugin and use it in your application:
Import
import { DevtoolsPlugin } from "@hyper-fetch/plugin-devtools"
import { DevtoolsPlugin } from "@hyper-fetch/plugin-devtools";
const client = new Client({ url: "http://localhost:3000" }).addPlugin(
DevtoolsPlugin({
appName: "My App",
}),
);
DevtoolsPluginOptions
| Name | Type | Description |
|---|---|---|
| appName | | Name of your application, it will be displayed in the HyperFlow app |
| debug | | Enable debug mode logs, so you can see what's happening in plugin |
| environment | | App environment indication |
| url | | URL of the HyperFlow server Needed only if you change the default port in the HyperFlow app |
HyperFlow
Learn more about HyperFlow devtools and how to use it