GitPedia

Fastglue

Fastglue is an opinionated, bare bones wrapper that glues together fasthttp and fasthttprouter to act as a micro HTTP framework.

From zerodha·Updated April 23, 2026·View on GitHub·

fastglue is an opinionated, bare bones wrapper that glues together [fasthttp](https://github.com/valyala/fasthttp) and [fasthttprouter](https://github.com/fasthttp/router) to act as a micro HTTP framework. It helps eliminate boilerplate that would otherwise be required when using these two libraries to write HTTP servers. It enables: The project is written primarily in Go, distributed under the MIT License license, first published in 2021. Key topics include: fastglue, fasthttp, fasthttprouter, golang, http-framework.

Latest release: v1.8.1
July 2, 2024View Changelog →

fastglue

Overview Go Reference Zerodha Tech

fastglue is an opinionated, bare bones wrapper that glues together fasthttp
and fasthttprouter to act as a micro HTTP framework. It helps eliminate
boilerplate that would otherwise be required when using these two libraries to
write HTTP servers. It enables:

  • Performance benefits of fasthttp + fasthttprouter.
  • Pre/post middleware hooks on HTTP handlers.
  • Simple middlewares for validating (existence, length range) of params in HTTP
    requests.
  • Functions for unmarshalling request payloads (Form encoding, JSON, XML) into
    arbitrary structs.
  • Shortcut functions for registering handlers, GET(), POST() etc.
  • Shortcut for fasthttp listening on TCP and Unix sockets.
  • Shortcut for graceful shutdown hook on the fasthttp server.
  • Opinionated JSON API response and error structures.
  • Shortcut functions for sending strings, bytes, JSON in the envelope structure
    without serialization or allocation.

Install

bash
go get -u github.com/zerodha/fastglue

Usage

go
import "github.com/zerodha/fastglue"

Examples

Contributors

Showing top 10 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from zerodha/fastglue via the GitHub API.Last fetched: 6/25/2026