reqwise-core 1.1.1 → 1.1.2
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/README.md +26 -30
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# @reqwise
|
|
1
|
+
# @reqwise-core 🚀
|
|
2
2
|
|
|
3
|
-
> **Reqwise
|
|
3
|
+
> **Reqwise** is a powerful developer tool npm package that captures, logs, and visualizes HTTP API requests (Axios/Fetch) within React and vanilla JavaScript applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It operates like a mini **Postman** or **Chrome DevTools Network** panel embedded directly inside your application. Through a floating aside panel, developers can inspect requests in real-time, browse page history, and send manual test requests with a single click.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
## ✨
|
|
9
|
+
## ✨ Features
|
|
10
10
|
|
|
11
|
-
- 🔄 **
|
|
12
|
-
- 💾 **
|
|
13
|
-
- 🛡️ **
|
|
14
|
-
- 🌍 **
|
|
15
|
-
- ⌨️ **Hotkey
|
|
11
|
+
- 🔄 **Full HTTP Interception:** Automatically logs all payloads (method, url, body, headers, duration, response) passing through `ReqwiseClient`.
|
|
12
|
+
- 💾 **Persistence:** Stores requests securely in `localStorage` (under the `reqwise_log` key), keeping data intact even after page reloads.
|
|
13
|
+
- 🛡️ **Security Masking:** Built-in support to obfuscate sensitive data via `maskHeaders` (e.g., Authorization) and `maskFields` (e.g., password).
|
|
14
|
+
- 🌍 **Internationalization (i18n):** Out-of-the-box support for 15 languages powered by an intelligent `t(key, lang)` helper.
|
|
15
|
+
- ⌨️ **Hotkey Support:** Toggle panel visibility instantly using customizable keyboard shortcuts (e.g., `ctrl+shift+e`).
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
## 📦
|
|
19
|
+
## 📦 Installation
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Add the core package to your project using `npm` or `pnpm`:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install @reqwise
|
|
25
|
-
#
|
|
26
|
-
pnpm add @reqwise
|
|
24
|
+
npm install @reqwise-core
|
|
25
|
+
# or
|
|
26
|
+
pnpm add @reqwise-core
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
|
-
## 🚀
|
|
31
|
+
## 🚀 Architecture Flow
|
|
32
32
|
|
|
33
|
-
Reqwise
|
|
33
|
+
Reqwise acts as a seamless bridge between your frontend application and the backend services:
|
|
34
34
|
|
|
35
|
-
front ➔ ReqwiseClient ➔ axios (
|
|
35
|
+
front ➔ ReqwiseClient ➔ axios (or fetch fallback) ➔ backend
|
|
36
36
|
|
|
37
|
-
1.
|
|
38
|
-
2.
|
|
39
|
-
3.
|
|
40
|
-
4.
|
|
41
|
-
5.
|
|
37
|
+
1. **Request Sent** ➔ Payload is captured and recorded in the `ReqwiseEntry` schema format.
|
|
38
|
+
2. **Execution** ➔ The actual HTTP network request is securely executed.
|
|
39
|
+
3. **Response Captured** ➔ HTTP status code, response data, and precise round-trip duration are logged.
|
|
40
|
+
4. **Synchronization** ➔ Entry is committed to `reqwise_log` in storage, and a custom DOM event `reqwise:update` is dispatched.
|
|
41
|
+
5. **UI Update** ➔ The injected `#reqwise-panel` layout refreshes immediately to reflect the new log.
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
-
## 🛠️
|
|
45
|
+
## 🛠️ Configuration Example
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Initialize and configure the core infrastructure using the `core.configure()` API method:
|
|
48
48
|
|
|
49
49
|
```typescript
|
|
50
|
-
import { core } from "@reqwise
|
|
50
|
+
import { core } from "@reqwise-core";
|
|
51
51
|
|
|
52
52
|
core.configure({
|
|
53
53
|
theme: "dark",
|
|
@@ -62,10 +62,6 @@ core.configure({
|
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
65
|
-
##
|
|
66
|
-
|
|
67
|
-
Bu layihə **RDA (Reqwise Development Agent)** adlı xüsusi bir AI arxitekturası tərəfindən idarə olunur və inkişaf etdirilir. RDA layihənin struktur bütövlüyünü qorumaq, `.b64.txt` kimi böyük faylların bundle-a girməsinin qarşısını almaq (`/bundle-check`) və ciddi isimləndirmə qaydalarına riayət etmək üçün xüsusi əmrlərə (`/status`, `/fix`, `/checklist`) malikdir.
|
|
68
|
-
|
|
69
|
-
## 📄 Lisenziya
|
|
65
|
+
## 📄 License
|
|
70
66
|
|
|
71
67
|
MIT © Alizadeh
|
package/package.json
CHANGED