recker 1.0.21-next.d9fe496 → 1.0.21-next.fa763a6
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 +0 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,28 +77,6 @@ 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
|
-
|
|
102
80
|
## Features
|
|
103
81
|
|
|
104
82
|
| Feature | Description |
|
|
@@ -185,7 +163,6 @@ See [CLI Documentation](./docs/cli/01-overview.md) for more.
|
|
|
185
163
|
## Documentation
|
|
186
164
|
|
|
187
165
|
- **[Quick Start](./docs/http/01-quickstart.md)** - Get running in 2 minutes
|
|
188
|
-
- **[Mini Client](./docs/http/18-mini-client.md)** - Maximum performance mode
|
|
189
166
|
- **[CLI Guide](./docs/cli/01-overview.md)** - Terminal client documentation
|
|
190
167
|
- **[API Reference](./docs/reference/01-api.md)** - Complete API documentation
|
|
191
168
|
- **[Configuration](./docs/http/05-configuration.md)** - Client options
|
|
@@ -193,7 +170,6 @@ See [CLI Documentation](./docs/cli/01-overview.md) for more.
|
|
|
193
170
|
- **[AI Integration](./docs/ai/01-overview.md)** - OpenAI, Anthropic, and more
|
|
194
171
|
- **[Protocols](./docs/protocols/01-websocket.md)** - WebSocket, DNS, WHOIS
|
|
195
172
|
- **[Mock Servers](./docs/cli/08-mock-servers.md)** - Built-in test servers
|
|
196
|
-
- **[Benchmarks](./docs/benchmarks.md)** - Performance comparisons
|
|
197
173
|
|
|
198
174
|
## License
|
|
199
175
|
|