Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. Moya

Moya

MITSwift15.0.3

A network abstraction layer for Swift that encapsulates Alamofire with compile-time endpoint safety.

Visit WebsiteGitHubGitHub
15.4k stars2.0k forks0 contributors

Overview

Network abstraction layer written in Swift.

Use Cases

Not Ideal For

  • Projects requiring dynamic API endpoint definitions at runtime
  • Teams that prefer to minimize dependencies and use raw Alamofire or URLSession directly
  • Applications built with networking libraries other than Alamofire

Pros & Cons

Pros

Compile-Time Safety

Uses Swift enums to define endpoints, ensuring API correctness is checked during compilation and preventing common runtime errors like typos in URLs.

Testing Made Simple

Treats test stubs as first-class citizens, allowing easy mocking of network responses with MoyaProvider's stubbing capabilities for reliable unit tests.

Reactive Framework Support

Offers built-in extensions for ReactiveSwift, RxSwift, and Combine, seamlessly integrating with reactive programming patterns without extra boilerplate.

Structured Endpoint Management

Encapsulates URL, parameters, and methods within enum cases, reducing boilerplate and improving code clarity compared to ad-hoc network layers.

Cons

Additional Abstraction Layer

Adds complexity on top of Alamofire, which can be overkill for simple network tasks and increases initial setup and learning effort for small projects.

Static Endpoint Definitions

Relies on compile-time enums, making it less flexible for APIs that need to be defined or modified dynamically at runtime, such as those with user-generated endpoints.

Version Management Overhead

Requires careful attention to compatibility with Swift versions and dependent frameworks, as shown in the detailed version table, which can lead to breaking changes during updates.

Frequently Asked Questions

Quick Stats

Stars15,358
Forks1,996
Contributors0
Open Issues158
Last commit1 month ago
CreatedSince 2014

Tags

#hacktoberfest#ios#unit-testing#alamofire#type-safety#reactive-programming#api-client#mobile-development#swift#reactiveswift#networking#rxswift

Built With

A
Alamofire
S
Swift

Links & Resources

Website

Included in

iOS51.7kSwift26.0k
Auto-fetched 9 hours ago

Related Projects

AlamofireAlamofire

Elegant HTTP Networking in Swift

Stars42,424
Forks7,658
Last commit17 hours ago
AFNetworkingAFNetworking

A delightful networking framework for iOS, macOS, watchOS, and tvOS.

Stars33,386
Forks10,604
Last commit3 years ago
ShadowsocksX-NGShadowsocksX-NG

Next Generation of ShadowsocksX

Stars32,885
Forks7,753
Last commit1 year ago
CocoaAsyncSocketCocoaAsyncSocket

Asynchronous socket networking library for Mac and iOS

Stars12,447
Forks2,988
Last commit9 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub