Forge your backend your way.

Forge is an opinionated distributed backend framework with everything in between. Dependency injection, routing, middleware, OpenAPI, and more.

go get github.com/xraph/forge

Everything you need. Nothing you don't.

Forge brings together the best practices and patterns from modern backend development, all in one opinionated framework.

Dependency Injection

Built-in DI container for clean, testable code with automatic service resolution.

Smart Routing

Type-safe routing with automatic parameter validation and OpenAPI generation.

Security First

Built-in authentication, authorization, and rate limiting out of the box.

High Performance

Optimized for speed with minimal overhead and efficient resource usage.

Observability

Integrated logging, metrics, and distributed tracing for production insights.

Modular Design

Use only what you need. Every feature is optional and pluggable.

OpenAPI

Automatic API documentation generation from your code structure.

Extensible

Easy to extend with middleware, custom validators, and plugins.

Production Ready

Battle-tested patterns and best practices baked into the framework.

POWERFUL FEATURES

See what Forge can do.

Explore the features that make Forge the perfect choice for your backend.

Clean & Expressive

Write beautiful, maintainable code with intuitive APIs

package main

import "github.com/xraph/forge"

func main() {
    app := forge.New()
    
    app.Get("/hello", func(c *forge.Context) {
        c.JSON(200, map[string]string{
            "message": "Hello from Forge!",
        })
    })
    
    app.Run(":8080")
}
100k+
req/sec

Lightning Fast

Handle 100k+ requests per second

Built-in Observability

Monitor everything out of the box

Enterprise Security

Production-grade security by default

Rich Ecosystem

Integrate with your favorite tools

Proven at scale.

Join thousands of developers building the next generation of backends.

0+
Extensions
Community extensions available
0k+
Req/Sec
Blazing fast performance
0%
Uptime
Production reliability
0+
Contributors
Active open source community

Try it yourself.

Explore interactive examples and see how easy it is to build with Forge.

main.go
package main

import "github.com/xraph/forge"

func main() {
    app := forge.New()
    
    app.Get("/", func(c *forge.Context) {
        c.JSON(200, map[string]string{
            "message": "Hello, Forge!",
        })
    })
    
    app.Run(":8080")
}
Output
{"message": "Hello, Forge!"}
USE CASES

Built for any backend.

From microservices to monoliths, Forge adapts to your needs.

Microservices

Build scalable microservices with service discovery and distributed tracing.

10x faster deployment

Cloud Native

Deploy anywhere with Docker, Kubernetes, and cloud-agnostic design.

99.99% uptime

Data APIs

Create powerful REST and GraphQL APIs with automatic documentation.

Auto-generated docs

Real-time

WebSocket and SSE support for real-time features out of the box.

Zero latency

E-commerce

Build high-performance e-commerce backends with payment integrations.

1M+ transactions

Mobile Backend

Perfect for mobile apps with optimized APIs and push notifications.

Native mobile support

Explore the SDK.

Learn how to use Forge Framework and Forge CLI through interactive examples.

INITforge.NewApp()

Initialize a new Forge application

Parameters

configConfig

Application configuration

options...Option

Optional app configuration

Stay in the loop.

Get the latest updates, tutorials, and release notes delivered to your inbox.

Join 10,000+ developers. Unsubscribe anytime.