#4747th of 110 in Backend and cloud templates

gin

Go HTTP web framework with a zero-allocation router and middleware

Releases and problems feed (RSS)

Stars
89.6k
License
MIT
Last commit
Oct 2026
Last release
Feb 2026
Language
Go
Stars, last 29 weeks+1,903
2 May 2026: 87,691 stars9 May 2026: 87,766 stars16 May 2026: 87,843 stars23 May 2026: 87,916 stars30 May 2026: 87,990 stars6 Jun 2026: 88,068 stars13 Jun 2026: 88,146 stars20 Jun 2026: 88,204 stars27 Jun 2026: 88,269 stars4 Jul 2026: 88,359 stars11 Jul 2026: 88,435 stars18 Jul 2026: 88,494 stars25 Jul 2026: 88,555 stars1 Aug 2026: 88,608 stars8 Aug 2026: 88,673 stars15 Aug 2026: 88,749 stars22 Aug 2026: 88,803 stars29 Aug 2026: 88,865 stars5 Sept 2026: 88,915 stars12 Sept 2026: 88,974 stars19 Sept 2026: 89,028 stars26 Sept 2026: 89,084 stars3 Oct 2026: 89,125 stars10 Oct 2026: 89,190 stars17 Oct 2026: 89,284 stars24 Oct 2026: 89,364 stars31 Oct 2026: 89,419 stars7 Nov 2026: 89,486 stars14 Nov 2026: 89,534 stars21 Nov 2026: 89,594 stars

87,691 on 2 May 202689,594 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Gin is a Go HTTP framework built on a customized httprouter. It provides route grouping, middleware, JSON binding and validation, panic recovery, and rendering for JSON, XML and HTML templates. It is a general-purpose library for REST APIs and microservices, not AI-specific, but it can serve as the base for a backend that exposes models or agents over HTTP.

Who it is for: Go developers building REST APIs and backend services

Strengths

  • Router reports 0 B/op and 0 allocs/op in the README's GitHub API benchmark
  • Built-in recovery middleware keeps handler panics from crashing the server
  • gin-contrib middleware covers JWT, sessions, CORS, rate limiting and tracing
  • Docs in 11 languages, plus a go.dev tutorial and a runnable examples repository

Weaknesses

  • Requires Go 1.26 or newer
  • No AI-specific features such as model clients, streaming helpers or agent tooling
  • Aero and HttpRouter benchmark faster than Gin in the README's own table
  • Library only: auth and other extras come from separate contrib middleware

What it needs

  • Go
  • Needs Go 1.26+

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Backend and cloud templates

See all 110
Also in Backend and cloud templates
RankProjectScore
#45middyMiddleware engine for AWS Lambda handlers on Node.js3.9k starsMIT71 out of 100
#46ultimoRust web framework on Hyper and Tokio that generates TypeScript clients Live demo ↗ (opens in a new tab)554 starsMIT71 out of 100
#48microservices-demoEleven-service e-commerce demo for Kubernetes, with gRPC between services21.2k stars+150 (+0.7%) in 30 daysApache-2.070 out of 100
#49agent-service-toolkitLangGraph agent served by FastAPI with a Streamlit chat front end Live demo ↗ (opens in a new tab)4.6k starsMIT70 out of 100
#50hyperfCoroutine PHP framework on Swoole or Swow for microservices and web servers6.9k starsMIT69 out of 100