scotty VS Hasura

Compare scotty vs Hasura and see what are their differences.

scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository) (by scotty-web)

Hasura

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events. (by hasura)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
scotty Hasura
19 228
1,689 30,810
0.8% 0.4%
8.0 9.8
6 days ago 1 day ago
Haskell TypeScript
BSD 3-clause "New" or "Revised" License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

scotty

Posts with mentions or reviews of scotty. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-08.
  • haskell todo list app (beginner)
    3 projects | /r/haskell | 8 Jun 2023
    I would suggest checking out scotty for the http server - it uses warp by default, and is very beginner-friendly.
  • HLS issues an error for Setup.hs and Spec.hs (using hspec-discover)
    2 projects | /r/haskellquestions | 20 Nov 2022
    Here's the current commit I'm working with: https://github.com/scotty-web/scotty/commit/3ed8586c046b46dc42740e8ac2e7fe712e84191d
  • School of Haskell: Basics
    12 projects | news.ycombinator.com | 11 Nov 2022
    If you're not a fan of the ruby-on-rails / swiss army knife approach that IHP takes, check out Scotty. Add Lucid for Html rendering, and Selda for Postgres. (There are other options for any of these tools if you prefer)

    - Scotty (simple web routing) https://hackage.haskell.org/package/scotty

  • Use Haskell from Nodejs
    1 project | /r/haskell | 5 Nov 2022
    Writing a Haskell webserver (maybe using scotty) and call it from node.
  • Programming language comparison by reimplementing the same transit data app
    6 projects | news.ycombinator.com | 23 Oct 2022
  • How to change state in a webserver application
    1 project | /r/haskell | 18 Sep 2022
    I've been looking for this as well, and found the globalstate.hs example in the scotty github repository. It uses a ReaderT of a TVar and shows how to update or read shared state in memory.
  • Suggestions for "dashboard" graphics libraries?
    4 projects | /r/haskell | 13 Aug 2022
    I've found htmx and hyperscript talking to scotty to be an easy way to get something like this going while retaining the joys of Haskell on the backend and avoiding the pains of Haskell on the frontend.
  • Web development in Haskell
    7 projects | /r/haskell | 9 Aug 2022
    Finally, to add my opinion in the context of some other posts: I'd suggest Scotty (and probably other libraries I'm less familiar with) before Servant in particular, as Servant is a lot to absorb if you're also trying to build fluency in Haskell at the same time. Similarly, I'd advocate for Elmish (disclaimer, it's written by (very talented programmers other than myself at) my company) over Halogen, at least based on the last time I tried Halogen--I found it pretty complex as well. Don't get me wrong, I think Servant and Halogen are both great, just...complex.
  • Building a REST API with Haskell
    2 projects | dev.to | 11 Jul 2022
    This is an example of REST API built with Scotty a web framework of Haskell and PostgreSQL a relational database. It's a simple API to manage products.
  • Options for a frontend of demo for a toy app
    6 projects | /r/haskell | 13 Jun 2022
    Not that I'm much of an expert, but if you're talking about a very barebones static single-page-app, then you could very easily get by just using blaze-html to put your elements on the page, and then scotty is a basic web framework you could use to serve up your app.

Hasura

Posts with mentions or reviews of Hasura. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-25.
  • Serious flaws in SQL – Edgar F. Codd (1990)
    2 projects | news.ycombinator.com | 25 Apr 2024
    > 2. ORMs do not hide SQL nastiness.

    This is certainly true!

    I mean: ORMs are now well known to "make the easy queries slightly more easy, while making intermediate queries really hard and complex queries impossible".

    I think the are of ORMs is over. It simply did not deliver.

    If a book on SQL is --say-- 100 pages, a book on Hibernate is 400 pages. So much to learn just to make the easy queries slightly easier to type? Just not worth it.

    I prefer jooq any day over ORMs. And dont get me started over what tools like Hasuna have to offer.

    There are also some languages (forgot the names) that are SQL-done-right. Select in the back, more type safe, more logic, more in the same steps as the query gets executed. These need to be adopted by PG and MySQL and we're good to go. (IMHO)

    https://www.jooq.org/

    https://hasura.io/

  • Ask HN: How Can I Make My Front End React to Database Changes in Real-Time?
    8 projects | news.ycombinator.com | 17 Apr 2024
    [4] https://github.com/hasura/graphql-engine/blob/master/architecture/live-queries.md
  • The Many Ways Not to Build an API
    4 projects | dev.to | 1 Apr 2024
    Another strategy is to model access control declaratively and enforce it in the application layer. ZenStack (built above Prisma ORM) and Hasura are good examples of this approach. The following code shows how access policies are defined with ZenStack and how a secured CRUD API can be derived automatically.
  • The 2024 Web Hosting Report
    37 projects | dev.to | 20 Feb 2024
    Today, this ecosystem is going strong with new providers like Hasura, AppWrite and Supabase powering millions of projects. There are a few reasons people choose this style of hosting, especially if they are more comfortable with frontend development. BaaS lets them set up a database in a secure way, expose some business logic on top of the data, and connect via a dev-friendly SDK from their app or website code to save data easily. These modern tools build a blend of managed database with curated plugins such as authentication, great admin dashboards, and function as a service type capability - all in one package, and often offered as a integrated hosted service.
  • Ask HN: Is There a Zapier for APIs?
    3 projects | news.ycombinator.com | 19 Feb 2024
    Hi! If you’ve ever thought about something like using GraphQL for something like this.. You might like Hasura. (Obligatory I work for Hasura)

    We’ve got an OpenAPI import and you can setup cron-jobs or one-off jobs and do things like load in headers from the environment variables to pass through. There isn’t currently an easy journey for chaining multiple calls together without writing any code at all, but you can wrap pretty much any API endpoint via OpenAPI import or a custom action, and you can even make minor edits to things like the API contract format to change aliases/naming.

    Our goal is to join all the things, databases and API’s. Most people know us for instant GraphQL API’s that give you CRUD on your database, but we also wrap APIs.

    Not sure if something like this would fit your use-case and do check out some of the other things mentioned, but depending what you are trying to do I think Hasura might potentially work.

    You can find out more here: https://hasura.io

  • Ask HN: What is the easiest way to create a CRUD web app in 2024?
    2 projects | news.ycombinator.com | 16 Feb 2024
  • 2024 Web Development Wish List
    7 projects | dev.to | 10 Jan 2024
    Nested Mutation - 113 thumbs up, and still open since 2019... another case of not listening to the users?
  • Hasura V3 Engine is in alpha
    1 project | news.ycombinator.com | 20 Dec 2023
  • Hasura: Instant GraphQL on your Postgres data
    1 project | news.ycombinator.com | 14 Dec 2023
  • Hasura and Keycloak integration with NestJS server
    5 projects | dev.to | 7 Dec 2023
    Hasura is an open-source real-time GraphQL API server with a strong authorization layer on your database. You can subscribe to database events via webhooks. It can combine multiple API servers into one unified graphQL API. Hasura is a great tool to build any CRUD GraphQL API. Hasura does not have any authentication mechanisms; e.g., you need an auth server to handle sign-up and sign-in.

What are some alternatives?

When comparing scotty and Hasura you can also consider the following projects:

lucid - Clear to write, read and edit DSL for writing HTML

supabase - The open source Firebase alternative.

reroute - Another Haskell web framework for rapid development

postgrest - REST API for any Postgres database

json - Haskell JSON library

Kong - 🦍 The Cloud-Native API Gateway and AI Gateway.

scotty-tls - Run your Scotty apps over TLS

crystal - 🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!

scotty-session - Adding session functionality to scotty

KrakenD - Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation

fluid - 🐙 Code-generated, Auto-versioned, & Smart Web APIs

Neo4j - Graphs for Everyone