Ross ROSS = Recommend OSS · open-source software intelligence for agents

softwaremill/macwire

Zero-cost, compile-time, type-safe dependency injection library. observed · 2026-08-28

github.com/softwaremill/macwire · homepage · Scala · Apache-2.0 (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
softwaremill/macwiremain80

For agents

markdown · JSON · MCP: product_card(name="softwaremill/macwire")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem