
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@eric8810/catcher-core
Advanced tools
Shared TypeScript type definitions for the catcher toolkit. Zero runtime dependencies.
This package is consumed by @eric8810/catcher-http, @eric8810/catcher-ws, and @eric8810/catcher-web. You typically don't install it directly.
💡 Node.js users: For Rust-native performance, use
@eric8810/catcher-napi-httpand@eric8810/catcher-napi-wsinstead. They provide typed TS wrappers with the same config schema and much better throughput.
npm install @eric8810/catcher-core
| Type | Description |
|---|---|
IHttpClient | HTTP client interface (get, post, put, delete, patch) |
HttpClientConfig | Client configuration |
RequestConfig | Per-request options |
HttpResponse | Response shape |
ProgressEvent | Upload/download progress |
InterceptorManager | Request/response interceptor API |
| Type | Description |
|---|---|
CatcherHttpError | Enhanced error with type, request, response, attempt info |
CatcherErrorType | 'connection' | 'timeout' | 'http' | 'cancelled' | 'unknown' |
isCatcherError() | Type guard for CatcherHttpError |
| Type | Description |
|---|---|
ProxyConfig | HTTP/HTTPS proxy settings |
DnsConfig | DNS resolution options |
TlsConfig | TLS/SSL settings |
RedirectInfo | Redirect policy |
TransportAdapter | Custom transport adapter |
| Type | Description |
|---|---|
SSEStream | AsyncIterable SSE line stream |
SSEClient | Long-lived SSE connection with auto-reconnect |
SSEStreamOptions | Stream configuration |
SSEClientOptions | Client configuration |
SSETimeoutError | Timeout error type |
| Type | Description |
|---|---|
ClientEvent | Event payload types (requestComplete, retry, etc.) |
import type { IHttpClient, HttpClientConfig, CatcherHttpError } from '@eric8810/catcher-core'
import { isCatcherError } from '@eric8810/catcher-core'
try {
const data = await client.get('/api/data')
} catch (err) {
if (isCatcherError(err)) {
console.log(err.type, err.attempt, err.elapsedMs)
}
}
MIT
FAQs
Catcher shared type definitions — zero runtime dependencies
We found that @eric8810/catcher-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.