A REST and realtime API layer for modern applications.
Switch branches/tags
v3.2.0-pre.1 v3.1.7 v3.1.6 v3.1.5 v3.1.4 v3.1.3 v3.1.2 v3.1.1 v3.1.0 v3.0.5 v3.0.4 v3.0.3 v3.0.2 v3.0.1 v3.0.0 v3.0.0-pre.3 v3.0.0-pre.2 v3.0.0-pre.1 v2.2.4 v2.2.3 v2.2.2 v2.2.1 v2.2.0 v2.1.7 v2.1.6 v2.1.4 v2.1.3 v2.1.2 v2.1.1 v2.1.0 v2.0.3 v2.0.2 v2.0.1 v2.0.0 v2.0.0-pre.4 v2.0.0-pre.3 v2.0.0-pre.2 v2.0.0-pre.1 v1.3.0 v1.2.1 v1.2.0 v1.1.1 v1.1.0 generator-feathers@2.6.3 generator-feathers@2.6.2 generator-feathers@2.6.1 generator-feathers-plugin@1.0.1 @feathersjs/transport-commons@4.1.4 @feathersjs/transport-commons@4.1.3 @feathersjs/transport-commons@4.1.2 @feathersjs/socketio@3.2.5 @feathersjs/socketio@3.2.4 @feathersjs/socketio@3.2.3 @feathersjs/socketio-client@1.1.3 @feathersjs/socketio-client@1.1.2 @feathersjs/socketio-client@1.1.1 @feathersjs/rest-client@1.4.4 @feathersjs/rest-client@1.4.3 @feathersjs/rest-client@1.4.2 @feathersjs/primus@3.2.4 @feathersjs/primus@3.2.3 @feathersjs/primus@3.2.2 @feathersjs/primus-client@1.1.3 @feathersjs/primus-client@1.1.2 @feathersjs/primus-client@1.1.1 @feathersjs/feathers@3.2.2 @feathersjs/feathers@3.2.1 @feathersjs/feathers@3.2.0 @feathersjs/express@1.2.6 @feathersjs/express@1.2.5 @feathersjs/express@1.2.4 @feathersjs/errors@3.3.3 @feathersjs/errors@3.3.2 @feathersjs/errors@3.3.1 @feathersjs/configuration@2.0.3 @feathersjs/configuration@2.0.2 @feathersjs/configuration@2.0.1 @feathersjs/commons@3.0.1 @feathersjs/commons@3.0.0 @feathersjs/cli@3.8.3 @feathersjs/cli@3.8.2 @feathersjs/cli@3.8.1 @feathersjs/authentication@2.1.10 @feathersjs/authentication@2.1.9 @feathersjs/authentication@2.1.8 @feathersjs/authentication-oauth2@1.2.3 @feathersjs/authentication-oauth2@1.2.2 @feathersjs/authentication-oauth2@1.2.1 @feathersjs/authentication-oauth1@1.0.6 @feathersjs/authentication-oauth1@1.0.5 @feathersjs/authentication-oauth1@1.0.4 @feathersjs/authentication-local@1.2.4 @feathersjs/authentication-local@1.2.3 @feathersjs/authentication-local@1.2.2 @feathersjs/authentication-jwt@2.0.4 @feathersjs/authentication-jwt@2.0.3 @feathersjs/authentication-jwt@2.0.2 @feathersjs/authentication-client@1.0.5 @feathersjs/authentication-client@1.0.4 @feathersjs/authentication-client@1.0.3
Nothing to show
Clone or download
Latest commit 1b866ea Sep 17, 2018

readme.md

Feathers logo

A REST and realtime API layer for modern applications.

Greenkeeper badge Build Status Maintainability Test Coverage Download Status

Slack Status Telegram Status

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.

Support

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Getting started

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

To learn more about Feathers visit the website at feathersjs.com or jump right into the Feathers docs.

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 = require('@feathersjs/feathers');
const express = require('@feathersjs/express');
const socketio = require('@feathersjs/socketio');

const memory = require('feathers-memory');

// Creates an Express compatible Feathers application
const app = express(feathers());

// Parse HTTP JSON bodies
app.use(express.json());
// Parse URL-encoded params
app.use(express.urlencoded({ extended: true }));
// Add REST API support
app.configure(express.rest());
// Configure Socket.io real-time APIs
app.configure(socketio());
// Register a messages service with pagination
app.use('/messages', memory({
  paginate: {
    default: 10,
    max: 25
  }
}));
// Register a nicer error handler than the default Express one
app.use(express.errorHandler());

// Add any new real-time connection to the `everybody` channel
app.on('connection', connection => app.channel('everybody').join(connection));
// Publish all events to the `everybody` channel
app.publish(data => app.channel('everybody'));

// Start the server
app.listen(3030).on('listening', () =>
  console.log('Feathers server listening on localhost:3030')
);

Then run

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.

Documentation

The Feathers docs are loaded with awesome stuff and tell you every thing you need to know about using and configuring Feathers.

Security

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.

License

Copyright (c) 2018 Feathers contributors

Licensed under the MIT license.