uber-go/fx

A dependency injection based application framework for Go.

Go

7,700

763 commits

updated Dec 27, 2025

See the code

README

:unicorn: Fx GoDoc Github release Build Status Coverage Status Go Report Card

Fx is a dependency injection system for Go.

Benefits

  • Eliminate globals: Fx helps you remove global state from your application. No more init() or global variables. Use Fx-managed singletons.
  • Code reuse: Fx lets teams within your organization build loosely-coupled and well-integrated shareable components.
  • Battle tested: Fx is the backbone of nearly all Go services at Uber.

See our docs to get started and/or learn more about Fx.

Installation

Use Go modules to install Fx in your application.

go get go.uber.org/fx@v1

Getting started

To get started with Fx, start here.

Stability

This library is v1 and follows SemVer strictly.

No breaking changes will be made to exported APIs before v2.0.0.

This project follows the Go Release Policy. Each major version of Go is supported until there are two newer major releases.

Stargazers over time

Stargazers over time

app-framework
dependency-injection
framework
go
golang
service

Significant stargazers

(top 24 of 58)

Mikhail Mazurskiy

248 followers · starred Sep 2019

David Dias

1,314 followers · starred Aug 2020

Kevin Wang

128 followers · starred Oct 2023

BIKI DAS

153 followers · starred Feb 2026

uber-go/fx

A dependency injection based application framework for Go.

Go

7,700

763 commits

updated Dec 27, 2025

See the code

README

:unicorn: Fx GoDoc Github release Build Status Coverage Status Go Report Card

Fx is a dependency injection system for Go.

Benefits

  • Eliminate globals: Fx helps you remove global state from your application. No more init() or global variables. Use Fx-managed singletons.
  • Code reuse: Fx lets teams within your organization build loosely-coupled and well-integrated shareable components.
  • Battle tested: Fx is the backbone of nearly all Go services at Uber.

See our docs to get started and/or learn more about Fx.

Installation

Use Go modules to install Fx in your application.

go get go.uber.org/fx@v1

Getting started

To get started with Fx, start here.

Stability

This library is v1 and follows SemVer strictly.

No breaking changes will be made to exported APIs before v2.0.0.

This project follows the Go Release Policy. Each major version of Go is supported until there are two newer major releases.

Stargazers over time

Stargazers over time

app-framework
dependency-injection
framework
go
golang
service

Significant stargazers

(top 24 of 58)

Mikhail Mazurskiy

248 followers · starred Sep 2019

David Dias

1,314 followers · starred Aug 2020

Kevin Wang

128 followers · starred Oct 2023

BIKI DAS

153 followers · starred Feb 2026