What you get
ByteKit is most useful when you need more than a rawfetch wrapper.
- A reusable
ApiClientwith typed request helpers - Response validation through schema adapters
- Retry and circuit breaker primitives
- A focused
bytekit/asynctoolkit for concurrency and timing control - Helper modules for streaming, storage, logging, caching, and more
Install the package
Pick an import style
Use the package root for convenience:Make your first request
Type your response
Add response validation
If you already use Zod or Valibot, you can validate responses at the edge of your app.Handle failures explicitly
Turn on resilience
Use the async toolkit
Common next steps
Learn the client model
Move from raw requests to reusable request architecture.
Add production resilience
Combine retries, rate limiting, caching, and request deduplication.
Control async workflows
Handle concurrency, retries, timeout, and debounce patterns.
Review exports
See what the package exposes before you standardize imports.
Minimal production template
Continue with the HTTP client guide if you want the core request model, or jump to resilience patterns for production setup.