Moya/Moya
Network abstraction layer written in Swift. observed · 2026-08-28
Health v2 · maintenance only
64/100
- Activity 92
- Release rhythm 8
- 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: n/a
- age_days: 4400
- days_rel: n/a
- days_push: 50
- n_releases_24m: 0
Adoption not part of the score
15358 stars · 2000 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Moya is a Swift network abstraction layer that encapsulates Alamofire calls behind typed, enum-based API endpoints. It provides compile-time endpoint checking and first-class test stubs for easy unit testing of network code.
Use cases
- abstract api networking in an ios app
- replace ad hoc apimanager network layers in swift
- define api endpoints with swift enums
- unit test network requests with stubs
- wrap alamofire behind a cleaner interface
When to choose
- you build iOS/macOS apps in Swift and already use Alamofire
- you want compile-time checked, enum-based endpoint definitions
- easy network stubbing for unit tests is a priority
When to avoid
- you need a cross-platform HTTP client outside the Apple/Swift ecosystem
- you prefer direct control of URLSession or lightweight request code
- your project doesn't use Alamofire or reactive frameworks
Facets
library · maturity stable
http-client middleware testing web-development developer-tools apis alamofire network-abstraction api-client reactive-extensions unit-testing-stubs swift ios macos
2 sources
- readme: https://github.com/Moya/Moya · fetched 2026-08-28 · a0eb8736764b
- homepage: https://moya.github.io · fetched 2026-08-29 · 89c2c86e6e5d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Moya/Moya | main | 64 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem