# Gin Web Framework

Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.

Repository: https://github.com/gin-gonic/gin
Canonical: https://ross.abutalabs.com/products/gin-web-framework
Homepage: https://gin-gonic.com/
Language: Go
License: MIT
License Family: permissive
Topics: server, middleware, framework, go, router, performance, gin
Last push: 2026-08-15T05:44:19+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 48, longevity 100
- inputs: {"age_days": 4461, "days_push": 18, "days_rel": 186, "gap_med": 141.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 89117, forks 8680 (observed 2026-08-28T04:12:23.137324+00:00)

## What it is
Gin is a high-performance HTTP web framework written in Go, offering a Martini-like API with dramatically faster routing powered by httprouter. It is designed for building REST APIs, web applications, and microservices with features like middleware support, JSON validation, and route grouping.

## Use cases
- build a high-throughput REST API in Go
- develop microservices handling many concurrent requests
- create a web server with fast routing and low memory overhead
- add authentication, logging, or CORS middleware to an HTTP server
- validate and bind JSON request bodies automatically
- organize routes into groups with shared middleware
- prototype web services quickly with minimal boilerplate

## When to choose
- you need a fast, lightweight Go web framework for REST APIs or microservices
- you want an Express.js-style developer experience in Go
- you need a mature framework with a large ecosystem of middleware and examples
- performance and low memory allocation are priorities

## When to avoid
- you need a full-stack framework with built-in templating, ORM, and scaffolding
- you prefer a standard-library-only approach with net/http
- you are building GraphQL-first services and want a dedicated GraphQL server
- your project requires HTTP/2 or HTTP/3 server features out of the box

## Facets
- artifact type: framework
- maturity: stable
- function: web-framework, http-server, routing, middleware, api-framework
- domain: web-development, backend, apis, developer-tools
- platform: go, cross-platform
- tags: rest-api, microservices, high-performance, router, -validation, web-server

## Member repositories
- gin-gonic/gin (main) score 80
- gin-gonic/examples (examples) score 74
- gin-gonic/contrib (plugin) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:23.137324+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-29T16:13:52.546561+00:00, confidence not recorded.
  - readme: https://github.com/gin-gonic/gin (fetched 2026-08-28T04:12:23.137324+00:00, sha cfc48364067a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
