All frameworks

Chi Project Generator.

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

Why Chi

Chi is a lightweight router built on net/http, so handlers stay plain http.Handler functions. This stack uses sqlc, which generates type-safe Go code from your SQL queries.

  • Developers who want idiomatic net/http code
  • Type-safe queries without an ORM
  • Services that may later drop the router entirely

Create the project

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

What's included

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

Run it

cd my-chi-app
go mod tidy
go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.27.0 generate
air
  • GET /health
  • GET /api/v1/items
  • POST /api/v1/items

More Go frameworks