Create a proxy object for method interception and routing. Useful for building RPC-style clients where property access and method calls are captured and forwarded.
An HTTP(s) proxy `http.Agent` implementation for HTTP
Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.
Turn a function into an `http.Agent` instance
Type-safe RPC server for handling remote procedure calls. Provides automatic validation, error handling, execution context tracking, and Sentry integration.
Maps proxy protocols to `http.Agent` implementations
Memoization decorator that caches function results based on arguments. Returns cached results for subsequent calls with the same arguments.
An HTTP(s) proxy `http.Agent` implementation for HTTPS
Type-safe environment variable validation. Ensure required environment variables exist and have proper types at application startup.
Generate consistent, unique shadow IDs based on input data. Combines SHA256 hashing, base62 encoding, and timestamp extraction for deterministic ID generation.
Comprehensive validation framework with composable validators and modifiers. Define schemas with full TypeScript support and get detailed error messages.
Determine address of proxied request
Base62 encoding and decoding utility for converting strings and byte arrays into URL-safe, compact representations. Useful for shortening IDs, creating readable tokens, or encoding binary data.
Type-safe RPC client for making remote procedure calls. Provides automatic serialization, error handling, and request memoization.
Generate random integers within a specified range. Simple wrapper around Math.random() with inclusive bounds.
The one-liner node.js proxy middleware for connect, express, next.js and more
String case conversion utilities supporting multiple formats. Convert between camelCase, PascalCase, snake_case, kebab-case, and more.
Shared OpenTelemetry bootstrap and execution-context trace fallback helpers.
Type-safe error handling with structured error objects. Create consistent error responses with status codes, error codes, messages, hints, and descriptions.
Track and manage execution context for requests, scheduled jobs, and background tasks. Provides type-safe context objects for different execution environments with support for parent-child relationships.
Type-safe event emitter with strong typing. Define your event types upfront and get full TypeScript support for event names and payloads.
Reliable job queue built on BullMQ and Redis. Add jobs to a persistent queue and process them with automatic retries, concurrency control, and graceful shutdown.
Generate URL-friendly slugs with collision detection. Automatically handles uniqueness and provides short ID generation with random padding.
A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS