Skip to main content
The Feathers client library allows you to connect to your Feathers API from any JavaScript environment, including browsers, React Native, Node.js, and other platforms. It provides the same service interface on the client as on the server.

Installation

Install the main client package which includes all transport options:
For Node.js or when using a module bundler, you can also install individual packages:

Available Transports

Feathers client supports multiple connection types:
  • REST - HTTP/HTTPS connections using fetch, axios, or superagent
  • Socket.io - Real-time WebSocket connections with fallback transports

Quick Start

Using Services

Once connected, you can use services the same way as on the server:

Query Parameters

All standard Feathers query parameters work on the client:

Custom Headers

You can pass custom headers with requests (REST only):

Real-time Events

When using Socket.io, you can listen to real-time service events:

Error Handling

Feathers errors are automatically converted to proper error objects:

TypeScript Support

Feathers client has full TypeScript support:

Next Steps

Learn more about specific client transports:

REST Client

Connect using HTTP with fetch, axios, or superagent

Socket.io Client

Real-time connections with WebSocket support