# dhax/go-base

Go RESTful API Boilerplate with JWT Authentication backed by PostgreSQL

Repository: https://github.com/dhax/go-base
Canonical: https://ross.abutalabs.com/products/go-base
Language: Go
License: MIT
License Family: permissive
Topics: go, restful, api, jwt, chi, postgres
Last push: 2026-08-11T12:22:31+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 3263, "days_push": 22, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1696, forks 240 (observed 2026-08-28T04:05:23.877256+00:00)

## What it is
A Go RESTful API boilerplate providing a structured, idiomatic foundation for building web APIs. It ships with JWT authentication (passwordless email login), PostgreSQL with migrations via bun, chi routing, viper configuration, and structured logging.

## Use cases
- start a new Go REST API project
- scaffold a backend with JWT authentication
- build a passwordless email login API
- bootstrap a Go API with PostgreSQL and migrations
- learn idiomatic Go API project structure
- set up a Dockerized Go API server

## When to choose
- starting a new Go REST API from scratch
- you want JWT auth and PostgreSQL wired up out of the box
- you prefer a minimal, idiomatic Go stack (chi, viper, cobra)

## When to avoid
- you need a full-featured framework like Gin or Echo with batteries included
- your stack is not Go or not PostgreSQL
- you need GraphQL or gRPC rather than REST

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: auth, web-framework, http-server, routing, logging, orm, email, middleware
- domain: web-development, backend, apis, developer-tools
- platform: go, windows, self-hosted
- tags: rest-api, jwt-authentication, postgresql, chi-router, starter-template, passwordless-auth, boilerplate, docker, linux, macos

## Member repositories
- dhax/go-base (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:23.877256+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:32:30.389959+00:00, confidence not recorded.
  - readme: https://github.com/dhax/go-base (fetched 2026-08-28T04:05:23.877256+00:00, sha eb7fbae77324)
- Data as of 2026-08-30T08:39:29.467469+00:00.
