{"id":19772167,"url":"https://github.com/zerodha/fastglue","last_synced_at":"2025-04-06T02:12:50.209Z","repository":{"id":42573513,"uuid":"378108809","full_name":"zerodha/fastglue","owner":"zerodha","description":"Fastglue is an opinionated, bare bones wrapper that glues together fasthttp and fasthttprouter to act as a micro HTTP framework.","archived":false,"fork":false,"pushed_at":"2025-01-31T11:47:56.000Z","size":283,"stargazers_count":81,"open_issues_count":2,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T01:13:13.701Z","etag":null,"topics":["fastglue","fasthttp","fasthttprouter","golang","http-framework","http-server","microframework","performance","routing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zerodha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-18T10:03:40.000Z","updated_at":"2025-02-27T08:00:12.000Z","dependencies_parsed_at":"2024-06-18T16:47:21.376Z","dependency_job_id":"8684153f-2884-487c-b0b6-5fd557fd49d7","html_url":"https://github.com/zerodha/fastglue","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodha%2Ffastglue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodha%2Ffastglue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodha%2Ffastglue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodha%2Ffastglue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerodha","download_url":"https://codeload.github.com/zerodha/fastglue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423516,"owners_count":20936626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastglue","fasthttp","fasthttprouter","golang","http-framework","http-server","microframework","performance","routing"],"created_at":"2024-11-12T05:05:38.374Z","updated_at":"2025-04-06T02:12:50.190Z","avatar_url":"https://github.com/zerodha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastglue\n\n## Overview [![Go Reference](https://pkg.go.dev/badge/github.com/zerodha/fastglue.svg)](https://pkg.go.dev/github.com/zerodha/fastglue) [![Zerodha Tech](https://zerodha.tech/static/images/github-badge.svg)](https://zerodha.tech)\n\nfastglue is an opinionated, bare bones wrapper that glues together [fasthttp](https://github.com/valyala/fasthttp)\nand [fasthttprouter](https://github.com/fasthttp/router) to act as a micro HTTP framework. It helps eliminate\nboilerplate that would otherwise be required when using these two libraries to\nwrite HTTP servers. It enables:\n\n- Performance benefits of fasthttp + fasthttprouter.\n- Pre/post middleware hooks on HTTP handlers.\n- Simple middlewares for validating (existence, length range) of params in HTTP\n  requests.\n- Functions for unmarshalling request payloads (Form encoding, JSON, XML) into\n  arbitrary structs.\n- Shortcut functions for registering handlers, `GET()`, `POST()` etc.\n- Shortcut for fasthttp listening on TCP and Unix sockets.\n- Shortcut for graceful shutdown hook on the fasthttp server.\n- Opinionated JSON API response and error structures.\n- Shortcut functions for sending strings, bytes, JSON in the envelope structure\n  without serialization or allocation.\n\n## Install\n\n```bash\ngo get -u github.com/zerodha/fastglue\n```\n\n## Usage\n\n```go\nimport \"github.com/zerodha/fastglue\"\n```\n\n## Examples\n\n- [HelloWorld Server](examples/helloworld)\n- [Middleware](examples/middleware)\n- [Before-after middleware](examples/before-after)\n- [Decode](examples/decode)\n- [Path params](examples/path)\n- [Serve static file](examples/static-file)\n- [Singleton](examples/singleton)\n- [Graceful shutdown](examples/graceful)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerodha%2Ffastglue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerodha%2Ffastglue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerodha%2Ffastglue/lists"}