js-restful-express is a module for npm that let’s you write RESTful services with ES7 decorators for your express based web application.

A typical service would look like this:

import { GET, POST, PUT, DELETE, Path, PathParam, HeaderParam } from 'js-restful';

class BookService {

    allBooks() : Book[]{
       return [];

    createBook(@PathParam('name') name:string, @HeaderParam('token') token:string) :Book {
        return {id:1, name:name};

    updateBook(@PathParam('id') id:number, @PathParam('name') name:string) : Book {
        return {id:id, name:name};

    deleteBook(@PathParam('id') id:number): boolean {
        return true;

The project is hosted on github and published under MIT license.