node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



Build App

npm install restfuljs -g

restfuljs --help

restfuljs app --help

restfuljs app -d myTestApi -w 'users, projects'

Add resource to existing app

restfuljs add profiles

Bootstrap data

You can easily bootstrap data into the application by running node app --bootstrap from the application directory. This will clear the database and load data from a json file in the data directory for each of the resources.


quick and easy restful responses for expressjs apps


npm install restfuljs

Quick Start

add to express app middleware:


Example uses

as direct callback to mongoose query:

models.user.findById(id, res.tful);

another mongoose query callback example:;

manual call:

res.tful(error, result)