{"id":34129271,"url":"https://github.com/jnichols-git/matcha","last_synced_at":"2026-03-13T00:31:03.274Z","repository":{"id":65950189,"uuid":"597918868","full_name":"jnichols-git/matcha","owner":"jnichols-git","description":"Matcha is an efficient, fully-featured HTTP request router.","archived":false,"fork":false,"pushed_at":"2023-12-24T22:08:30.000Z","size":394,"stargazers_count":10,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T07:04:14.722Z","etag":null,"topics":["golang","golang-library","golang-package","http","router","routing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jnichols-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-02-06T01:45:24.000Z","updated_at":"2023-11-23T02:45:13.000Z","dependencies_parsed_at":"2024-01-25T00:13:56.576Z","dependency_job_id":"40fe1d4c-3f3b-4bcc-941b-787eda18417f","html_url":"https://github.com/jnichols-git/matcha","commit_stats":{"total_commits":60,"total_committers":8,"mean_commits":7.5,"dds":0.6166666666666667,"last_synced_commit":"84a44ab2e88fb71055123397fb346155060c325e"},"previous_names":["cloudretic/router","decentplatforms/matcha","jnichols-git/matcha","cloudretic/matcha"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/jnichols-git/matcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnichols-git%2Fmatcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnichols-git%2Fmatcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnichols-git%2Fmatcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnichols-git%2Fmatcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnichols-git","download_url":"https://codeload.github.com/jnichols-git/matcha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnichols-git%2Fmatcha/sbom","scorecard":{"id":525110,"data":{"date":"2025-08-11","repo":{"name":"github.com/jnichols-git/matcha","commit":"84a44ab2e88fb71055123397fb346155060c325e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":1,"reason":"Found 5/29 approved changesets -- score normalized to 1","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml: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":"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":"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":"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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/jnichols-git/matcha/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/jnichols-git/matcha/ci.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/jnichols-git/matcha/ci.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/jnichols-git/matcha/ci.yaml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand 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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 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"}}]},"last_synced_at":"2025-08-20T04:08:45.371Z","repository_id":65950189,"created_at":"2025-08-20T04:08:45.371Z","updated_at":"2025-08-20T04:08:45.371Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30451521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["golang","golang-library","golang-package","http","router","routing"],"created_at":"2025-12-15T00:04:41.403Z","updated_at":"2026-03-13T00:31:03.255Z","avatar_url":"https://github.com/jnichols-git.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# matcha\n\n[![Coverage Status](https://coveralls.io/repos/github/decentplatforms/matcha/badge.svg?branch=main)](https://coveralls.io/github/decentplatforms/matcha?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/decentplatforms/matcha)](https://goreportcard.com/report/github.com/decentplatforms/matcha)\n[![Discord Badge](https://img.shields.io/badge/Join%20us%20on-Discord-blue)](https://discord.gg/gCdJ6NPm)\n\nMatcha is an HTTP router designed for ease of use, power, and extensibility.\n\n## Features\n\n- Flexible routing--handle your API specifications with ease\n- Extensible components for edge cases and integration with 3rd-party tools\n- High performance that scales to larger APIs\n- Comprehensive and passing test coverage, and extensive benchmarks to track performance on key features\n- Easy conversion from standard library; uses stdlib handler signatures and types\n- Zero dependencies, zero dependency management\n\n## Installation\n\n`go get github.com/decentplatforms/matcha@v1.2.2`\n\n## Basic Usage\n\nHere's a \"Hello, World\" example to introduce you to Matcha's syntax! It serves requests to `http://localhost:8080/hello`.\n\n```go\npackage examples\n\nimport (\n    \"net/http\"\n\n    \"github.com/decentplatforms/matcha/pkg/router\"\n)\n\nfunc sayHello(w http.ResponseWriter, req *http.Request) {\n    w.Write([]byte(\"Hello, World!\"))\n}\n\nfunc HelloExample() {\n    rt := router.Default()\n    rt.HandleFunc(http.MethodGet, \"/hello\", sayHello)\n    // or:\n    // rt.Handle(http.MethodGet, \"/hello\", http.HandlerFunc(sayHello))\n    http.ListenAndServe(\":3000\", rt)\n}\n```\n\nFor a step-by-step guide through Matcha's features, see our [User Guide](docs/user-guide.md).\n\n## Performance\n\nMatcha has an extensive benchmark suite to help identify, document, and improve performance over time. Additionally, `/bench` contains a comprehensive benchmark API for \"MockBoards\", a fake website that just so happens to use all of the features of Matcha. The MockBoards API has the following:\n\n- 18 distinct endpoints, including\n  - 4 endpoints requiring authorization using a \"client_id\" header\n  - 4 endpoints with an enumeration URI parameter (new/top posts, etc)\n- 2 middleware components assigning a request ID and CORS headers\n- 1 requirement for target host on all endpoints\n\nThe MockBoards benchmarks are run alongside an *offset benchmark* that measures the performance cost of setting up scaffolding\nfor each request sent to calculate their final score. The values below represent performance numbers that you might expect\nto see in practice. Please keep in mind that performance varies by machine--you should run benchmarks on your own\nhardware to get a proper idea of how well Matcha's performance suits your needs.\n\n### MockBoards API Spec Benchmark\n\nBenchmark | ns/request | B/request | allocs/request\n--- | --- | --- | ---\nSequential | 2226 ns/request | 1909 bytes/request | 27 allocs/request\nConcurrent | 1953 ns/request | 1943 bytes/request | 29 allocs/request\n\n### MockBoards Mounted API (v2) Benchmark\n\nThis mounts a copy of the API at `/v2` and runs requests against both the v1 and v2 APIs.\n\nBenchmark | ns/request | B/request | allocs/request\n--- | --- | --- | ---\nSequential | 2797 ns/request | 2046 bytes/request | 29 allocs/request\nConcurrent | 2097 ns/request | 2139 bytes/request | 30 allocs/request\n\n### MockBoards API Routing-Only Benchmark\n\nThis is the v1 spec, but with the non-path features stripped out to give a better idea of pure routing costs.\n\nBenchmark | ns/request | B/request | allocs/request\n--- | --- | --- | ---\nSequential | 1054 ns/request | 1417 bytes/request | 12 allocs/request\nConcurrent | 1353 ns/request | 1453 bytes/request | 14 allocs/request\n\n## Maintainers\n\nName | Role | Pronouns | GitHub Username | Contact\n---|---|---|---|---\nJake Nichols | Creator | they/them | jakenichols2719 | \u003cjnichols@decentplatforms.com\u003e\n\n## License\n\nCopyright 2023 Decent Platforms LLC\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnichols-git%2Fmatcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnichols-git%2Fmatcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnichols-git%2Fmatcha/lists"}