Tree New Bee: Postman-Style API Debugging for DeepSeek Harness
Tree New Bee API Requests
A Postman-like HTTP interface debugging plugin running in DSH (DeepSeek Harness). The left sidebar provides a unified entry point, allowing you to construct requests, view responses, and manage collections/environments/history in the panel, with all data stored locally in the browser.
Plugin Information
- Package name:
@oakzhong/dsh-tree-new-bee-api-client - Version: 1.0.3
- Entry point: "Tree New Bee API Requests" in the left sidebar
- Type: Host + Client dual-part plugin (bundle)
Technologies Used
| Layer | Technology |
|---|---|
| Plugin framework | DSH Cordis bundle (cordis.patch.yml inserts Loader line) |
| Host part | ESM apply(ctx), registers /api/dsh-tree-new-bee-api-client/request route via ctx.connection.fetch.register |
| HTTP requests | Node.js built-in fetch + AbortController timeout control, zero third-party dependencies |
| Client part | Frontend module registered via window.__ModuleLoader__, React without JSX (React.createElement) |
| UI styles | Inline <style> in components (marked with data-plugin-css), uses DSH theme tokens, automatically adapts to light/dark themes |
| Internationalization | ctx.locale.register/ bind, bilingual Chinese and English (zh / en) |
| Local storage | Browser localStorage, collections, history, environments, custom headers all persisted |
| Data parsing | Standard URL / searchParams, JSON formatting via JSON.parse/stringify |
Features
1. Request Construction and Sending
- Supports seven methods:
GET / POST / PUT / PATCH / DELETE / HEAD / OPTIONS - URL input, timeout setting (seconds)
- Params: Key-value pairs automatically appended to the URL (with
URLencoding fallback) - Headers: Key-value pair editing
- Body: Raw text for POST/PUT/PATCH, supports JSON
- Press Enter or click "Send" to execute; the Host side returns status code, status text, response headers, response body, duration, and size
2. Response Viewing
- Status / duration / size metric cards, with status codes color-coded by success/failure
- Response body: toggle between "Formatted JSON" and raw text
- Response headers tab
- Oversized response truncation protection (4MB)
3. Collection Management (Postman-style tree)
- Supports nested folder hierarchy, folders can be expanded/collapsed
- Save requests to the current folder (breadcrumb shows path:
root / parent / child, each segment clickable for navigation) - Folders and requests can be renamed by double-clicking; deletion requires user confirmation (folders delete their contents)
- Collection fuzzy search: matches folder names, request names, methods, URLs, and automatically expands matched nodes
- Click a request to one-click backfill the editor
4. Environment Management (Variable Substitution)
- Multi-environment management, each environment has its own key-value variables
- Reference with
{{variableName}}, e.g.,{{baseUrl}}/users - Variables in URL / Params / Headers / Body are automatically replaced when sending; undefined variables remain as-is
- Top environment selector shows the variable names of the current environment
5. Common Request Headers
- Built-in 14 common headers (Accept, Content-Type, Authorization, User-Agent, etc.) with default values
- Multi-select: select all/deselect all, check multiple and insert at once, auto-deduplicate, fill empty lines
- Custom request headers: add your own common headers (name/default value/description), persisted, and deletable
6. History
- Last 100 requests (status, time, URL, error), click to backfill the complete request snapshot
- One-click clear history
Data Storage
All stored in browser localStorage, keys:
dsh-tree-new-bee-api-client.collection.v1— collection treedsh-tree-new-bee-api-client.history.v1— request historydsh-tree-new-bee-api-client.environments.v1— environment listdsh-tree-new-bee-api-client.activeEnv.v1— current environmentdsh-tree-new-bee-api-client.customHeaders.v1— custom request headers
Directory Structure
dsh-tree-new-bee-api-client/
├── package.json # manifest, bundle config, client injection declaration
├── cordis.patch.yml # Loader insertion line
├── index.js # Host part: HTTP request routing
├── client.js # Client part: complete UI and interaction
├── locale/
│ ├── zh.json # Chinese display metadata
│ └── en.json # English display metadata
├── icon.svg # plugin icon
└── README.md # this document
Installation and Usage
- Install via the plugin manager, entering: https://github.com/gougou1993/dsh-tree-new-bee-api-client.git or @oakzhong/dsh-tree-new-bee-api-client
Click "Tree New Bee API Requests" in the left sidebar
Enter the request URL and method, fill in Params / Headers / Body as needed
Click "Send" to view the response
Use collections to save common requests and environments to manage variables for different servers
Operation interface
Request header settings: