New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@galaxy-stack/orbit-http-client

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@galaxy-stack/orbit-http-client

Typed HTTP client for Orbit — fetch wrapper with retries, timeouts, interceptors

latest
Source
npmnpm
Version
0.5.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@galaxy-stack/orbit-http-client

Typed HTTP client for Orbit — fetch wrapper with retries, timeouts, and interceptors.

npm version License: MIT

Part of the Orbit framework — a NestJS-style backend framework for Bun.

Installation

bun add @galaxy-stack/orbit-http-client

Usage

import { HttpClientModule, HttpClient, Module } from '@galaxy-stack/orbit-http-client';

@Module({
  imports: [HttpClientModule.forRoot({ baseUrl: 'https://api.example.com', retries: 2, timeoutMs: 5000 })],
})
export class AppModule {}

// anywhere with DI:
constructor(private http: HttpClient) {}

const res = await this.http.get<User[]>('/users', { query: { page: 1 } });
await this.http.post('/users', { name: 'orbit' });

Features: JSON serialization/parsing, query params, request/response interceptors, exponential-backoff retries (5xx + 429), timeout via AbortController, typed responses, throwOnError toggle.

License

MIT

FAQs

Package last updated on 26 Sep 2026

Related posts