https://github.com/harborclient/plugin-request-history
A HarborClient plugin that records every completed HTTP request and displays them in a Recent Requests sidebar section.
https://github.com/harborclient/plugin-request-history
Last synced: 9 days ago
JSON representation
A HarborClient plugin that records every completed HTTP request and displays them in a Recent Requests sidebar section.
- Host: GitHub
- URL: https://github.com/harborclient/plugin-request-history
- Owner: harborclient
- Created: 2026-06-25T01:03:01.000Z (12 days ago)
- Default Branch: main
- Last Pushed: 2026-06-25T02:57:54.000Z (11 days ago)
- Last Synced: 2026-06-25T03:08:49.015Z (11 days ago)
- Language: TypeScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Recent Requests
A HarborClient plugin that records every completed HTTP request and displays them in a **Recent Requests** sidebar section below Collections and Environments.
## Features
- Captures method, URL, status code, and timestamp for each send
- Collapsible sidebar section matching the built-in Collections / Environments pattern
- Persists history across app restarts (up to 100 entries)
- Click a row to open the request in the editor (collection requests reopen their saved tab; others open a draft with captured method, URL, headers, params, and body)
- Clear button to remove all recent entries
## Permissions
| Permission | Purpose |
| ---------- | ---------------------------------------------- |
| `ui` | Sidebar section and toasts |
| `storage` | Persist recent request list |
| `http` | Observe completed HTTP requests (main process) |
| `ipc` | Bridge session captures to the renderer |
## Limitations
- Only **completed** exchanges are recorded. Network-level failures (DNS, timeout, connection refused) are not captured because the host fires `onAfterSend` only when `result.error` is absent.
- HTTP error responses (4xx, 5xx) **are** recorded.
- Saved collection requests reopen only when that request is already loaded in memory or its collection is open in the sidebar cache.
## Development
```bash
pnpm install
pnpm build
```
Load the plugin folder via **Settings → Plugins → Load unpacked…**, then enable it.
For day-to-day work:
```bash
pnpm dev
HARBOR_PLUGINS_DEV=/path/to/harborclient-plugin-recent-requests pnpm dev
```
(in the HarborClient app checkout)