Framework50K+/wkMIT

@feathersjs/feathers

Feathers is a lightweight web framework for creating real-time applications and REST APIs using TypeScript or JavaScript. Built on a flexible service-oriented a

Installation

npm
npm install @feathersjs/feathers
yarn
yarn add @feathersjs/feathers
pnpm
pnpm add @feathersjs/feathers

Import

ESM
import { feathers } from '@feathersjs/feathers';

Quick Example

usage
import { feathers } from '@feathersjs/feathers';

const app = feathers();

app.use('messages', {
  async find() {
    return [{ text: 'Hello' }];
  },
});

About @feathersjs/feathers

Feathers is a lightweight web framework for creating real-time applications and REST APIs using TypeScript or JavaScript. Built on a flexible service-oriented architecture, Feathers represents every resource as a service with standard CRUD methods (find, get, create, update, patch, remove) that work identically over REST and real-time transports like Socket.IO and Primus. This means a single service definition automatically provides both a REST API endpoint and real-time event streaming without additional code. Feathers' hook system allows attaching reusable logic before and after service methods for validation, authentication, logging, and data transformation. The framework is transport-agnostic and can use Express, Koa, or its own native HTTP adapter. Feathers includes an authentication system supporting local (username/password), JWT, OAuth, and API key strategies. The framework excels at building chat applications, collaboration tools, IoT dashboards, and any application requiring real-time data synchronization between server and connected clients. Its service-oriented design makes it easy to integrate with any database through adapters for MongoDB, PostgreSQL, and other stores.

Quick Facts

Package@feathersjs/feathers
CategoryFramework
Weekly Downloads50K+
LicenseMIT
Installnpm install @feathersjs/feathers

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.