tapir VS dotty

Compare tapir vs dotty and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
tapir dotty
14 71
1,289 5,669
1.8% 2.1%
9.8 10.0
4 days ago 6 days ago
Scala Scala
Apache License 2.0 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.

tapir

Posts with mentions or reviews of tapir. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-21.
  • what library/framework should I use for backend development?
    3 projects | /r/scala | 21 Feb 2023
    You're not confined to the usual suggestions below (play, http4s). There's a ton of options. (I wrote test cases using a bunch of different frameworks a few years ago at https://github.com/hohonuuli/msdemos). Having written services using a variety of frameworks in production, I would strongly suggest using one that auto-generates API docs (openapi, swagger) for you. That will save you a huge amount of time later on. For heavier services, like the one at https://fathomnet.org/, I tend to the Java side (Quarkus is my current top choice, but Micronaut and Helidon are both great). For everything else I use Scala. My go-to right now is tapir using a vertx backend. See https://tapir.softwaremill.com/
  • Micronaut vs others(Spring Boot, Quarkus and co.)
    5 projects | /r/java | 10 Nov 2022
    Tapir is a Scala framework. (which runs on the JDK) Since the recent release of version 1.0, it's become my go to for many projects. It doens't provide much in the way of integrations with 3rd party frameworks, but I actually prefer that. It does autogenerate great swagger docs though.
  • Programming language comparison by reimplementing the same transit data app
    6 projects | news.ycombinator.com | 23 Oct 2022
    I do wonder where the recommendation to use http4s for beginners came from. http4s is a very capable library (and if you care much about composition it is excellent), but I wouldn't describe the documentation as beginner friendly.

    A slightly better starting point for scala 3 + type-safe server building is tapir e.g. https://github.com/softwaremill/tapir/blob/master/examples3/... . With that, you get a declarative definition of your endpoints (+ error types, auth, etc.) that you can use for both servers and clients, which comes very handy when writing integration tests of course.

    > absolutely ridiculous the fetishization of extremely complex FP and type-level hacking that goes on in the ecosystem

    An alternative way to look at it is that there is a lot of essential domain complexity that gets encoded via the type system to let the compiler do the hard work. That "extremely complex FP" does not arrive out of nowhere - I really recommend at least skimming through the slides from rossabaker, the http4s designer, that motivate where the core type signature comes from https://rossabaker.github.io/boston-http4s/#2

    I suppose one of the "features" that I like about the (typelevel) community is that the approach of "worse is better" is not taken, and a lot of effort is expended to make things correct, modular and orthogonal. This has the drawback of increased upfront complexity, that anecdotally pays off the moment your compiler does not error and the program runs as intended.

  • Scala.js AWS Lambda, using Scala 3
    6 projects | /r/scala | 13 Sep 2022
    Did you try tapir? There is a module for deploying aws lambda with Scala js. Not sure whether it is compatible with Scala 3, I am sticking with Scala 2 until Scala 3 gets more mature.
  • Library recommendations?
    4 projects | /r/scala | 9 Sep 2022
    I'm aware, but it's a design decision that was made on purpose, and which I find in practice not a big problem at all.
  • Monorepo: seeking for an advice for bi-lang project
    7 projects | /r/scala | 31 Jul 2022
    Backend is source of truth for types on frontend (backend generated OpenAPI definition with tapir, frontend takes it with orval)
  • Experienced dev new to Scala looking for a quick answer to get me on the right track - Advice on *standard* Scala framework stack to quickly set up a web-app backend ;
    2 projects | /r/scala | 3 Jul 2022
    In all cases I would strongly suggest to have a look at Tapir, regardless of the server implementation that you pick.
  • tAPIr 1.0 release [INFOGRAPHIC]
    1 project | /r/scala | 15 Jun 2022
    Check the infographic below, to see this tool history, functionalities and more. Make sure, to take tAPIr for a spin here and share your feedback with us in the comment section!
  • Scala vs Kotlin for REST API
    1 project | /r/scala | 11 Apr 2022
    Tapir is awesome, and you can pick the server backend according to your preferred ecosystem (for instance http4s + doobie, Zio + Quill, Akka + Slick, ...)
  • Resources for learning about http4s and Typelevel ecosystem?
    3 projects | /r/scala | 2 Feb 2022
    Finally I would strongly recommend having a look at Tapir. Even if you don't need to share endpoints or generate OpenAPI documentation, it provides a really neat abstraction on top of http4s.

dotty

Posts with mentions or reviews of dotty. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-13.
  • RustRover ā€“ A Standalone Rust IDE by JetBrains
    3 projects | news.ycombinator.com | 13 Sep 2023
    Dotty? Was it still the name later?

    http://dotty.epfl.ch/

  • Does the fthomas/refined library work differently in Scala 3?
    3 projects | /r/scala | 20 Jun 2023
    I think this might be related to this issue.
  • `boundary/break`: do you use it ? what do you do with it ?
    3 projects | /r/scala | 12 Jun 2023
    You can look (and EPFL collect feedback) about EPFL implementation of async/await: https://github.com/lampepfl/async. Also you can look at dotty ticket about this: https://github.com/lampepfl/dotty/pull/16739
  • Iron updates: turning opaque types into value objects
    2 projects | /r/scala | 6 Jun 2023
    The reason Iā€™m not currently an opaque type user as they do not play well with the tagless final style we use, though I am patiently awaiting some attention on my bug report: https://github.com/lampepfl/dotty/issues/17281
  • Reconnecting with Scala. What's new?
    7 projects | /r/scala | 24 May 2023
    Links: - https://dotty.epfl.ch/ - https://scala-native.org/en/stable/ - https://www.scala-js.org/ - https://typelevel.org/ - https://zio.dev/ - https://github.com/scala-native/scala-native/pull/3120 - https://github.com/lampepfl/dotty/pull/16517 - https://dotty.epfl.ch/docs/reference/experimental/index.html - https://scala-cli.virtuslab.org/ - https://scalameta.org/metals/ - https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html - https://www.scala-lang.org/blog/2023/04/18/faster-scalajs-development-with-frontend-tooling.html - https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html
  • About Scala-Native
    4 projects | /r/scala | 13 Apr 2023
    Scala Native has much more control on how the Scala AST is compiled, and can easier workaround platform limitations, eg. lazy vals in Scala 3 required reflection config for Native Image (see this and that), while in Scala Native we could mitigate problems with unsupported usage inside in other ways within the compiler plugin.
  • I've started writing a book on Scala 3 Macros
    1 project | /r/scala | 17 Mar 2023
    By the way, you might be interested in this recent PR which overhauls the scala 3 macro docs: https://github.com/lampepfl/dotty/pull/17060.
  • What is scala's modern Web API framework?
    5 projects | /r/scala | 7 Mar 2023
    For example, this issue (https://github.com/lampepfl/dotty/issues/12840) was blocking the migration, it was reported more than a year ago and the fix was finally released a month ago (https://github.com/lampepfl/dotty/releases/tag/3.3.0-RC2).
  • scala 3 does not have :javap. Does anyone have any tips how to get around this.
    2 projects | /r/scala | 22 Feb 2023
    For the record, there is an implementation of :javap which is close to being done but might need a volunteer to get it over the finish line: https://github.com/lampepfl/dotty/pull/12210
  • Is the Scala Center really working on Scala 4?
    1 project | /r/scala | 30 Jan 2023
    im glad to tell you that in 3.3.0 a lot of these -Wunused lints will be supported: see https://github.com/lampepfl/dotty/pull/16157

What are some alternatives?

When comparing tapir and dotty you can also consider the following projects:

smithy4s - https://disneystreaming.github.io/smithy4s/

sbt - sbt, the interactive build tool

http4s-jwt-auth - :lock: Opinionated JWT authentication library for Http4s

Scalatex - Programmable, Typesafe Document Generation

distage-example - Example project built using distage, tagless final, http4s, doobie and zio

scalajs-benchmark - Benchmarks: write in Scala or JS, run in your browser. Live demo:

scala-http-client - Extends the akka-http-client with retry logic, error handling, logging and signing

Mill - Your shiny new Java/Scala build tool!

pfps-shopping-cart - :shopping_cart: The Shopping Cart application developed in the book "Practical FP in Scala: A hands-on approach"

scalafmt - This repo is now a fork of --->

AkkaGRPC - Akka gRPC

Metals - Scala language server with rich IDE features šŸš€