{"id":3216,"url":"https://github.com/appsquickly/pilgrim","last_synced_at":"2025-08-02T14:05:27.624Z","repository":{"id":37796856,"uuid":"321927655","full_name":"appsquickly/pilgrim","owner":"appsquickly","description":"Dependency injection for Swift (iOS, OSX, Linux). Strongly typed, pure Swift successor to Typhoon. ","archived":false,"fork":false,"pushed_at":"2023-02-11T00:55:25.000Z","size":26004,"stargazers_count":66,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-20T22:25:21.834Z","etag":null,"topics":["appsquickly","dependency-injection","di","inversion-of-control","ioc","ioc-container","ios","objective-c","pilgrim","swift","typhoon"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appsquickly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-12-16T09:09:21.000Z","updated_at":"2025-04-29T03:03:27.000Z","dependencies_parsed_at":"2024-01-28T08:21:26.628Z","dependency_job_id":null,"html_url":"https://github.com/appsquickly/pilgrim","commit_stats":{"total_commits":77,"total_committers":5,"mean_commits":15.4,"dds":0.4415584415584416,"last_synced_commit":"1043d9409e9890498fe349718fd27f10f5612070"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/appsquickly/pilgrim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsquickly%2Fpilgrim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsquickly%2Fpilgrim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsquickly%2Fpilgrim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsquickly%2Fpilgrim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appsquickly","download_url":"https://codeload.github.com/appsquickly/pilgrim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsquickly%2Fpilgrim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268401581,"owners_count":24244461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appsquickly","dependency-injection","di","inversion-of-control","ioc","ioc-container","ios","objective-c","pilgrim","swift","typhoon"],"created_at":"2024-01-05T20:16:34.736Z","updated_at":"2025-08-02T14:05:27.594Z","avatar_url":"https://github.com/appsquickly.png","language":"Swift","funding_links":[],"categories":["Dependency Injection"],"sub_categories":["Getting Started","Web View"],"readme":"\u003ca href=\"https://pilgrim.ph\"\u003e ![PilgrimSplash](https://pilgrim.ph/splash.jpg)\u003c/a\u003e\n# \u003ca href=\"https://pilgrim.ph\"\u003epilgrim.ph\u003c/a\u003e\n\nPilgrim is a dependency injection library for Swift with the following features:\n\n* Minimal runtime-only library that works with pure Swift (structs, classes, protocols) as well as ObjC base classes, when necessary.\n* Easy to install. Works on iOS, Mac \u0026 Linux. No compile-time weaving required.   \n* Type safe. No reflection or ObjC runtime, because it is pure swift. (Uses higher-order functions.) \n* Lifecycles management: `shared`, `weakShared`, `objectGraph` (a DI concept introduced by [Typhoon](https://github.com/appsquickly/typhoon), for desktop and pocket apps) \u0026 `unshared`. \n* Can be used with SwiftUI, UIKit and Cocoa based apps.     \n* Simple and flexible. For example, it is easy to have two injectable instances that conform to the same protocol. \n* Provides the notion of a [composition root](https://freecontent.manning.com/dependency-injection-in-net-2nd-edition-understanding-the-composition-root/) in which the key actors, and their interactions in an application architecture are defined as a graph. This is where your app's architectural story is told. Assembled instances can then be injected into top level classes, such as a view controller, in a UIKit app, using property wrappers. \n* Runtime args. Can act as a factory for emitting new instances derived from a mix of runtime parameters and key architectural actors. \n* **Official successor to [Typhoon](https://github.com/appsquickly/typhoon) and based on the excellent [FieryCrucible](https://github.com/jkolb/FieryCrucible) by [jkolb](https://github.com/jkolb).**\n\nYou can use Pilgrim in apps that employ the object-oriented programming paradigm or that mix object-oriented and functional styles.\n\n---------------------------------------\n\n## Quick Start\n\nWant to start applying dependency injection to your code in two minutes? **Follow the [Quick Start](https://github.com/appsquickly/pilgrim/wiki) guide!**\n\n```swift \nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n    @Assembled var assembly: ApplicationAssembly\n    @Assembled var cityRepo: CityRepository\n    @Assembled var rootViewController: RootViewController\n\n    var window: UIWindow?\n\n    func application(_ application: UIApplication,\n                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -\u003e Bool {\n        \n        window = assembly.window()\n        window?.makeKeyAndVisible()\n\n        if (cityRepo.loadSelectedCity() == nil) {\n            rootViewController.showCitiesListController()\n        }\n        return true\n    }\n}\n```\n_Here's how your code might look, when you're done with the [quick start](https://github.com/appsquickly/pilgrim/wiki)._\n\n\n## Installation \n\n### CocoaPods \n\n```\npod 'Pilgrim-DI'\n```\n\nOther installation methods (Swift Package Manager, etc) coming soon!\n\n----\n\n## Sample App\n\nHere's a [sample app](https://github.com/appsquickly/pilgrim-starter) / starter template, to get up and running quickly. \n\n----\n\n## User Guide\n\nThe best way to get up and running is to try the quick start and sample app. After that the [User Guide](https://github.com/appsquickly/pilgrim/wiki/) is your reference. \n\n---------------------------------------\n\n## What is Dependency Injection? \n\nNot sure? There's an introduction on the [pilgrim.ph](https://pilgrim.ph) website. Head on over and take a look. We'll meet back here. \n\n## Feedback\n\n#### I'm not sure how to do [xyz]\n\n\u003e If you can't find what you need in the Quick Start or User Guides, please [post a question on StackOverflow](https://stackoverflow.com/questions/tagged/pilgrim?sort=newest\u0026pageSize=15), using the pilgrim tag.\n\n#### Interested in contributing?\n\n\u003e Great! A contribution guide, along with detailed documentation will be published in the coming days.\n\n#### I've found a bug, or have a feature request\n\n\u003e Please raise a \u003ca href=\"https://github.com/appsquickly/pilgrim/issues\"\u003eGitHub\u003c/a\u003e issue.\n\n----\n\n## Who is using it?\n\nAre you using Pilgrim and would like to support free \u0026 open-source software? Send us an email or PR to add your logo here.\n\n----\n\n### Have you seen the light?\n\nPilgrim is a non-profit, community driven project. We only ask that if you've found it useful to star us on Github or send a tweet mentioning us (\u003ca href=\"https://twitter.com/@doctor_cerulean\"\u003e@doctor_cerulean\u003c/a\u003e). If you've written a Pilgrim related blog or tutorial, or published a new Pilgrim-powered app, we'd certainly be happy to hear about that too.\n\nPilgrim is sponsored and led by \u003ca href=\"https://appsquick.ly\"\u003eAppsQuick.ly\u003c/a\u003e with \u003ca href=\"https://github.com/appsquickly/pilgrim/graphs/contributors\"\u003econtributions from around the world\u003c/a\u003e.\n \n---------------------------------------\n\n## License\n\nCopyright (c) 2020 Pilgrim Contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsquickly%2Fpilgrim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappsquickly%2Fpilgrim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsquickly%2Fpilgrim/lists"}