Skip to main content
⚑ Production Ready

Django for Go,
Type-Safe from the Start

Build web applications in Go with Django's developer experience. Type-safe ORM, auto-generated admin, REST API framework, and code generationβ€”all with Go's performance.

15+
Core Features
100%
Type Safe
MVP
Complete
models/post.go
type Post struct {
    schema.BaseSchema
}

func (Post) Fields() []schema.Field {
    return []schema.Field{
        schema.Int64("id").
            Primary().AutoIncrement().Build(),
        schema.String("title").
            Required().MaxLength(200).Build(),
        schema.Text("content").Required().Build(),
        schema.Bool("published").
            Default(false).Build(),
        schema.Time("created_at").
            AutoNowAdd().Build(),
    }
}
query.go
posts, err := Post.Objects.
    Filter(Post.Fields.Published.Equals(true)).
    OrderBy("-created_at").
    Limit(10).
    All(ctx)

Everything You Need

15 complete features built with type safety, performance, and developer experience in mind

πŸ“‹

Schema System

Declarative model definitions with full Django field options, relationships, metadata, and lifecycle hooks.

βœ… Complete
βš™οΈ

Code Generation

AST-based code generation for models, managers, querysets, and field expressions. Generate type-safe code automatically.

βœ… Complete
πŸ”’

Type-Safe ORM

Complete Django-like ORM with QuerySet API, Manager CRUD operations, field expressions, and SQL builder.

βœ… Complete
πŸŽ›οΈ

Admin System

Django-style admin interface with type-safe configuration, CRUD operations, filters, widgets, and export.

βœ… Complete
🌐

REST API Framework

DRF-like REST API framework with serializers, viewsets, authentication, permissions, throttling, and more.

βœ… Complete
πŸ”

Filter System

Advanced filtering system with AST support, query parsing, expression conversion, and security validation.

βœ… Complete
πŸ‘€

Identity System

Complete user management and authentication system with repositories, services, backends, and permissions.

βœ… Complete
πŸ’Ύ

Database Layer

Database connection management, transactions, and migration integration with connection pooling.

βœ… Complete
πŸ”„

Migration System

Database schema migrations with detection, diff generation, execution, and rollback support.

βœ… Complete
πŸš€

HTTP & Server

HTTP server with routing, middleware stack, security, static files, and health checks.

βœ… Complete
πŸ“Š

Logging System

Structured logging with multiple outputs, formats, levels, and exporters for production-ready logging.

βœ… Complete
βš™οΈ

Configuration

Application configuration with YAML, JSON, and environment variable support with hierarchical overrides.

βœ… Complete
βœ“

Validation

Data validation with go-playground/validator integration and schema support for robust input validation.

βœ… Complete
πŸ›‘οΈ

Security

Security features including CSRF protection, XSS prevention, and SQL injection prevention built-in.

βœ… Complete
πŸ–₯️

CLI Tools

Command-line interface for project creation, code generation, migrations, and server management.

βœ… Complete

Built with Purpose

Core design principles that guide forge's development

πŸ”’

Type-Safe First

Primary API uses Go generics for compile-time type checking. All queries, models, and operations are type-safe.

⚑

Convention over Configuration

Sensible defaults everywhere. Django-like patterns and naming. Minimal boilerplate with auto-generated code.

πŸ”Œ

Fully Extensible

Everything can be extended or overridden. Plugin architecture, hook system, and custom validators, filters, widgets.

πŸ›‘οΈ

Security by Default

Built-in CSRF protection, XSS prevention, SQL injection prevention via parameter binding. Security features enabled by default.

Get Started in 5 Minutes

Create your first forge application and see it in action

1

Create Project

forge new myapp

Initialize a new forge project

2

Define Models

Define your schema

Declarative model definitions

3

Generate Code

forge generate

Generate type-safe code

4

Run Server

forge runserver

Start your application

Built for Scale

forge follows a layered architecture designed for maintainability and performance.

1

Application Layer

User models, views, controllers, routes

2

Code Generation Layer

AST Parser β†’ Schema Analysis β†’ Code Generator

3

Framework API Layer

Admin, API, ORM, Identity, Filter

4

Database Layer

SQL Builder, Query Execution, Transactions, Migrations

5

Infrastructure Layer

HTTP Server, Security, Logging, Config, Server

Ready to Build?

Join the community and start building amazing web applications with forge