gofrLogo

An Opinionated Go Framework

For accelerated microservice development

Want to evaluate and adopt GoFr at your org? block our calendar.
main.go
main_test.go
package main
import "gofr.dev/pkg/gofr"
func main() {
app := gofr.New()
app.GET("/hello", func(c *gofr.Context) (interface{}, error) {
return "Hello GoFr!", nil
})
app.Run()
}

Trusted by 3500+ Developers at Companies Like:

Transistor
Transistor
Transistor
Transistor
Transistor
Transistor
Transistor
Transistor
Transistor

Battle-Tested at Enterprise Scale

Built over years running production workloads at great scale in a variety of industries.

Out-of-the-box Observability

Goodness of Metrics, Traces and Logs without a single line of code. Traces to OpenTelemetry compatible providers, Metrics in Prometheus Format.

REST Standards by default

Default behaviour is how 'you' would design a REST API. Status codes, response formats - all taken care of by GoFr automagically.

Middleware support

Elevate productivity effortlessly with predefined middleware, while retaining flexibility through seamless integration of custom middleware tailored to your specific needs.

Environment-based config

Following the 12-factor config principles for maintaining application configurations, simplify the integration of data sources like MySQL, Postgres, Kafka, Google Pubsub, NATS JetStream and others.

Crash Handling

GoFr catches panics and automatically recovers to maintain continuous availability of your server.

Built-in support for popular databases and messaging systems

TransistorTransistorTransistorTransistorTransistorTransistorTransistorTransistorTransistorTransistor

"Beyond the technical aspects, the GoFr community has been a highlight. The core team's responsiveness to issues and feature requests demonstrates their dedication to continuous improvement. Reviewing merge requests has been consistently positive; the team embraces feedback and actively explores alternative approaches, fostering a collaborative and productive development environment."

C

Christophe Colombier

Senior Developer | Open Source Enthusiast

"GoFr has helped me monitor my applications so easily for which I would have written more than 100 lines of code, and integrating everything together would have been a nightmare."

S

Shridhar Vijay Kumar

Software Engineer, Doceree

"We want to express our appreciation for the excellent framework you have developed. Integrating NATS into this package has significantly streamlined our application development process and accelerated implementation timelines."

M

Manosh Malai

CTO, Mydbops

"What I like about GoFr is that it plays well with the standard CI/CD infrastructure, deployment environment, and every additional tool in between. Also, it solves for the 80% cases, thus, ensuring we only focus on our core business."

P

Praveen Kumar

Founder, apnerve labs

"The strong opinions embedded in GoFr.dev make it incredibly efficient and straightforward to work with. It's like having a trusted expert guiding your every move. The framework's Golang foundation ensures exceptional performance and reliability. If you're serious about microservices, this is a must-try"

V

Vineet Dwivedi

Founder & CEO, LaunchX

"Productivity has skyrocketed since adopting this framework. The simplicity of GoLang compared to other frameworks makes it incredibly easy to learn and use, allowing us to onboard new developers quickly. Additionally, the framework's design encourages writing clean, maintainable code, making long-term scalability a breeze."

A

Aayush Mishra

Data Analyst, American Express