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.
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(),
}
}posts, err := Post.Objects.
Filter(Post.Fields.Published.Equals(true)).
OrderBy("-created_at").
Limit(10).
All(ctx)15 complete features built with type safety, performance, and developer experience in mind
Declarative model definitions with full Django field options, relationships, metadata, and lifecycle hooks.
AST-based code generation for models, managers, querysets, and field expressions. Generate type-safe code automatically.
Complete Django-like ORM with QuerySet API, Manager CRUD operations, field expressions, and SQL builder.
Django-style admin interface with type-safe configuration, CRUD operations, filters, widgets, and export.
DRF-like REST API framework with serializers, viewsets, authentication, permissions, throttling, and more.
Advanced filtering system with AST support, query parsing, expression conversion, and security validation.
Complete user management and authentication system with repositories, services, backends, and permissions.
Database connection management, transactions, and migration integration with connection pooling.
Database schema migrations with detection, diff generation, execution, and rollback support.
HTTP server with routing, middleware stack, security, static files, and health checks.
Structured logging with multiple outputs, formats, levels, and exporters for production-ready logging.
Application configuration with YAML, JSON, and environment variable support with hierarchical overrides.
Data validation with go-playground/validator integration and schema support for robust input validation.
Security features including CSRF protection, XSS prevention, and SQL injection prevention built-in.
Command-line interface for project creation, code generation, migrations, and server management.
Core design principles that guide forge's development
Primary API uses Go generics for compile-time type checking. All queries, models, and operations are type-safe.
Sensible defaults everywhere. Django-like patterns and naming. Minimal boilerplate with auto-generated code.
Everything can be extended or overridden. Plugin architecture, hook system, and custom validators, filters, widgets.
Built-in CSRF protection, XSS prevention, SQL injection prevention via parameter binding. Security features enabled by default.
Create your first forge application and see it in action
forge new myappInitialize a new forge project
Define your schemaDeclarative model definitions
forge generateGenerate type-safe code
forge runserverStart your application
forge follows a layered architecture designed for maintainability and performance.
User models, views, controllers, routes
AST Parser β Schema Analysis β Code Generator
Admin, API, ORM, Identity, Filter
SQL Builder, Query Execution, Transactions, Migrations
HTTP Server, Security, Logging, Config, Server
Join the community and start building amazing web applications with forge