When comparing Sinatra vs Adonisjs, the Slant community recommends Adonisjs for most people. In the question“What are the best web frameworks to create a web REST API?” Adonisjs is ranked 15th while Sinatra is ranked 18th. The most important reason people chose Adonisjs is:
If you are already programming in PHP with Laravel, you will have no trouble starting development with Node using Adonis.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Small loading time
Since it has very few dependencies, the loading time for a Sinatra app is considerably small.
Pro Has only the bare minimum needed
Sinatra has taken an approach of having only the most useful components needed to build applications out of the box. It has simple routes along with a Domain Specific Language over a Rack layer.
Pro Based on Laravel PHP Framework
If you are already programming in PHP with Laravel, you will have no trouble starting development with Node using Adonis.
Pro Similar to Rails
Pro Built-in modules for everything
There are built-in modules for everything: Auth, Social Auth, mailing ect
Pro Has websocket support out of the box
Pro Very good documentation
Pro Easy to learn, especially if you're already familiar with Laravel
Pro Option for full-stack or api standalone implementation
You can choose to use the full-stack version or if you wish to build a RESTful API you can choose to use the api standalone version.
Cons
Con Hard to scale well
Because it's rather small and minimalistic, scaling up is not very easy with Sinatra. You need a great deal of knowledge on libraries and modules that may be useful for your particular use-case. As your application grows larger it may be hard to keep things clean and minimalistic, losing a lot of the advantages that Sinatra has.
Con No NOSQL integration
Only used ORM, not ODM.