@pixel-pulse/cache-brain-react-devtools
v1.0.2
Published
Visual debugger for cache-brain-react
Readme
✨ Features
- 🔍 Live Inspection: View every active cache entry, its TTL, and its current payload.
- ⏱ Lifecycle Tracking: Watch entries transition from
freshtostalein real-time. - ⚡️ Manual Purge: Clear specific keys or the entire registry with a single click.
- 🎨 Glassmorphism UI: A beautiful, non-intrusive overlay that fits any project.
⚠️ Beta Version Notice
This project is currently in v1.0.0-beta. We are actively refining the Registry Pulse logic and synchronization performance.
- Please report any bugs via GitHub Issues.
- Expect breaking changes until version 1.2.0.
📦 Installation
npm add @pixel-pulse/cache-brain-react-devtools🚀 Setup (React / Next.js)
Wrap your App
Simply import and place the CacheBrainDevTools component inside your CacheBrainProvider. It is recommended to only render this in development mode.
import { CacheBrainProvider } from "@pixel-pulse/cache-brain-react";
import { CacheBrainDevTools } from "@pixel-pulse/cache-brain-react-devtools";
export default function App({ children }) {
return (
<CacheBrainProvider client={client}>
{children}
{process.env.NODE_ENV === 'development' && <CacheBrainDevTools />}
</CacheBrainProvider>
);
}⚙️ Component Props
The CacheBrainDevTools component accepts the following props to control its visibility and behavior.
| Property | Type | Description | Default |
| :-------- | :-------- | :-------------------------------------------------------------------------- | :------ |
| enabled | boolean | When true, the DevTools UI is rendered and accessible in the application. | true |
🕹 Debugging Capabilities
Once the panel is open, you can interact directly with the Cache Brain engine:
- Search: Filter through hundreds of cache keys instantly.
- Edit: Manually override cached data to test UI edge cases.
- Invalidate: Force a revalidate call on any active key to test loading states.
- Export: Copy the current cache state as a JSON object for bug reporting.
🔗 Related Packages
- React / Next.js: @pixel-pulse/cache-brain-react
🛡 License
MIT License
Copyright (c) Lin Htet Aung (Liam) | 2026 Pixel Pulse Tech MM
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
