An open API service indexing awesome lists of open source software.

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.

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)