Phtps in action
LiveBuild applications, not HTTP infrastructure.
A TypeScript-first HTTP client with retries, caching, authentication, streaming, and extensible plugins built on native fetch.
Core Capabilities
Plugin Architecture
Every capability is opt-in. Add encryption, caching, retries, or HMAC signing without touching your existing code.
Zero Config, Full Control
Sensible defaults that get out of your way. Override anything with a single option when the time comes.
Every Runtime
Node.js 18+, React, Vue, Angular, Deno, Bun, JavaScript. One API, everywhere.
Powerful enough for production.
Surgical enough for you.
A modular architecture where every capability is a plugin. Add what you need, ship what matters.
Familiar API
Drop-in replacement. Use .get, .post, .put, .patch, .delete and start shipping without rewiring your mental model.
Interceptors & Middleware
Axios-style global interceptors plus Koa-style pipeline composition for requests and responses.
Payload Encryption
AES-GCM encryption powered by the native Web Crypto API. Zero-config, zero-overhead.
CSRF Protection
Automatic anti-forgery token extraction and injection.
Progress Tracking
High-fidelity upload and download events via XHR or the Streams API.
Request Deduplication
Simultaneous identical GET requests are merged into a single network call. One request, many consumers.
Smart Caching
TTL-based GET caching with customizable storage adapters. Slash redundant network load.
Auto-Pagination
Predictive prefetching and automatic aggregate loop fetching for long lists.
Advanced Streaming
First-class API for Text, NDJSON, SSE, and raw byte streaming.
Multi-Tenant Support
Fork isolated client instances via .create() — each with its own scoped plugin state.
Resilience
Smart retries with exponential backoff, jitter, and fully custom retry predicates.
Payment Security
AWS-style HMAC signing, idempotency keys, and PII masking in a zero-trust module.
Queue Management
Concurrency limits, pause/resume, and sequential request processing out of the box.
Token Management
Proactive background refresh window plus reactive 401 interceptor for seamless token rotation.
Cancellation
Deep AbortController support for ongoing and queued requests.
Framework Agnostic
Node.js 18+, React, Vue, Angular, or Vanilla JS. Your stack, your choice.
Works everywhere
you do
Node.js 18+ · React · Vue · Angular · Deno · Bun · Next.js · JavaScript · TypeScript
150+ runtime & framework combinations
Become a Sponsor
Support our open-source mission and get your brand in front of thousands of developers.
Code that feels like art.
A surgical API designed to stay out of your way.
import Phtps from 'Phtps'; // Create an instanceconst api = Phtps.create({ baseURL: 'https://api.myapp.com/v1', timeout: 5000,}); // Use it like you're used toconst { data } = await api.get('/users/me');console.log(data);Build applications, not HTTP infrastructure.
Join thousands of developers building more resilient apps with Phtps.

