Back to directory
kubuszok avatar

hearth

The first Scala macros' standard library. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/kubuszok/hearth.git

160

Stars

8

Forks

3

Watchers

Apache-2.0

License

Hearth logo

Hearth

CI build License Join the discussions at https://github.com/kubuszok/hearth/discussions

The first Scala macros' standard library.

Goals:

  • being able to build the code with Types, Exprs and high-level utilities that operate on them - limiting the need for AST and Symbols manipulation
  • cross-compilable API, allowing reuse of the macro code for both Scala 2 and Scala 3
  • exhaustive documentation lowering the barrier of entry
  • no dependencies on additional ecosystems (some FP-utilities are already provided!)
  • promote best-practices in macro development, to deliver great developer experience

Call for Feedback

Hearth is an evolution of the chimney-macro-commons idea, but one that could serve not only the Chimney but also any other library that uses macros.

The current version has all planned features, beside bugfixes no further changes will be made unless community will request for them or contribute them.

Please, take a look at Roadmap for more information about what is already done.

See Chimney, Kindlings, Pipez and Refined-compat for examples how Hearth can be used to implement a macro-powered library.

Contribution

If you want to help get this library released, first, thank you, and second, please see CONTRIBUTING.md.

Releases

Jul 14, 2026

0.4.1 - Compile-Time Performance, 30+ Fixes, and copyMethod / Expr.annotated / Type.Lazy APIs

Download .zip

0.4.1 is a polish and quality-of-life release. Chimney is now Hearth-powered — and it got there on 0.4.0, without waiting for anything in this release; where it met a rough edge it simply worked aroun...

Jun 26, 2026

0.4.0 - Method Builder Chain, DestructuredExpr, AnonymousInstance, ExprCodec.derived, Union Soundness, and Call-Site Scopes

Download .zip

After the 0.3.x line wrapped up with the "more exciting things to come in 0.4.0!" promise, here it is — the release where Hearth grew the building blocks for real derivation and metaprogramming librar...

Jun 11, 2026

0.3.1 - Expr.semiEval, Type.CtorK1, JDK Futureproofing, and a New Logo

Download .zip

The 0.3.1 release adds a few things to the 0.3.x line, that I didn't waned to wait with, but also ones that should not break existing libraries based on 0.3.0. (More exciting things to come in 0.4.0!)...

Mar 27, 2026

0.3.0 - Standard Extensions, Union Types, Rules, Flame Graphs, MIO Timeouts, hearth-munit, and Much More

Download .zip

This is the biggest Hearth release so far: a major feature release that introduces Standard Extensions — a pluggable type-inspection framework — along with union types support, rule-based derivation,...

Nov 20, 2025

0.2.0 - Overall improvements, ValDefs builders and cache, Better Printers, more robust Cross Quotes and More

Download .zip

This release delivers the full scope planned for the 0.2.x milestone: refining everything introduced in 0.1.0, strengthening stability, improving ergonomics, and expanding documentation and tooling. H...