Restberry alternatives and similar modules
Based on the "Web Frameworks" category.
Alternatively, view Restberry alternatives based on common mentions on social networks and blogs.
-
Nest
A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications on top of TypeScript & JavaScript (ES6, ES7, ES8) ๐ -
Nuxt.js
Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt] -
egg
๐ฅ Born to build better enterprise frameworks and apps with Node.js & Koa -
AdonisJs Framework
๐ The Node.js Framework highly focused on developer ergonomics, stability and confidence -
TypeGraphQL
Create GraphQL schema and resolvers with TypeScript, using classes and decorators! -
MERN
โ๏ธ DEPRECATED - Boilerplate for getting started with MERN stack -
Quick Start
๐ A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. ๐ -
ThinkJS
Use full ES2015+ features to develop Node.js applications, Support TypeScript. -
LoopBack
LoopBack makes it easy to build modern API applications that require complex integrations. -
Derby
MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers -
ActionHero
Actionhero is a realtime multi-transport nodejs API Server with integrated cluster capabilities and delayed tasks -
Lad
Node.js framework made by a former @expressjs TC and @koajs team member. Built for @forwardemail, @spamscanner, @breejs, @cabinjs, and @lassjs. -
tinyhttp
๐ฆ 0-legacy, tiny & fast web framework as a replacement of Express -
sqs-consumer
Build Amazon Simple Queue Service (SQS) based applications without the boilerplate -
Marble.js
Marble.js - functional reactive Node.js framework for building server-side applications, based on TypeScript and RxJS. -
FoalTS
Full-featured Node.js framework, with no complexity. ๐ Simple and easy to use, TypeScript-based and well-documented. -
Trails
:evergreen_tree: Modern Web Application Framework for Node.js. -
NestJS REST API boilerplate
NestJS boilerplate. Auth, TypeORM, Postgres, Mailing, I18N, Docker. -
lychee.js
:seedling: Next-Gen AI-Assisted Isomorphic Application Engine for Embedded, Console, Mobile, Server and Desktop -
Hemera
๐ฌ Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/ -
Catberry
Catberry is an isomorphic framework for building universal front-end apps using components, Flux architecture and progressive rendering. -
dawson-cli
A serverless web framework for Node.js on AWS (CloudFormation, CloudFront, API Gateway, Lambda) -
AdonisJs Application
This repo is the pre-configured project structure to be used for creating ambitious web servers using AdonisJs. -
sqs-producer
Simple scaffolding for applications that produce SQS messages -
Perk
A well documented set of tools for building node web applications. -
QueryQL
Easily add filtering, sorting, and pagination to your Node.js REST API through your old friend: the query string! -
express-version-route
A Node.js express middleware that implements API versioning for route controllers -
FortJs
Component based MVC web framework for nodejs targeting good code structures & modularity. -
khalis
Grab Blogger & Google Photos, mp4upload.com,cloudvideo.tv, etc streaming link -
Coher3nTS Project
Cross-platform project template using Electron and Angular with the Phaser game engine. Project has Flexbox integrated for easy and responsive organization of components around the Phaser canvas. -
AWS Lambda Router for NodeJS
AWS Lambda router for NodeJS
AWS Cloud-aware infrastructure-from-code toolbox [NEW]
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Restberry or a related project?
README
Restberry works with both Express and Restify!
Framework for setting up RESTful JSON APIs with NodeJS. Define your models and setup CRUD API calls without needing to write any code (see Usage). All API calls will handle and identify issues and throw necessary HTTP responses and easy to debug error responses. Restberry also handles authentication and permission checks and throws appropriate errors.
Install
npm install restberry
Example
See example
for a detailed documentation of how you setup a Restberry app.
Usage
var restberry = require('restberry');
restberry
.config({
apiPath: '/api/v1',
port: 5000,
})
.listen();
restberry.model('Foo')
.schema({
name: {type: String},
})
.routes
.addCreateRoute()
.addReadManyRoute();
restberry.model('Bar')
.schema({
foo: {type: restberry.odm.ObjectId, ref: 'Foo'},
name: {type: String},
})
.routes
.addCRUDRoutes({
parentModel: 'Foo',
});
NOTE: By default, Restberry integrates with ExpressJS and Mongoose but it can be hooked up with other packages. See more usages in the tests and dependent packages like:
Response examples
All these responses below are automatically handled without needing to write any additional code.
200 OK
2014-05-11T11:55:53.916Z|172.16.122.129|GET|/api/v1/foos/536f6549e88ad2b5a71ffdc6|<{}> 2014-05-11T11:55:53.920Z|172.16.122.129|200|<{ "foo": { "href": "/api/v1/foos/536f6549e88ad2b5a71ffdc7", "id": "536f6549e88ad2b5a71ffdc7", "name": "test" } }>
201 CREATED
2014-05-11T11:55:54.210Z|172.16.122.129|POST|/api/v1/foos|<{ "name": "test" }> 2014-05-11T11:55:54.210Z|172.16.122.129|201|<{ "foo": { "href": "/api/v1/foos/536f654ae88ad2b5a71ffdcb", "id": "536f654ae88ad2b5a71ffdcb", "name": "test" } }>
204 NO CONTENT
2014-05-11T11:55:52.575Z|172.16.122.129|DELETE|/api/v1/foos/536f6548e88ad2b5a71ffdb7|<{}> 2014-05-11T11:55:52.579Z|172.16.122.129|204|
NOTE: See restberry-errors
for possible error responses.
Authentication
See restberry-passport
.
Routing
restberry.model('Foo')
.routes
.addCreateRoute() // POST /foos
.addDeleteRoute() // DELETE /foos/:id
.addPartialUpdateRoute() // POST /foos/:id
.addReadManyRoute() // GET /foos
.addReadRoute() // GET /foos/:id
.addUpdateRoute() // PUT /foos/:id
.addCRUDRoutes() // All of the above...
Handle action query strings like this:
restberry.model('Foo')
.routes
.addPartialUpdateRoutes({
actions: {
build: function(req, res, next) {
...
}, // POST /foos/:id?action=build
},
})
And Handle parent models like this:
restberry.model('Foo')
.routes
.addCreateRoutes({
parentModel: restberry.model('Bar'),
}) // POST /bars/:id/foos
NOTE: this can only be applied to ReadMany and Create.
You can also create custom routes. The possible configurations you can make are:
restberry
.routes
.addCustomRoutes({
action: function(req, res, next) {
...
},
apiPath: '/api/v1', // overrides the one set on Restberry
actions: { },
loginRequired: false, // should authenticate the request
method: 'GET', // choices: DELETE, GET, POST, PUT
parentModel: restberry.model('Bar'),
path: '/path/to', // the path of the route, will append apiPath
postAction: function(json, req, res, next) {
...
}, // will be executed after action
preAction: function(req, res, next) {
...
}, // will be executed before action
verbose: false, // will print the API call on initiation
})
NOTE: you can set these properties to all the predefined API definitions,
you won't be able to override action
however.
Run the tests
npm test
Further reading
I have written an article series on RESTful JSON API design which this package is base upon, you can find the three parts here: part 1, part 2 and part 3.
Contact
I'm really interested to here what you guys think of Restberry, especially if you have any suggestions to improve the package. Please contact me at [email protected].