Description #
Feathers.js is a lightweight web framework for building real-time APIs and microservices using JavaScript or TypeScript with support for REST, WebSockets, and more.
History #
Launched in 2015 by Eric Kryski and the team at FeathersJS, the framework was designed to make building real-time backends as simple as possible. It has grown popular among startups and API-first products.
Hello World Code #
const feathers = require('@feathersjs/feathers');
const app = feathers();
app.use('/messages', {
async find() {
return [{ text: 'Hello, World!' }];
}
});
app.service('messages').find().then(console.log);
How to Run #
Option 1: Online
RunKit Feathers.js Example
Option 2: Local
npm install @feathersjs/feathers
node app.js
Key Concepts #
- Service-based architecture
- REST and WebSocket support
- Works with Express or Koa
- Authentication via JWT or OAuth
- Plugins for databases (Mongo, SQL, etc.)
- Hooks for middleware logic
- TypeScript support
- CLI for scaffolding apps
- Real-time event broadcasting
- Ideal for backend microservices
Try It Online #
Fun Facts #
Feathers.js can generate full CRUD APIs in seconds using only a few lines of code—ideal for prototyping or powering production apps.