@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 install @feathersjs/feathers
yarn add @feathersjs/feathers
pnpm add @feathersjs/feathers
Import
import { feathers } from '@feathersjs/feathers';Quick Example
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 |
| Category | Framework |
| Weekly Downloads | 50K+ |
| License | MIT |
| Install | npm install @feathersjs/feathers |
Related Packages
Express is the most widely used web application framework for Node.js, providing a minimal and flexi…
NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side…
Socket.IO is a library that enables low-latency, bidirectional, and event-based communication betwee…
Sails.js is an MVC web application framework for Node.js inspired by Ruby on Rails, designed to make…
ws is the most widely used WebSocket implementation for Node.js, providing a simple, fast, and thoro…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.