Back to browse
GitHub Repository

Compile-time Dependency Injection for Go. Automated wiring, zero runtime overhead, and absolutely no magic.

10 starsGo

Flora – Compile-time Dependency Injection for Go without reflection

by soner3·Mar 8, 2026·2 points·1 comment

AI Analysis

●●●BangerBig BrainWizardry

Compile-time DI via AST—zero reflection, zero runtime cost, Go idioms intact.

Strengths
  • Genuine architectural innovation: parses Go AST to auto-discover components and generates Wire code, combining DX of reflection frameworks with compile-time safety
  • 100% test coverage and explicit non-reflection constraint appeals to Go purists who reject runtime magic
  • Native support for Go error handling and cleanup funcs (defer patterns) shows domain expertise, not just a wrapper
Weaknesses
  • Go DI is a solved category (Wire exists, Uber Fx mature); Flora competes on automation alone—the novelty is limited to Go shops already on Wire
  • Early-stage adoption risk: only 3 GitHub stars, unclear real-world usage at scale
Target Audience

Go backend developers building large-scale applications needing DI without reflection overhead

Similar To

Google Wire · Uber Fx · Spring (Java analog)

Similar Projects

Developer Tools●●Solid

Detect Drift in TypeScript codebases

AST-based contracts beat raw code for AI, but codebase analyzers are increasingly crowded.

Niche GemBig Brain
AmiteK
103mo ago