pointfreeco/swift-dependencies
A dependency management library inspired by SwiftUI's "environment." observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- 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: 11.0
- age_days: 1434
- days_rel: 9
- days_push: 9
- n_releases_24m: 29
Adoption not part of the score
2185 stars · 189 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Swift dependency management library inspired by SwiftUI's environment, for controlling dependencies like API clients, dates, and file access. It enables fast deterministic tests, SwiftUI previews, and runtime warnings for unprepared dependencies.
Use cases
- inject mock dependencies into Swift unit tests
- make SwiftUI previews work with location or speech dependencies
- replace singletons with testable dependency injection in Swift
- control Date and UUID initializers for deterministic tests
- manage side effects in a Swift application architecture
When to choose
- you build Swift/SwiftUI apps and want deterministic, fast tests
- you need dependencies to work in SwiftUI previews and simulators
- you want compile-time-safe dependency injection in Swift
When to avoid
- your project is not in Swift
- you prefer heavyweight DI frameworks with code generation
- your codebase has no uncontrolled side effects to manage
Facets
library · maturity active
developer-tools testing middleware developer-tools mobile-development testing cross-platform dependency-injection swiftui testability swift-package pointfree swift ios macos
4 sources
- readme: https://github.com/pointfreeco/swift-dependencies · fetched 2026-08-28 · 26722c815717
- homepage: https://www.pointfree.co · fetched 2026-08-29 · 8c834d30d9e7
- site_page: https://www.pointfree.co/about · fetched 2026-08-29 · c3a02fbfb680
- site_page: https://www.pointfree.co/pricing · fetched 2026-08-29 · bc6fc313b3c6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pointfreeco/swift-dependencies | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="pointfreeco/swift-dependencies")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem