recker 1.0.21-next.fa763a6 → 1.0.22

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.
Files changed (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +1 -7
package/README.md CHANGED
@@ -77,6 +77,28 @@ const api = createClient({
77
77
  const user = await api.get('/users/:id', { params: { id: '123' } }).json();
78
78
  ```
79
79
 
80
+ ### Mini Client (Maximum Performance)
81
+
82
+ Need raw speed? Use `recker-mini` for ~2% overhead vs raw undici:
83
+
84
+ ```typescript
85
+ import { createMiniClient, miniGet } from 'recker/mini';
86
+
87
+ // Client instance
88
+ const fast = createMiniClient({ baseUrl: 'https://api.example.com' });
89
+ const data = await fast.get('/users').then(r => r.json());
90
+
91
+ // Or direct function (even faster)
92
+ const users = await miniGet('https://api.example.com/users').then(r => r.json());
93
+ ```
94
+
95
+ | Mode | Speed | Features |
96
+ |------|-------|----------|
97
+ | `recker-mini` | ~146µs (2% overhead) | Base URL, headers, JSON |
98
+ | `recker` | ~265µs (86% overhead) | Retry, cache, auth, hooks, plugins |
99
+
100
+ See [Mini Client documentation](./docs/http/18-mini-client.md) for more.
101
+
80
102
  ## Features
81
103
 
82
104
  | Feature | Description |
@@ -163,6 +185,7 @@ See [CLI Documentation](./docs/cli/01-overview.md) for more.
163
185
  ## Documentation
164
186
 
165
187
  - **[Quick Start](./docs/http/01-quickstart.md)** - Get running in 2 minutes
188
+ - **[Mini Client](./docs/http/18-mini-client.md)** - Maximum performance mode
166
189
  - **[CLI Guide](./docs/cli/01-overview.md)** - Terminal client documentation
167
190
  - **[API Reference](./docs/reference/01-api.md)** - Complete API documentation
168
191
  - **[Configuration](./docs/http/05-configuration.md)** - Client options
@@ -170,6 +193,7 @@ See [CLI Documentation](./docs/cli/01-overview.md) for more.
170
193
  - **[AI Integration](./docs/ai/01-overview.md)** - OpenAI, Anthropic, and more
171
194
  - **[Protocols](./docs/protocols/01-websocket.md)** - WebSocket, DNS, WHOIS
172
195
  - **[Mock Servers](./docs/cli/08-mock-servers.md)** - Built-in test servers
196
+ - **[Benchmarks](./docs/benchmarks.md)** - Performance comparisons
173
197
 
174
198
  ## License
175
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recker",
3
- "version": "1.0.21-next.fa763a6",
3
+ "version": "1.0.22",
4
4
  "description": "AI & DevX focused HTTP client for Node.js 18+",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -160,9 +160,7 @@
160
160
  "@types/ws": "^8.18.1",
161
161
  "@vitest/coverage-v8": "^3.2.4",
162
162
  "axios": "^1.13.2",
163
- "bent": "^7.3.12",
164
163
  "cardinal": "^2.1.1",
165
- "centra": "^2.7.0",
166
164
  "cheerio": "^1.0.0",
167
165
  "commander": "^14.0.0",
168
166
  "cross-fetch": "^4.1.0",
@@ -170,7 +168,6 @@
170
168
  "fastembed": "^2.0.0",
171
169
  "got": "^14.6.5",
172
170
  "husky": "^9.1.7",
173
- "hyperquest": "^2.1.3",
174
171
  "ky": "^1.14.0",
175
172
  "make-fetch-happen": "^15.0.3",
176
173
  "minipass-fetch": "^5.0.0",
@@ -178,14 +175,11 @@
178
175
  "needle": "^3.3.1",
179
176
  "node-fetch": "^3.3.2",
180
177
  "ora": "^9.0.0",
181
- "phin": "^3.7.1",
182
178
  "picocolors": "^1.1.1",
183
179
  "popsicle": "^12.1.2",
184
180
  "serve": "^14.2.5",
185
- "simple-get": "^4.0.1",
186
181
  "ssh2-sftp-client": "^12.0.1",
187
182
  "superagent": "^10.2.3",
188
- "tiny-json-http": "^7.5.1",
189
183
  "tsx": "^4.20.6",
190
184
  "typescript": "^5.9.3",
191
185
  "vitest": "^3.2.4",