@pixel-pulse/cache-brain-vue-devtools 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ The MIT License (MIT)
2
+ Copyright © 2026 Lin Htet Aung (Liam)
3
+
4
+ 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:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ 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.
package/README.md ADDED
@@ -0,0 +1,152 @@
1
+ <div align="center">
2
+ <img src="https://cache-brain.netlify.app/og-image-nuxt.jpeg" width="100%" alt="Cache Brain - Smart Caching Engine"/>
3
+
4
+ <br/>
5
+
6
+ [![npm version](https://img.shields.io/npm/v/@pixel-pulse/cache-brain-vue-devtools.svg)](https://www.npmjs.com/package/@pixel-pulse/cache-brain-vue-devtools)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT)
8
+
9
+ <h3>Visual Debugger for Vue.js and Nuxt.js</h3>
10
+ <p align="center"><b>The visual engine room for Cache Brain.</b> Inspect, debug, and manipulate your cache state in real-time with a high-end interface inspired by modern design systems.</p>
11
+
12
+ <p>
13
+ <a href="https://cache-brain.netlify.app/"><b>Cache Brain</b></a> •
14
+ <a href="https://cache-brain.netlify.app/doc"><b>Documentation</b></a> •
15
+ <a href="https://cache-brain.netlify.app/doc/playground/core"><b>Server Lab</b></a> •
16
+ <a href="https://cache-brain.netlify.app/doc/playground/hook"><b>Client Lab</b></a> •
17
+ <a href="https://github.com/LinnHtetAungSE"><b>GitHub</b></a>
18
+ </p>
19
+ </div>
20
+
21
+ ---
22
+
23
+ ## ✨ Features
24
+
25
+ - **🔍 Live Inspection:** View every active cache entry, its TTL, and its current payload.
26
+ - **⏱ Lifecycle Tracking:** Watch entries transition from `fresh` to `stale` in real-time.
27
+ - **⚡️ Manual Purge:** Clear specific keys or the entire registry with a single click.
28
+ - **🎨 Glassmorphism UI:** A beautiful, non-intrusive overlay that fits any project.
29
+
30
+ ---
31
+
32
+ ## ⚠️ Beta Version Notice
33
+
34
+ This project is currently in **v1.0.0-beta**. We are actively refining the **Registry Pulse** logic and synchronization performance.
35
+
36
+ - Please report any bugs via GitHub Issues.
37
+ - Expect breaking changes until version **1.2.0**.
38
+
39
+ ---
40
+
41
+ ## 📦 Installation
42
+
43
+ ```bash
44
+ npm add @pixel-pulse/cache-brain-react-devtools
45
+ ```
46
+
47
+ ## 🚀 Setup (Vue 3 / Nuxt 3)
48
+
49
+ #### 1. In Vue 3 (Vite)
50
+ Place the component in your `App.vue`. It will automatically connect to the global client provided by the plugin.
51
+
52
+ ```Code snippet
53
+ <script setup>
54
+ import { CacheBrainDevTools } from "@pixel-pulse/cache-brain-vue-devtools";
55
+
56
+ // Only render in development
57
+ const isDev = import.meta.env.DEV;
58
+ </script>
59
+
60
+ <template>
61
+ <div id="app">
62
+ <router-view />
63
+ <CacheBrainDevTools v-if="isDev" />
64
+ </div>
65
+ </template>
66
+ ```
67
+ ---
68
+ #### 2. In Nuxt 3
69
+ You can add it to your `app.vue`. Nuxt handles the environment check globally.
70
+
71
+ ```Code snippet
72
+ <template>
73
+ <div>
74
+ <NuxtLayout>
75
+ <NuxtPage />
76
+ </NuxtLayout>
77
+
78
+ <CacheBrainDevTools v-if="$config.public.node_env === 'development'" />
79
+ </div>
80
+ </template>
81
+
82
+ <script setup>
83
+ import { CacheBrainDevTools } from "@pixel-pulse/cache-brain-vue-devtools";
84
+ </script>
85
+ ```
86
+ ---
87
+
88
+ ### ⚙️ Component Props
89
+
90
+ The `CacheBrainDevTools` component accepts the following props to control its visibility and behavior.
91
+
92
+ | Property | Type | Description | Default |
93
+ | :--------- | :--------- | :--------------------------------------------------------------------------------------------------- | :---------- |
94
+ | `enabled` | `boolean` | When `true`, the DevTools UI is rendered and accessible in the application. | `true` |
95
+
96
+ ---
97
+
98
+ ## 🕹 Debugging Capabilities
99
+
100
+ Once the panel is open, you can interact directly with the Cache Brain engine:
101
+ 1. **Search:** Filter through hundreds of cache keys instantly.
102
+ 2. **Edit:** Manually override cached data to test UI edge cases.
103
+ 3. **Invalidate:** Force a revalidate call on any active key to test loading states.
104
+ 3. **Export:** Copy the current cache state as a JSON object for bug reporting.
105
+
106
+ ---
107
+ ## 🔗 Related Packages
108
+
109
+ - **Vue / Nuxt 3:** [@pixel-pulse/cache-brain-vue](https://www.npmjs.com/package/@pixel-pulse/cache-brain-vue)
110
+
111
+ ---
112
+
113
+ ### 🛡 License
114
+
115
+ <details>
116
+ <summary>Distributed under the <b>MIT License</b>. Click to view full license.</summary>
117
+ <br />
118
+
119
+ ```text
120
+ MIT License
121
+
122
+ Copyright (c) Lin Htet Aung | 2026 Pixel Pulse Tech
123
+
124
+ Permission is hereby granted, free of charge, to any person obtaining a copy
125
+ of this software and associated documentation files (the "Software"), to deal
126
+ in the Software without restriction, including without limitation the rights
127
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
128
+ copies of the Software, and to permit persons to whom the Software is
129
+ furnished to do so, subject to the following conditions:
130
+
131
+ The above copyright notice and this permission notice shall be included in all
132
+ copies or substantial portions of the Software.
133
+
134
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
135
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
136
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
137
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
138
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
139
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
140
+ SOFTWARE.
141
+
142
+ ```
143
+ </details>
144
+
145
+ ---
146
+
147
+ <p align="center">
148
+ <br />
149
+ <b>Engineered by Pixel Pulse Tech</b><br />
150
+ <sub>Redefining state management for 2026.</sub>
151
+ </p>
152
+ ```
@@ -0,0 +1,24 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ size: {
5
+ type: (NumberConstructor | StringConstructor)[];
6
+ default: number;
7
+ };
8
+ className: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ size: {
14
+ type: (NumberConstructor | StringConstructor)[];
15
+ default: number;
16
+ };
17
+ className: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{}>, {
22
+ size: string | number;
23
+ className: string;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,15 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ enabled: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ enabled: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ enabled: boolean;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;