{"id":13652993,"url":"https://github.com/srfrog/go-relax","last_synced_at":"2026-03-13T19:39:24.374Z","repository":{"id":18138781,"uuid":"21225456","full_name":"srfrog/go-relax","owner":"srfrog","description":"Framework for building RESTful API's in Go","archived":false,"fork":false,"pushed_at":"2026-02-14T19:08:16.000Z","size":262,"stargazers_count":154,"open_issues_count":0,"forks_count":9,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-03-07T20:11:22.449Z","etag":null,"topics":["api-rest","go","golang","microservices","restful"],"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/srfrog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-06-26T02:30:45.000Z","updated_at":"2026-02-14T19:08:23.000Z","dependencies_parsed_at":"2022-07-10T07:16:23.430Z","dependency_job_id":null,"html_url":"https://github.com/srfrog/go-relax","commit_stats":{"total_commits":51,"total_committers":5,"mean_commits":10.2,"dds":"0.37254901960784315","last_synced_commit":"f9127c917e1916c9ae23105b8cb84f7d3570fa40"},"previous_names":["codehack/go-relax"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/srfrog/go-relax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srfrog%2Fgo-relax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srfrog%2Fgo-relax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srfrog%2Fgo-relax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srfrog%2Fgo-relax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srfrog","download_url":"https://codeload.github.com/srfrog/go-relax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srfrog%2Fgo-relax/sbom","scorecard":{"id":296471,"data":{"date":"2025-08-11","repo":{"name":"github.com/srfrog/go-relax","commit":"f9127c917e1916c9ae23105b8cb84f7d3570fa40"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/snyk.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/srfrog/go-relax/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/srfrog/go-relax/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/srfrog/go-relax/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/srfrog/go-relax/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/snyk.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/srfrog/go-relax/snyk.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/snyk.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/srfrog/go-relax/snyk.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":10,"reason":"SAST tool detected","details":["Info: SAST configuration detected: CodeQL","Info: SAST configuration detected: Snyk","Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T19:37:57.657Z","repository_id":18138781,"created_at":"2025-08-17T19:37:57.657Z","updated_at":"2025-08-17T19:37:57.657Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30473448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T17:15:31.527Z","status":"ssl_error","status_checked_at":"2026-03-13T17:15:22.394Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-rest","go","golang","microservices","restful"],"created_at":"2024-08-02T02:01:04.695Z","updated_at":"2026-03-13T19:39:24.365Z","avatar_url":"https://github.com/srfrog.png","language":"Go","funding_links":[],"categories":["Servers"],"sub_categories":["Go"],"readme":"# Go-Relax [![GoDoc](https://pkg.go.dev/badge/github.com/srfrog/go-relax)](https://pkg.go.dev/github.com/srfrog/go-relax) [![Go Report Card](https://goreportcard.com/badge/github.com/srfrog/go-relax?svg=1)](https://goreportcard.com/report/github.com/srfrog/go-relax)\n\n*Build fast and complete RESTful APIs in [Go](http://golang.org)*\n\n*Go-Relax* aims to provide the tools to help developers build RESTful web services, and information needed to abide by [REST](https://en.wikipedia.org/wiki/REST) architectural constraints using correct [HTTP semantics](http://tools.ietf.org/html/rfc7231).\n\n## Quick Start\n\nInstall using \"go get\":\n\n\tgo get github.com/srfrog/go-relax\n\nThen import from your source:\n\n\timport \"github.com/srfrog/go-relax\"\n\nView [example_test.go](https://github.com/srfrog/go-relax/blob/master/example/example_test.go) for an extended example of basic usage and features.\n\nAlso, check the [wiki](https://github.com/srfrog/go-relax/wiki) for HowTo's and recipes.\n\n## Features\n\n- Helps build API's that follow the REST concept using ROA principles.\n- Built-in support of HATEOAS constraint with Web Linking header tags.\n- Follows REST \"best practices\", with inspiration from Heroku and GitHub.\n- Works fine along with ``http.ServeMux`` or independently as ``http.Handler``\n- Supports different media types, and **mixed** for requests and responses.\n- It uses **JSON** media type by default, but also includes XML (needs import).\n- The default routing engine uses **trie with regexp matching** for speed and flexibility.\n- Comes with a complete set of filters to build a working API. _\"Batteries included\"_\n- Uses ``sync.pool`` to efficiently use resources when under heavy load.\n\n#### Included filters\n\n- [x] Content - handles mixed request/response encodings, language preference, and versioning.\n- [x] Basic authentication - to protect any resource with passwords.\n- [x] CORS - Cross-Origin Resource Sharing, for remote client-server setups.\n- [x] ETag - entity tagging with conditional requests for efficient caching.\n- [x] GZip - Dynamic gzip content data compression, with ETag support.\n- [x] Logging - custom logging with pre- and post- request event support.\n- [x] Method override - GET/POST method override via HTTP header and query string.\n- [x] Security - Various security practices for request handling.\n- [x] Limits - request throttler, token-based rate limiter, and memory limits.\n\n#### Upcoming filters\n\n- [ ] JSON-API support.\n- [ ] JSON-Schema for validating requests and responses.\n- [ ] Collection-JSON support.\n\n## Documentation\n\nThe full code documentation is located at GoDoc:\n\n[https://pkg.go.dev/github.com/srfrog/go-relax](https://pkg.go.dev/github.com/srfrog/go-relax)\n\nThe source code is thoroughly commented, have a look.\n\n## Hello World\n\nThis minimal example creates a new Relax service that handles a Hello resource.\n```go\npackage main\n\nimport (\n   \"github.com/srfrog/go-relax\"\n)\n\ntype Hello string\n\nfunc (h *Hello) Index(ctx *relax.Context) {\n   ctx.Respond(h)\n}\n\nfunc main() {\n   h := Hello(\"hello world!\")\n   svc := relax.NewService(\"http://api.example.com/\")\n   svc.Resource(\u0026h)\n   svc.Run()\n}\n```\n\n**$ curl -i -X GET http://api.example.com/hello**\n\nResponse:\n\n```\nHTTP/1.1 200 OK\nContent-Type: application/json;charset=utf-8\nLink: \u003c/hello\u003e; rel=\"self\"\nLink: \u003c/hello\u003e; rel=\"index\"\nRequest-Id: 61d430de-7bb6-4ff8-84da-aff6fe81c0d2\nServer: Go-Relax/0.5.0\nDate: Thu, 14 Aug 2014 06:20:48 GMT\nContent-Length: 14\n\n\"hello world!\"\n```\n\n## Credits\n\n**Go-Relax** is Copyright (c) [CastleBytes](http://castlebytes.com).\nPublished under an [MIT License](https://raw.githubusercontent.com/srfrog/go-relax/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrfrog%2Fgo-relax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrfrog%2Fgo-relax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrfrog%2Fgo-relax/lists"}