# gin-gonic/gin

> Gin is an HTTP web framework written in Go, designed for building REST APIs, web applications, and microservices. It offers a Martini-like API in which developers register routes and handler functions, and Gin matches each incoming HTTP request to the right handler. The project is written in Go and uses httprouter for routing.

Source: https://github.com/gin-gonic/gin
Indexed: commit 5c6a15f on 2026-09-17 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Language: Go
- Stars: 89,524 at index time
- License: MIT
- Code health: 6.5/10, Fair
- Last commit: 2026-09-16
- Contributors: 203

## Install

From the README: https://github.com/gin-gonic/gin#installation

Clone the gin repository.
    git clone https://github.com/gin-gonic/gin.git

Move into the gin folder.
    cd gin

Run the application.
    go run main.go

## How it works

An application creates an Engine and adds routes, route groups, and middleware to it, with the package documentation in doc.go serving as the module's entry point. Each incoming request is matched to a handler and wrapped in a Context, defined in context.go, which carries the request and response and exposes binding and response methods. The binding directory chooses a binder for the request data and validates the parsed result. The render directory encodes responses in formats such as JSON, XML, and HTML templates. codec/json provides the JSON entry points used by other modules, and internal/bytesconv holds byte conversion helpers so modules do not implement their own. ginS/gins.go offers a quick start initialization entry point for the package-level API.

- doc.go: entry point
- .github/ISSUE_TEMPLATE/bug-report.yaml: central file
- .github/ISSUE_TEMPLATE/config.yml: central file
- .github/ISSUE_TEMPLATE/feature-request.yaml: central file
- .github/PULL_REQUEST_TEMPLATE.md: central file
Modules: root, binding, render, codec, internal, ginS. 120 files, 18,223 lines, 1,706 symbols.

## Code health

- Score: 6.5/10 (Fair)
- Rank: #189 of 4,000+ indexed repos
- Hotspots: context.go
- Lowest file: tree.go
- Dead code: 11 findings

## Maintenance

- Last commit 2026-09-16, first commit 2021-11-01, 500 commits
- 203 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/gin-gonic/gin/security

## More

- Page: https://repowise.dev/repo/gin-gonic/gin
- Ask this codebase: https://repowise.dev/repo/gin-gonic/gin/chat
- Docs: https://repowise.dev/repo/gin-gonic/gin/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/gin-gonic/gin
