softwaremill/macwire
Zero-cost, compile-time, type-safe dependency injection library. observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 99
- Release rhythm 45
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 4917
- days_rel: 366
- days_push: 9
- n_releases_24m: 8
Adoption not part of the score
1314 stars · 77 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
MacWire is a zero-cost, compile-time, type-safe dependency injection library for Scala built on macros. It generates instance-creation code automatically, avoiding boilerplate and runtime overhead while keeping classes free of annotations or conventions.
Use cases
- wire dependencies in a Scala application without runtime reflection
- eliminate boilerplate `new` instance creation code in Scala modules
- get compile-time errors for missing dependencies instead of runtime failures
- autowire class graphs using constructors and apply methods
- collect all instances of a type into a List or Set for multi-binding
- compose application modules with scopes and lazy initialization
When to choose
- you write Scala and want type-safe DI with no runtime overhead
- you prefer constructor-based wiring without annotations or container configuration
- you want dependency errors caught at compile time
- you target Scala JVM, JS, or Native platforms
When to avoid
- you need runtime- or container-based DI with dynamic service lookup
- your project is not in Scala
- you need features unavailable for your specific Scala version
- you rely on runtime plugin discovery or late binding
Facets
library · maturity stable
developer-tools developer-tools backend programming-languages jvm cross-platform dependency-injection scala macros compile-time type-safe zero-cost
4 sources
- readme: https://github.com/softwaremill/macwire · fetched 2026-08-28 · 9817bfac4c81
- homepage: https://softwaremill.com/open-source/ · fetched 2026-08-29 · ebbb9106d79a
- site_page: https://softwaremill.com/about-us · fetched 2026-08-29 · 3bf9cbf7100c
- site_page: https://softwaremill.com/how-we-work · fetched 2026-08-29 · 36a836a630d7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| softwaremill/macwire | main | 80 |
For agents
markdown · JSON · MCP: product_card(name="softwaremill/macwire")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem