# ByteKit ## Docs - [ApiClient](https://bytekit.mintlify.app/api-reference/api-client.md): The core HTTP client class in ByteKit — typed requests, interceptors, retries, circuit breaker, and response validation. - [Async](https://bytekit.mintlify.app/api-reference/async.md): Complete reference for ByteKit async utilities — timing, retries, concurrency, debounce, throttle, request queue, and batching. - [CacheManager](https://bytekit.mintlify.app/api-reference/cache-manager.md): In-memory cache with TTL, LRU eviction, optional localStorage persistence, and hit-rate statistics. - [CircuitBreaker](https://bytekit.mintlify.app/api-reference/circuit-breaker.md): Protect downstream services with a three-state circuit breaker pattern. - [CompressionUtils](https://bytekit.mintlify.app/api-reference/compression-utils.md): LZ-based string compression with Base64 and Uint8Array output formats. - [CryptoUtils](https://bytekit.mintlify.app/api-reference/crypto-utils.md): Hashing, encryption, tokens, UUIDs, Base64, and constant-time comparison utilities. - [DiffUtils](https://bytekit.mintlify.app/api-reference/diff-utils.md): Deep and shallow object diffing, array comparison, patching, and human-readable diff formatting. - [EnvManager](https://bytekit.mintlify.app/api-reference/env-manager.md): Class reference and examples for EnvManager — typed, validated access to environment variables with prefix support and defaults. - [ErrorBoundary](https://bytekit.mintlify.app/api-reference/error-boundary.md): Structured error handling, automatic normalization, retries, and typed error classes for your application. - [EventEmitter](https://bytekit.mintlify.app/api-reference/event-emitter.md): Lightweight typed event bus with subscribe, once, and async waitFor support. - [FileUploadHelper](https://bytekit.mintlify.app/api-reference/file-upload-helper.md): Static helpers for single, multi-file, and chunked uploads with progress tracking and validation. - [Helpers](https://bytekit.mintlify.app/api-reference/helpers.md): Overview of ByteKit helper modules — environment, transport, caching, crypto, eventing, polling, and more. - [HTTP client](https://bytekit.mintlify.app/api-reference/http-client.md): Overview of the ByteKit HTTP layer — requests, validation, schema adapters, and URL utilities. - [Logger](https://bytekit.mintlify.app/api-reference/logger.md): Class reference and examples for Logger — structured, level-based logging with transports and child loggers. - [Observability](https://bytekit.mintlify.app/api-reference/observability.md): Overview of ByteKit observability modules — structured logging and performance profiling. - [Overview](https://bytekit.mintlify.app/api-reference/overview.md): Detailed API reference map for ByteKit public modules. - [Pipeline](https://bytekit.mintlify.app/api-reference/pipeline.md): Typed, lazy, immutable data pipelines — compose map, filter, and reduce with full TypeScript inference across sync and async transformations. - [PollingHelper](https://bytekit.mintlify.app/api-reference/polling-helper.md): Configurable polling workflows with backoff, jitter, abort support, and response-time metrics. - [Profiler](https://bytekit.mintlify.app/api-reference/profiler.md): Class reference and examples for Profiler and debug timing utilities — measure execution time for functions, blocks, and async operations. - [RateLimiter](https://bytekit.mintlify.app/api-reference/rate-limiter.md): Class reference and examples for RateLimiter and SlidingWindowRateLimiter — outbound request throttling with fixed and sliding window strategies. - [RequestCache](https://bytekit.mintlify.app/api-reference/request-cache.md): Class reference and examples for RequestCache — a lightweight cache for request results with TTL, stale-while-revalidate, and pattern invalidation. - [RequestDeduplicator](https://bytekit.mintlify.app/api-reference/request-deduplicator.md): Class reference and examples for RequestDeduplicator — shares a single in-flight promise across identical concurrent requests. - [Resilience](https://bytekit.mintlify.app/api-reference/resilience.md): Overview of ByteKit resilience primitives — retries, circuit breaking, caching, deduplication, rate limiting, and error boundaries. - [ResponseValidator](https://bytekit.mintlify.app/api-reference/response-validator.md): Built-in schema validation for API responses — no external libraries required. - [RetryPolicy](https://bytekit.mintlify.app/api-reference/retry-policy.md): Automatic retries with exponential backoff and jitter for transient failures. - [Schema adapters](https://bytekit.mintlify.app/api-reference/schema-adapters.md): Plug Zod or Valibot schemas into ApiClient response validation with zodAdapter and valibotAdapter. - [StorageManager](https://bytekit.mintlify.app/api-reference/storage-utils.md): Isomorphic key-value storage with automatic prefix namespacing and custom serialization. - [StreamingHelper](https://bytekit.mintlify.app/api-reference/streaming-helper.md): SSE, NDJSON, and download streaming with the new fetch-based fetchSSE method for full POST and abort support. - [UrlHelper](https://bytekit.mintlify.app/api-reference/url-helper.md): Static utilities for URL parsing, building, query-string manipulation, and slugification. - [WebSocketHelper](https://bytekit.mintlify.app/api-reference/websocket-helper.md): Managed WebSocket connections with automatic reconnection, exponential backoff, schema validation, and pong detection. - [Development](https://bytekit.mintlify.app/development.md): Work on the ByteKit documentation site locally and keep content aligned with the package. - [Async toolkit](https://bytekit.mintlify.app/guides/async-toolkit.md): Control concurrency, retries, cancellation, and timing with bytekit/async. - [Common recipes](https://bytekit.mintlify.app/guides/common-recipes.md): Practical ByteKit patterns you can adapt quickly. - [HTTP client](https://bytekit.mintlify.app/guides/http-client.md): Use ApiClient for typed, isomorphic HTTP requests. - [Resilience patterns](https://bytekit.mintlify.app/guides/resilience.md): Combine retries, circuit breaking, caching, and rate limiting. - [Streaming and realtime](https://bytekit.mintlify.app/guides/streaming-and-realtime.md): Process NDJSON, server-sent events (including POST + AbortSignal via fetchSSE), and streamed downloads. - [Introduction](https://bytekit.mintlify.app/index.md): ByteKit is a lean TypeScript toolkit for resilient HTTP workflows and async control. - [Quickstart](https://bytekit.mintlify.app/quickstart.md): Install ByteKit and make your first typed request. - [Import paths](https://bytekit.mintlify.app/reference/import-paths.md): Public import paths exposed by the package exports map. - [Overview](https://bytekit.mintlify.app/reference/overview.md): High-level package reference for ByteKit modules. ## OpenAPI Specs - [openapi](https://bytekit.mintlify.app/api-reference/openapi.json) ## Optional - [GitHub](https://github.com/sebamar88/bytekit) - [npm](https://www.npmjs.com/package/bytekit)