Your Go backend.
Clean from the start.
Stop repeating boilerplate. Generate production-ready Go backend projects with Clean Architecture, database integrations, dependency injection, and developer-friendly tooling.
Start clean. Build faster. Ship better.
Download
Install gostrata on any platform.
Download gostrata Setup and it installs Go and gostrata for you.
Linux
Graphical installer
Download gostrata Setup for LinuxMake it executable first: chmod +x gostrata-setup-linux.AppImage
Windows
Graphical installer
Download gostrata Setup for WindowsWindows may show a SmartScreen warning because the app is not code-signed. Click More info, then Run anyway.
macOS
Graphical installer
Download gostrata Setup for macOSmacOS may block the app because it is not code-signed. Right-click it, choose Open, then confirm.
Setup is open source: view the source. Looking for the CLI only? See all releases.
Features
Everything a backend needs, decided once.
gostrata makes the structural decisions for you, so the first commit is already the shape of a maintainable service.
Clean Architecture
Domain, Usecase, Delivery and Infrastructure layers with dependencies pointing inward.
Multiple HTTP frameworks
Pick Gin or Chi. The delivery layer is generated for the one you choose.
Database support
PostgreSQL, MySQL and SQLite, wired up with connection config and migrations.
ORM integration
GORM is configured out of the box, behind repository interfaces.
Module generator
Generate entities, DTOs, repositories, usecases, handlers, migrations and route registration in one command.
Configuration
Viper-based configuration, loaded once and injected where it is needed.
Structured logging
Zerolog integration with fast, leveled, structured output.
Graceful shutdown
A production-friendly server lifecycle that drains requests before exit.
Docker Compose
A Dockerfile for the API and a ready-to-run Compose file for your PostgreSQL or MySQL database.
Hot reload
Air integration so changes rebuild and restart the server automatically.
Dry run
Preview every file gostrata would create before anything touches your disk.
How it works
Three steps from empty directory to running API.
- 01
Install gostrata
bashgo install github.com/skryfon-org/gostrata@latest - 02
Create a new Go project
bashgostrata new my-saas cd my-saas - 03
Generate modules and build
bashgostrata make:module Product name:string price:float stock:int
The architecture it generates
Dependencies point toward the domain. Business logic never imports a framework or a database driver.
- Delivery
- HTTP handlers, routing and request/response DTOs. Translates the outside world into usecase calls.
- Usecase
- Application business rules. Orchestrates entities and depends only on domain interfaces.
- Domain
- Entities and repository interfaces. The core of the app, with no outward dependencies.
- Infrastructure
- Databases, GORM repositories, config and logging. Implements the interfaces the domain declares.
Command reference
A small CLI with a clear surface.
Three commands cover the workflow from install to a fully wired feature module.
Install
Installs the gostrata binary into your GOBIN directory.
Syntax
go install github.com/skryfon-org/gostrata@latestExample
go install github.com/skryfon-org/gostrata@latestgostrata new
Creates a new Go backend project with the Clean Architecture layout.
Syntax
gostrata new <project-name>Example
gostrata new my-projectgostrata make:module
Generates an entity, DTOs, repository, usecase, handler, migration and route registration for a module.
Syntax
gostrata make:module <Name> [field:type ...]Example
gostrata make:module Product name:string price:float stock:intNeed more? Read the full command documentation.
Project structure
A layout you can navigate on day one.
Click through the generated project. Folders expand, and every entry explains its role.
Selected
internal/
Private application code, organised by Clean Architecture layer.
Framework support
Built on tools Go teams already trust.
Supported today
- Go(supported)
- Gin(supported)
- Chi(supported)
- GORM(supported)
- PostgreSQL(supported)
- MySQL(supported)
- SQLite(supported)
- Docker(supported)
- Air(supported)
Roadmap
What comes next.
These integrations are planned. They are not available in the current release.
Echo
HTTP framework
Planned
Fiber
HTTP framework
Planned
sqlx
Database toolkit
Planned
Bun
ORM
Planned
Ent
ORM
Planned
Worldwide
Developers using gostrata around the world.
Be the first dot on the map: download gostrata or copy an install command.
Community
Open source. Built for Go developers.
gostrata is open source and welcomes contributions from the Go community.
Go package reference: pkg.go.dev/github.com/skryfon-org/gostrata