# ant0ine/go-json-rest

A quick and easy way to setup a RESTful JSON API

Repository: https://github.com/ant0ine/go-json-rest
Canonical: https://ross.abutalabs.com/products/go-json-rest
Homepage: https://ant0ine.github.io/go-json-rest/
Language: Go
License: MIT
License Family: permissive
Last push: 2021-01-23T18:47:50+00:00

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

## Adoption (not part of the score)
Stars 3486, forks 372 (observed 2026-08-28T04:08:07.006163+00:00)

## What it is
Go-Json-Rest is a thin Go library on top of net/http for quickly building RESTful JSON APIs. It provides Trie-based routing, JSON request/response helpers, and a middleware stack for CORS, auth, gzip, logging, and more.

## Use cases
- build a restful json api in go
- set up json endpoints with routing and middleware
- add cors and basic auth to a go http server
- serve a json api alongside static files
- version a rest api in go

## When to choose
- you want a lightweight, minimal REST framework on top of net/http
- you need built-in middlewares like CORS, auth, gzip, and access logging
- you want fast Trie-based URL routing for JSON APIs

## When to avoid
- you need an actively developed framework with modern Go module support
- you want a full-featured framework with dependency injection or code generation
- you are building GraphQL or gRPC services instead of REST

## Facets
- artifact type: library
- maturity: maintenance
- function: web-framework, api-framework, routing, middleware, http-server, serialization
- domain: web-development, backend, apis
- platform: go, windows, cross-platform
- tags: rest, json-api, net-http, trie-router, cors, jwt, microservices, linux, macos

## Member repositories
- ant0ine/go-json-rest (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:07.006163+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-29T18:36:23.449663+00:00, confidence not recorded.
  - readme: https://github.com/ant0ine/go-json-rest (fetched 2026-08-28T04:08:07.006163+00:00, sha 674c6e3af1a8)
  - homepage: https://ant0ine.github.io/go-json-rest/ (fetched 2026-08-29T09:30:10.880672+00:00, sha 681874565fa4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
