All frameworks

Go stdlib Project Generator.

Scaffold a ready-to-run Go stdlib API for Go with a clean project structure, sqlx ORM, SQLite database, and Go modules for dependencies in one command. The code is yours, with no runtime dependency on TriStack.

Why Go stdlib

Since Go 1.22, the standard library's http.ServeMux supports methods and path parameters, so many APIs need no framework at all. This stack uses net/http with sqlx and zero routing dependencies.

  • Minimal dependency footprints
  • Learning Go web development from the standard library
  • Long-lived services that should avoid framework churn

Create the project

tristack my-stdlib-app --language go --framework stdlib --frontend none --orm sqlx --migrations none --database sqlite --package-manager go --addons docker air golangci-lint --git --install
Customize this stack in the builder

What's included

  • Go stdlib app with an items CRUD example and a health check
  • sqlx ORM
  • SQLite database
  • Go modules for dependencies
  • Docker
  • Air
  • golangci-lint

Run it

cd my-stdlib-app
go mod tidy
air
  • GET /health
  • GET /api/v1/items
  • POST /api/v1/items

More Go frameworks