fx

A dependency injection based application framework for Go. (by uber-go)

Fx Alternatives

Similar projects and alternatives to fx

  1. go

    2,237 fx VS go

    The Go programming language

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. pandoc

    440 fx VS pandoc

    Universal markup converter

  4. sqlc

    181 fx VS sqlc

    Generate type-safe code from SQL

  5. Echo

    132 fx VS Echo

    High performance, minimalist Go web framework

  6. sqlx

    73 fx VS sqlx

    general purpose extensions to golang's database/sql

  7. Dagger2

    53 fx VS Dagger2

    A fast dependency injector for Android and Java.

  8. Buffalo

    52 fx VS Buffalo

    Discontinued Rapid Web Development w/ Go

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. gqlgen

    45 fx VS gqlgen

    go generate based graphql server library

  11. wire

    32 fx VS wire

    Compile-time Dependency Injection for Go

  12. goa

    41 fx VS goa

    Design-first Go framework that generates API code, documentation, and clients. Define once in an elegant DSL, deploy as HTTP and gRPC services with zero drift between code and docs.

  13. zerolog

    39 fx VS zerolog

    Zero Allocation JSON Logger

  14. fasthttp

    38 fx VS fasthttp

    Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http

  15. wild-workouts-go-ddd-example

    Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.

  16. go-kit

    32 fx VS go-kit

    A standard library for microservices.

  17. dig

    7 fx VS dig

    A reflection based dependency injection toolkit for Go.

  18. automaxprocs

    Automatically set GOMAXPROCS to match Linux container CPU quota.

  19. wire

    0 fx VS wire

    Strict Runtime Dependency Injection for Golang (by Fs02)

  20. run

    7 fx VS run

    A universal mechanism to manage goroutine lifecycles (by oklog)

  21. captcha

    0 fx VS captcha

    :sunglasses:Package captcha provides an easy to use, unopinionated API for captcha generation

  22. do

    7 fx VS do

    ⚙️ A dependency injection toolkit based on Go 1.18+ Generics.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better fx alternative or higher similarity.

fx discussion

Log in or Post with

fx reviews and mentions

Posts with mentions or reviews of fx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-18.
  • Year After Switching from Java to Go: Our Experiences
    23 projects | news.ycombinator.com | 18 Feb 2025
    And yet Uber wrote fx[1] to support DI in their golang services. It’s clearly a useful pattern when working on large services.

    [1]: https://github.com/uber-go/fx

  • Dependency Injection in Go: Comparing Wire, Dig, Fx & More
    5 projects | dev.to | 5 Feb 2025
    Fx is a framework built on top of Dig that provides structured dependency injection along with lifecycle management. It simplifies the setup of large applications by managing logging, dependency injection, and application startup.
  • Go dependency injection with Uber Fx and Echo
    3 projects | dev.to | 23 Nov 2024
    Uber Fx is a dependency injection framework for golang build by Uber which is integrated in all the golang services in Uber to have uniform structure of code across services, code reuse is easier and makes servers efficient. Echo is one of the most popular go webserver framework known for being high performant, extensible and minimalist.
  • I write HTTP services in Go after 13 years (Mat Ryer, 2024)
    12 projects | news.ycombinator.com | 9 Feb 2024
    I found fx(https://github.com/uber-go/fx) to be a super simple yet versatile tool to design my application around.

    All the advice in the article is still helpful, but it takes the "how do I make sure X is initialized when Y needs it" part completely out of the equation and reduces it from an N*M problem to an N problem, ie I only have to worry about how to initialize individual pieces, not about how to synchronize initialization between them.

    I've used quite a few dependency injection libraries in various languages over the years (and implemented a couple myself) and the simplicity and versatility of fx makes it my favorite so far.

  • go-ecommerce-microservices: A practical e-commerce microservices, built with cqrs, event sourcing, vertical slice architecture, event-driven architecture.
    8 projects | /r/golang | 26 Aug 2023
    Some of the features: - ✅ Using Vertical Slice Architecture as a high level architecture - ✅ Using Event Driven Architecture on top of RabbitMQ Message Broker with a custom [Event Bus](pkg/messaging/bus/) - ✅ Using Event Sourcing in Audit Based services like [Orders Service](services/orders/) - ✅ Using CQRS Pattern and Mediator Patternon top of Go-MediatR library - ✅ Using Dependency Injection and Inversion of Controlon top of uber-go/fx library - ✅ Using RESTFul api with Echo framework and using swagger with swaggo/swag library - ✅ Using Postgres and EventStoreDB to write databases with fully supports transactions(ACID) - ✅ Using MongoDB and Elastic Search for read databases (NOSQL) - ✅ Using OpenTelemetry for collection Distributed Tracing with using Jaeger and Zipkin - ✅ Using OpenTelemetry for collection Metrics with using Prometheus and Grafana - ✅ Using Unit Test for testing small units with mocking dependent classes and using Mockery for mocking dependencies - ✅ Using End2End Test and Integration Test for testing features with all of their real dependeinces using docker containers (cleanup tests) and testcontainers-go library
  • Gorilla,wow
    2 projects | /r/golang | 9 Jul 2023
    any take on https://github.com/uber-go/fx?
  • App init and graceful watch lib recommendations ?
    4 projects | /r/golang | 26 Apr 2023
    I’m not sure of much that can do all of that - maybe it’s a use case for https://github.com/uber-go/fx
  • How normal is it to stare at your screen, getting nothing done when stuck and waiting for help?
    1 project | /r/cscareerquestions | 26 Apr 2023
    If I still find myself stuck/waiting, I switch over to studying more about our team's main language Go. Currently looking around at Fx ( https://github.com/uber-go/fx ). Which is interesting, though I doubt we'll actually migrate anything for it, but might make a neat lunch and learn topic.
  • Zerolog printing logs multiple times
    2 projects | /r/golang | 19 Apr 2023
    Hello gophers, I am using https://github.com/uber-go/fx and https://github.com/rs/zerolog for logging.
  • Does this project structure make sense?
    6 projects | /r/golang | 5 Apr 2023
    Also, I like to use Uber FX for my DI stuff. You can check it out here:https://github.com/uber-go/fx
  • A note from our sponsor - SaaSHub
    www.saashub.com | 21 Mar 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic fx repo stats
36
6,228
7.2
about 1 month ago

uber-go/fx is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of fx is Go.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Go is
the 4th most popular programming language
based on number of references?