needle
« Back to VersTracker
Description:
Compile-time safe Swift dependency injection framework with real code
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: swift dependency-injection ios-development compile-time architecture
Install: brew install needle
About:
Needle is a Swift dependency injection framework that generates code at compile-time to ensure type safety and catch errors early. It eliminates the need for runtime reflection, offering high performance and enabling straightforward debugging. This makes it ideal for large-scale Swift applications requiring robust and maintainable architecture.
Key Features:
  • Compile-time code generation for safety
  • No runtime reflection overhead
  • Scalable for large codebases
  • Facilitates easy unit testing
Use Cases:
  • Managing dependencies in large iOS applications
  • Improving testability of Swift code
  • Refactoring legacy codebases to use dependency injection
Alternatives:
  • Swinject – Swinject uses runtime reflection, which is easier to set up but lacks Needle's compile-time safety and performance.
  • Resolver – Resolver is a lightweight runtime solution, whereas Needle requires a build phase plugin but provides stronger guarantees.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 7:53am 0 VERSION_BUMP 0dc13a91
Dec 27, 2024 2:27am 0 VERSION_BUMP f5974e6b
Dec 26, 2024 8:02pm 0 VERSION_BUMP 7806aa9a
Sep 18, 2024 4:07pm 0 VERSION_BUMP 54ee2236