A REST and realtime API layer for modern applications.
Feathers is a real-time, micro-service web framework for NodeJS that gives you control over your data via RESTful resources, sockets and flexible plug-ins.
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Support us with a monthly donation and help us continue our activities. [Become a backer]
You can build your first real-time and REST API in just 4 commands:
$ npm install -g @feathersjs/cli$ mkdir my-new-app$ cd my-new-app/$ feathers generate app$ npm start
See it in action
Here is all the code you need to create a RESTful, real-time message API that uses an in-memory data store:
const feathers = ;const express = ;const socketio = ;const memory = ;// Creates an Express compatible Feathers applicationconst app = ;// Parse HTTP JSON bodiesapp;// Parse URL-encoded paramsapp;// Add REST API supportapp;// Configure Socket.io real-time APIsapp;// Register a messages service with paginationapp;// Register a nicer error handler than the default Express oneapp;// Add any new real-time connection to the `everybody` channelapp;// Publish all events to the `everybody` channelapp;// Start the serverapp;
npm install @feathersjs/feathers @feathersjs/socketio @feathersjs/express feathers-memory node app
and go to http://localhost:3030/messages. That's it! There's a lot more you can do with Feathers including; using a real database, authentication, authorization, clustering and more! Head on over to the Feathers docs to see just how easy it is to build scalable real-time apps.
The Feathers docs are loaded with awesome stuff and tell you every thing you need to know about using and configuring Feathers.
We ❤️ the community and take security very seriously. No one wants their app hacked. If you have come across a security concern please report it responsibly. Visit the Security section of the docs to learn more about how you can make sure your app is secure.
Copyright (c) 2018 Feathers contributors
Licensed under the MIT license.