Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Hug
Hug

11
27
+ 1
11
Trails
Trails

14
28
+ 1
50
Add tool

Hug vs Trails: What are the differences?

Developers describe Hug as "New Python REST API and CLI micro-framework". Hug aims to make developing Python driven APIs as simple as possible, but no simpler. As a result, it drastically simplifies Python API development. On the other hand, Trails is detailed as "Modern Web Application Framework for Node.js". Trails is a modern, community-driven web application framework for node.js. It builds on the pedigree of Rails and Grails to accelerate development by adhering to a straightforward, convention-based, API-driven design philosophy.

Hug and Trails can be categorized as "Microframeworks (Backend)" tools.

"Simple" is the top reason why over 3 developers like Hug, while over 7 developers mention "Easy setup and usage" as the leading cause for choosing Trails.

Hug and Trails are both open source tools. It seems that Hug with 5.8K GitHub stars and 344 forks on GitHub has more adoption than Trails with 1.72K GitHub stars and 75 GitHub forks.

What is Hug?

Hug aims to make developing Python driven APIs as simple as possible, but no simpler. As a result, it drastically simplifies Python API development.

What is Trails?

Trails is a modern, community-driven web application framework for node.js. It builds on the pedigree of Rails and Grails to accelerate development by adhering to a straightforward, convention-based, API-driven design philosophy.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Hug?
Why do developers choose Trails?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
      Be the first to leave a con
      What companies use Hug?
      What companies use Trails?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Hug?
      What tools integrate with Trails?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to Hug and Trails?
      ExpressJS
      Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
      Flask
      Flask is intended for getting started very quickly and was developed with best intentions in mind.
      Django REST framework
      It is a powerful and flexible toolkit that makes it easy to build Web APIs.
      Sinatra
      Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.
      hapi
      hapi is a simple to use configuration-centric framework with built-in support for input validation, caching, authentication, and other essential facilities for building web applications and services.
      See all alternatives
      Decisions about Hug and Trails
      Pierre Chapuis
      Pierre Chapuis
      at Pierre Chapuis | 5 upvotes 37.9K views
      atChilliChilli
      Gunicorn
      Gunicorn
      Python
      Python
      SQLAlchemy
      SQLAlchemy
      Hug
      Hug
      Flask
      Flask

      Unlike our frontend, we chose Flask, a microframework, for our backend. We use it with Python 3 and Gunicorn.

      One of the reasons was that I have significant experience with this framework. However, it also was a rather straightforward choice given that our backend almost only serves REST APIs, and that most of the work is talking to the database with SQLAlchemy .

      We could have gone with something like Hug but it is kind of early. We might revisit that decision for new services later on.

      See more
      Interest over time
      Reviews of Hug and Trails
      Avatar of tjwebb
      CEO at Langa
      Review ofTrailsTrails

      The number one thing I like about Trails is that it does not force me to use any particular web server or database layer. I can choose the web server (hapi, express, etc), ORM layer (bookshelf, sequelize, waterline) and everything works with a common configuration.

      How developers use Hug and Trails
      No items found
      How much does Hug cost?
      How much does Trails cost?
      Pricing unavailable
      Pricing unavailable
      News about Hug
      More news
      News about Trails
      More news