Scala Metaprogramming

Open-source Scala projects categorized as Metaprogramming

Top 8 Scala Metaprogramming Projects

Metaprogramming
  1. Chimney

    Scala library for boilerplate-free, type-safe data transformations

    Project mention: Chimney alternatives - ducktape and MapStruct | libhunt.com/r/chimney | 2025-06-03
  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. scala.meta

    Library to read, analyze, transform and generate Scala programs

    Project mention: C++26: more constexpr in the core language | news.ycombinator.com | 2025-04-23

    > Combined with the extremely powerful compile-time reflection capabilities of D it's the closest thing I've seen to Lisp metaprogramming outside of that family of languages ...

    Scala gets pretty close to LISP-level of metaprogramming support between its intrinsic support for macros[0] (not to be confused with the C/C++ preprocessor of the same name) the Scalameta project[1], and libraries such as Shapeless[2].

    Not comparing Scala to D, just identifying a language with similar functionality.

    0 - https://docs.scala-lang.org/scala3/reference/metaprogramming...

    1 - https://scalameta.org/

    2 - https://github.com/milessabin/shapeless

  4. Scalafix

    Refactoring and linting tool for Scala

  5. ducktape

    Automatic and customizable compile time transformations between similar case classes and sealed traits/enums, essentially a thing that glues your code. Scala 3 only. Or is it duct 🤔

    Project mention: Chimney alternatives - ducktape and MapStruct | libhunt.com/r/chimney | 2025-06-03

    The actual Chimney-inspired alternative on Scala 3

  6. Squid

    Squid – type-safe metaprogramming and compilation framework for Scala (by epfldata)

  7. metabrowse

    Static site generator for code search with IDE features for Scala

  8. metaprogramming

    Course on Metaprogramming

    Project mention: Show HN: Tiny Hoare logic verifier using SMT | news.ycombinator.com | 2025-06-17
  9. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  10. dotty-patched

    Eval library and patched Scala-3/Dotty compiler. Evaluating source code and trees at compile time hacking multi-staging programming

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Scala Metaprogramming discussion

Log in or Post with

Scala Metaprogramming related posts

  • Chimney alternatives - ducktape and MapStruct

    3 projects | 3 Jun 2025
  • How could one write a "Simple" Rust?

    3 projects | /r/rust | 23 Oct 2022
  • Running tests from emacs

    1 project | /r/scala | 6 Apr 2022
  • Scala noob question. Parameter of type Option. Why does scala compiler allows passing null as an argument?

    1 project | /r/scala | 10 May 2021
  • The future of Scaladoc

    3 projects | /r/scala | 8 Mar 2021
  • Teaching exercises with custom error messages

    1 project | /r/scala | 2 Mar 2021
  • Haskell doesn't have macros

    2 projects | /r/haskell | 29 Dec 2020
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →

Index

What are some of the best open-source Metaprogramming projects in Scala? This list will help you:

# Project Stars
1 Chimney 1,231
2 scala.meta 1,142
3 Scalafix 860
4 ducktape 431
5 Squid 201
6 metabrowse 109
7 metaprogramming 72
8 dotty-patched 20

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com