awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Go web framework boilerplate

Ranking updated Jun 30, 2026

For a production ready boilerplate for Go Gin, the strongest matches are eddycjy/go-gin-example (This Go Gin boilerplate provides JWT authentication, GORM database), xinliangnote/go-gin-api (go-gin-api is a feature-rich API template built on Gin) and gin-gonic/examples (This is the official repository of examples and tutorials). amitshekhariitbhu/go-backend-clean-architecture and go-chi/chi round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

We curate open-source GitHub repositories matching “go gin framework example”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

Go web framework boilerplate

Find the best repos with AI.We'll search the best matching repositories with AI.
  • eddycjy/go-gin-exampleeddycjy avatar

    eddycjy/go-gin-example

    7,193View on GitHub↗

    This project is a reference implementation and boilerplate for building RESTful services using the Gin web framework in Go. It provides a structured backend architecture featuring modular routing and middleware to serve as a template for Go web applications. The project distinguishes itself through a comprehensive set of integrated systems, including a security layer for user authentication and private endpoint protection using JSON Web Tokens. It also implements a high-speed memory storage layer via Redis to cache frequent database queries and a containerized runtime environment for consiste

    This Go Gin boilerplate provides JWT authentication, GORM database integration, and middleware examples, making it an ideal template for RESTful API projects, though it lacks explicit HTML rendering and testing examples.

    GoJWT AuthenticationRequest Authentication Middleware
    View on GitHub↗7,193
  • xinliangnote/go-gin-apixinliangnote avatar

    xinliangnote/go-gin-api

    5,967View on GitHub↗

    go-gin-api is an API framework built on the Gin HTTP router that integrates common middleware and tools for rapid business development. It provides a modular structure for organizing API handlers and middleware, with built-in support for JWT token authentication to secure endpoints and GORM for database object-relational mapping and operations. The framework includes a gRPC service component for inter-service communication, along with middleware for collecting Prometheus metrics and generating Swagger API documentation from code annotations. It also features OpenTelemetry trace propagation fo

    go-gin-api is a feature-rich API template built on Gin that includes JWT auth, GORM, middleware examples, and more, making it an excellent starter project and learning resource for Gin development — it covers most required features and is ready to use as a template.

    GoGin-Based FrameworksGin-Based Modular FrameworksApplication Metrics Exporters
    View on GitHub↗5,967
  • gin-gonic/examplesgin-gonic avatar

    gin-gonic/examples

    4,537View on GitHub↗

    This repository is a collection of implementation patterns, tutorial code, and practical examples for building web applications with the Gin framework in Go. It serves as a guide for learning how to structure Go web servers, specifically focusing on mapping URL paths to handler functions and managing request flow. The project provides demonstrations of middleware implementation for tasks such as authentication, logging, and rate limiting. It also includes reference examples for developing REST APIs, with a focus on structuring data and sending JSON responses to clients.

    This is the official repository of examples and tutorials for the Gin web framework, providing ready-to-use starter patterns and templates covering exactly the kind of RESTful APIs, middleware, and database integration you’re looking for.

    GoTutorialsHTTP Middleware PipelinesHTTP Request Dispatching
    View on GitHub↗4,537
  • amitshekhariitbhu/go-backend-clean-architectureamitshekhariitbhu avatar

    amitshekhariitbhu/go-backend-clean-architecture

    6,059View on GitHub↗

    This is a Go backend template that structures a web service into domain, usecase, controller, and repository layers with strict dependency inversion. It provides a foundation for building maintainable and testable REST APIs by separating business logic from transport and data access concerns. The project implements JWT-based authentication, issuing access and refresh tokens for user signup, login, and protected endpoint access. It uses the Gin HTTP framework to build a Docker-packaged REST API with public and private route groups, request validation, and middleware-based authentication. Depen

    This is a Go backend template built with the Gin framework that demonstrates clean architecture, JWT authentication, middleware, and RESTful endpoints — it directly matches your search for Gin starter projects, though it focuses on API backends rather than HTML template rendering.

    GoGo Clean Architecture TemplatesAccess and Refresh Token IssuancesAuthenticated Route Separations
    View on GitHub↗6,059
  • go-chi/chigo-chi avatar

    go-chi/chi

    22,418View on GitHub↗

    Chi is a lightweight, idiomatic router and middleware framework for building web services in Go. It is designed to integrate directly with the standard library, providing a set of utilities for managing HTTP request routing, context propagation, and modular service composition. The project distinguishes itself through a radix-tree-based routing system that supports recursive nesting, allowing developers to mount independent sub-routers onto specific path prefixes. This hierarchical structure enables the creation of organized, modular applications where request handlers are grouped and managed

    Chi is a Go HTTP router and middleware framework, not a collection of example projects or templates built with the Gin framework, so it does not match the search for Gin-based starters.

    GoRESTful APIsRequest Middleware
    View on GitHub↗22,418
  • danielgtaylor/humadanielgtaylor avatar

    danielgtaylor/huma

    4,170View on GitHub↗

    Huma is an OpenAPI REST framework for Go designed for building HTTP services with automatic OpenAPI 3.1 specification generation and JSON Schema validation. It serves as a toolkit for developing REST and RPC APIs with typed inputs and outputs, deriving interactive documentation directly from the source code. The framework distinguishes itself by automating the synchronization between implementation and documentation. It uses a content-negotiation engine to manage multiple serialization formats via client headers and employs a JSON Schema input validator to automatically verify request paramet

    Huma is an OpenAPI REST framework for Go, not a collection of starter projects or templates built with the Gin web framework, so it doesn't provide the Gin-specific examples you're looking for.

    GoRequest MiddlewareREST API Services
    View on GitHub↗4,170
  • gofiber/recipesgofiber avatar

    gofiber/recipes

    3,427View on GitHub↗

    This project is a comprehensive library of reference implementations and patterns for building web applications using the Go Fiber framework. It provides curated templates and implementation guides for creating REST APIs, web servers, and structured backend services. The repository serves as a practical resource for applying architectural patterns, including Clean and Hexagonal architectures, as well as port-and-adapter decoupling. It offers detailed examples for integrating common web features such as OAuth2 authentication, JWT verification, WebSockets for real-time communication, and server

    This repository offers exactly the kind of example projects and templates you are looking for — REST APIs, middleware, database integration, and more — but it is built for the Fiber framework rather than Gin, so it does not directly match your request for Gin-specific examples.

    GoJWT AuthenticationRequest MiddlewareSQL Database Connectivity
    View on GitHub↗3,427
  • labstack/echolabstack avatar

    labstack/echo

    32,451View on GitHub↗

    Echo is a high-performance, lightweight web framework for Go designed for building scalable RESTful APIs and web services. It provides a centralized environment for mapping network requests to handler functions, utilizing a fast radix-tree routing engine to ensure efficient request dispatching. The framework is built around a modular, middleware-centric pipeline that allows developers to execute reusable logic for cross-cutting concerns like authentication, logging, and security across the entire application. What distinguishes Echo is its focus on developer productivity through structured da

    Echo is a Go web framework, not a collection of starter projects or example applications built with Gin — it is a different framework altogether, so it does not match the search for Gin-specific templates.

    GoJWT Authentication
    View on GitHub↗32,451

Related searches

  • a high performance web framework for Go
  • a high performance web framework for Go
  • a lightweight HTTP router for Go
  • an HTTP router and web toolkit for Go
  • a high performance web framework for Go
  • a rust web framework for REST APIs
  • a web framework for building HTTP APIs in Rust
  • a high performance web framework for Rust