A powerful, TypeScript-first API client SDK for authentication, user profile management, and custom HTTP services — built with Axios and clean developer ergonomics.
Get up and running in seconds
npm i request-kit-client
Everything you need for modern API client development
Perfect for any frontend application that needs:
Organized auth, user, and custom services
Automatic authentication handling
Full TypeScript support and validation
Consistent error handling patterns
Clean, intuitive API design
import { RequestKitClient } from 'request-kit-client';
const client = new RequestKitClient({
baseURL: 'https://api.example.com',
token: 'your-auth-token'
});
// Use modular services
const user = await client.user.getProfile();
const posts = await client.custom.get('/posts');
Explore more powerful features
// Initialize with auth
const client = new RequestKitClient({
baseURL: 'https://api.example.com',
onUnauthorized: () => {
// Handle token refresh
window.location.href = '/login'
}
})
// Set token dynamically
client.setToken('new-jwt-token')
// Create custom service
const blogService = client.createService('blog', {
getPosts: () => client.get('/posts'),
createPost: (data) => client.post('/posts', data),
updatePost: (id, data) => client.put(`/posts/${id}`, data)
})
// Use custom service
const posts = await blogService.getPosts()
Join developers who are building better APIs with request-kit-client
npm i request-kit-client
yarn add request-kit-client
pnpm add request-kit-client