{"id":37196666,"url":"https://github.com/jeremyctrl/httprouter","last_synced_at":"2026-01-14T22:52:49.151Z","repository":{"id":324410695,"uuid":"1092070160","full_name":"jeremyctrl/httprouter","owner":"jeremyctrl","description":"A tiny, fast HTTP router powered by minimal perfect hashes","archived":false,"fork":false,"pushed_at":"2025-11-15T16:05:30.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-15T18:09:31.676Z","etag":null,"topics":["http","httprouter","router"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/jeremyctrl/httprouter","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/jeremyctrl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-08T00:16:20.000Z","updated_at":"2025-11-15T16:05:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jeremyctrl/httprouter","commit_stats":null,"previous_names":["jeremyctrl/httprouter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jeremyctrl/httprouter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyctrl%2Fhttprouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyctrl%2Fhttprouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyctrl%2Fhttprouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyctrl%2Fhttprouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremyctrl","download_url":"https://codeload.github.com/jeremyctrl/httprouter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyctrl%2Fhttprouter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":["http","httprouter","router"],"created_at":"2026-01-14T22:52:48.365Z","updated_at":"2026-01-14T22:52:49.133Z","avatar_url":"https://github.com/jeremyctrl.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n\n# httprouter\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/jeremyctrl/httprouter.svg)](https://pkg.go.dev/github.com/jeremyctrl/httprouter)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nA tiny, fast HTTP router powered by minimal perfect hashes.\n\n\u003c/div\u003e\n\n`httprouter` is a compact router that compiles route templates into minimal-perfect-hash tables at build time so lookups are constant-time.\n\n## Get\n\n```bash\ngo get github.com/jeremyctrl/httprouter\n```\n\n### Example\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n    \"net/http\"\n\n    \"github.com/jeremyctrl/httprouter\"\n)\n\nfunc Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {\n\tfmt.Fprint(w, \"Welcome!\\n\")\n}\n\nfunc Hello(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {\n\tfmt.Fprintf(w, \"hello, %s!\\n\", ps.ByName(\"name\"))\n}\n\nfunc main() {\n\trouter := httprouter.New().\n\t\tGET(\"/\", Index).\n\t\tGET(\"/hello/:name\", Hello).\n\t\tBuild()\n\n\tlog.Fatal(http.ListenAndServe(\":8080\", router))\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyctrl%2Fhttprouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremyctrl%2Fhttprouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyctrl%2Fhttprouter/lists"}