finds.dev← search

// the find

dhax/go-base

★ 1,687 · Go · MIT · updated Jul 2026

Go RESTful API Boilerplate with JWT Authentication backed by PostgreSQL

A Go REST API starter with chi routing, PostgreSQL via bun, JWT auth, and a passwordless email login flow. Targets developers who want a working skeleton with real auth wired up, not just a hello-world. Actively maintained — last push yesterday.

The passwordless email login flow is fully implemented and tested, not just stubbed out — that's the hardest part most boilerplates skip. Chi is a good router choice: stdlib-compatible, no magic, easy to reason about. The separation between api/admin and api/app packages makes RBAC boundaries explicit from the start. Docker Compose setup actually works end-to-end including migrations, which saves the usual first-hour friction.

The test coverage is narrow — only the auth/pwdless package has tests, and they're against a mocked store, so the database layer is completely untested. Mixed migration strategy (some .go files, some raw SQL) means you need to understand both approaches before touching the schema. Logrus is past its prime; most new Go projects have moved to slog or zerolog, and you'll want to swap it out before long. No rate limiting or brute-force protection on the auth endpoints despite them being the most obvious attack surface.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →