Skip to main content

Lightning-fast TypeScript utilities

Isomorphic API client, state management, and 28+ utility modules. Zero dependencies, tree-shakeable, works everywhere.

Zero dependencies
95%+ test coverage
Node & Browser

Quick start

Get up and running with ByteKit in minutes

1

Install ByteKit

Install the package using your preferred package manager:
npm install bytekit
2

Import and configure

Import the modules you need. ByteKit is fully tree-shakeable:
import { ApiClient, createLogger, StringUtils } from "bytekit";

const api = new ApiClient({
  baseUrl: "https://api.example.com",
  defaultHeaders: { "X-API-Key": process.env.API_KEY }
});

const logger = createLogger({ 
  namespace: "app", 
  level: "info" 
});
3

Start building

Use ByteKit’s utilities in your application:
// Make API calls with automatic retries
const users = await api.get("/users");

// Log structured messages
logger.info("Users fetched", { count: users.length });

// Use helper utilities
const slug = StringUtils.slugify("New Feature – 2024");

Core features

Everything you need for modern TypeScript development

API Client

Isomorphic HTTP client with retries, circuit breaker, and localized errors

State Management

QueryClient for powerful async state management with caching and invalidation

Logging & Profiling

Structured logging and performance profiling utilities

28+ Utility Modules

String, Date, Array, Object, Crypto, Cache, and more

Community & support

Get help and connect with other developers

GitHub Discussions

Ask questions, share ideas, and get community support

Report Issues

Found a bug? Report it and help improve ByteKit

Contributing Guide

Learn how to contribute to ByteKit

Changelog

See what’s new in the latest releases

Ready to get started?

Install ByteKit today and start building with powerful, type-safe utilities that work everywhere.

Get Started Now

Build docs developers (and LLMs) love