[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-a3d92cb5":3,"seo:featured-workflow:a3d92cb5-4db8-11f1-9bc6-00163e2b0d79:es":84,"workflow-related-asset-a3d92cb5-a3d92cb5-4db8-11f1-9bc6-00163e2b0d79":85},{"id":4,"uuid":5,"slug":6,"title":7,"description":8,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":13,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":15,"tags":22,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":29,"asset_kind":30,"target_tools":31,"install_mode":35,"entrypoint":19,"risk_profile":36,"dependencies":38,"verification":43,"agent_metadata":46,"agent_fit":59,"trust":71,"provenance":80,"created_at":82,"updated_at":83},3204,"a3d92cb5-4db8-11f1-9bc6-00163e2b0d79","asset-a3d92cb5","httprouter — Lightweight High-Performance HTTP Router for Go","httprouter is a high-performance HTTP request router for Go that uses a radix tree for efficient path matching with zero garbage collection overhead.","8a911193-3180-11f1-9bc6-00163e2b0d79","AI Open Source","",0,2,"en",[16],{"id":17,"step_order":18,"title":19,"description":11,"prompt_template":20,"variables":11,"depends_on":21,"expected_output":11},3767,1,"httprouter Overview","# httprouter — Lightweight High-Performance HTTP Router for Go\n\n## Quick Use\n```bash\ngo get github.com\u002Fjulienschmidt\u002Fhttprouter\n```\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"net\u002Fhttp\"\n    \"github.com\u002Fjulienschmidt\u002Fhttprouter\"\n)\n\nfunc main() {\n    router := httprouter.New()\n    router.GET(\"\u002Fhello\u002F:name\", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {\n        fmt.Fprintf(w, \"Hello, %s!\", ps.ByName(\"name\"))\n    })\n    http.ListenAndServe(\":8080\", router)\n}\n```\n\n## Introduction\nhttprouter is a minimal Go HTTP router focused purely on speed and correctness. It uses a compressed radix tree (trie) for route matching, which means lookups are independent of the number of registered routes. The library is a popular foundation for higher-level frameworks like Gin.\n\n## What httprouter Does\n- Matches HTTP routes using a compressed radix tree with zero allocations on the hot path\n- Supports named parameters (`:name`) and catch-all parameters (`*filepath`)\n- Implements the standard http.Handler interface for net\u002Fhttp compatibility\n- Detects conflicting routes at registration time to prevent ambiguity\n- Provides automatic OPTIONS and 405 Method Not Allowed responses\n\n## Architecture Overview\nThe router stores each HTTP method's routes in a separate radix tree. When a request arrives, it walks the tree character-by-character, resolving named and wildcard segments along the way. Because the tree is compressed, common prefixes share a single node, keeping memory usage low. Parameters are extracted into a slice that is stack-allocated in most cases, avoiding heap allocation entirely.\n\n## Self-Hosting & Configuration\n- Install with `go get github.com\u002Fjulienschmidt\u002Fhttprouter` (Go 1.18+)\n- Register routes with `router.GET`, `router.POST`, etc. for each HTTP method\n- Set `router.NotFound` to a custom handler for 404 responses\n- Set `router.PanicHandler` to recover from panics inside handlers gracefully\n- Enable trailing-slash redirects with `router.RedirectTrailingSlash = true`\n\n## Key Features\n- Only router in Go with truly zero heap allocation per request\n- Named and catch-all path parameters with no regex overhead\n- Conflict detection at startup prevents silent route shadowing\n- Fully compatible with net\u002Fhttp middleware via http.Handler\n- Battle-tested as the routing engine inside the Gin framework\n\n## Comparison with Similar Tools\n- **Gorilla Mux** — regex-based matching, more flexible but slower lookup\n- **Chi** — radix tree like httprouter, but adds middleware chaining and context support\n- **Gin** — full framework built on httprouter with middleware, logging, and JSON helpers\n- **net\u002Fhttp DefaultServeMux** — simple prefix matching, no parameters or method routing\n\n## FAQ\n**Q: Why choose httprouter over Gin?**\nA: httprouter is just a router. If you want only routing without framework overhead, it is the lighter choice. Gin adds middleware, binding, and rendering on top.\n\n**Q: Does httprouter support middleware?**\nA: Not directly. You can wrap handlers manually or use a library like Alice to chain http.Handler middleware.\n\n**Q: Can httprouter handle regex routes?**\nA: No. It supports named parameters and catch-alls only. For regex-based routing, consider Gorilla Mux.\n\n**Q: Is httprouter still maintained?**\nA: Yes. Development is stable with occasional updates, and its API is considered complete.\n\n## Sources\n- https:\u002F\u002Fgithub.com\u002Fjulienschmidt\u002Fhttprouter\n- https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fjulienschmidt\u002Fhttprouter","0",[23],{"id":24,"name":25,"slug":26,"icon":27},12,"Configs","config","⚙️",false,"7bc06cbe04afc8c5b187c9af5fe6541168a8e2accca6b1517f3a65c966b99cbe","skill",[32,33,34],"claude_code","codex","gemini_cli","single",{"executes_code":28,"modifies_global_config":28,"requires_secrets":37,"uses_absolute_paths":28,"network_access":28},[],{"npm":39,"pip":40,"brew":41,"system":42},[],[],[],[],{"commands":44,"expected_files":45},[],[19],{"asset_kind":30,"target_tools":47,"install_mode":35,"entrypoint":19,"risk_profile":48,"dependencies":50,"content_hash":29,"verification":55,"inferred":58},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":49,"uses_absolute_paths":28,"network_access":28},[],{"npm":51,"pip":52,"brew":53,"system":54},[],[],[],[],{"commands":56,"expected_files":57},[],[19],true,{"target":33,"score":60,"status":61,"policy":62,"why":63,"asset_kind":30,"install_mode":35},98,"native","allow",[64,65,66,67,68,69,70],"target_tools includes codex","asset_kind skill","install_mode single","markdown-only","policy allow","safe markdown-only Codex install","trust established",{"author_trust_level":72,"verified_publisher":28,"asset_signed_hash":29,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":74,"review_status":75,"signals":76},"established","hash_only",[],"unreviewed",[77,78,79],"author has published assets","content hash available","no dangerous capability badges",{"owner_uuid":9,"owner_name":10,"source_url":81,"content_hash":29,"visibility":18,"created_at":82,"updated_at":83},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-a3d92cb5","2026-05-12 12:11:24","2026-05-12 19:50:39",null,[86,145,191,237],{"id":87,"uuid":88,"slug":89,"title":90,"description":91,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":92,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":93,"tags":94,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":96,"asset_kind":30,"target_tools":97,"install_mode":35,"entrypoint":98,"risk_profile":99,"dependencies":101,"verification":106,"agent_metadata":109,"agent_fit":121,"trust":128,"provenance":133,"created_at":135,"updated_at":136,"__relatedScore":137,"__relatedReasons":138,"__sharedTags":143},1081,"65c0d201-3630-11f1-9bc6-00163e2b0d79","gin-high-performance-http-web-framework-go-65c0d201","Gin — High-Performance HTTP Web Framework for Go","Gin is a high-performance HTTP web framework written in Go. Provides a Martini-like API but with significantly better performance — up to 40 times faster thanks to httprouter. The most popular Go web framework for REST APIs and microservices.",137,[],[95],{"id":24,"name":25,"slug":26,"icon":27},"95c5fe90e3be6a576e5cae1719b229c239e0579c3d43639b1d54400ff6d32b38",[32,33,34],"SKILL.md",{"executes_code":28,"modifies_global_config":28,"requires_secrets":100,"uses_absolute_paths":28,"network_access":58},[],{"npm":102,"pip":103,"brew":104,"system":105},[],[],[],[],{"commands":107,"expected_files":108},[],[11],{"asset_kind":30,"target_tools":110,"install_mode":35,"entrypoint":98,"risk_profile":111,"dependencies":113,"content_hash":96,"verification":118},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":112,"uses_absolute_paths":28,"network_access":58},[],{"npm":114,"pip":115,"brew":116,"system":117},[],[],[],[],{"commands":119,"expected_files":120},[],[11],{"target":33,"score":122,"status":123,"policy":124,"why":125,"asset_kind":30,"install_mode":35},64,"needs_confirmation","confirm",[64,65,66,126,127,70],"policy confirm","risk_profile.network_access is true",{"author_trust_level":72,"verified_publisher":28,"asset_signed_hash":96,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":129,"review_status":75,"signals":131},[130],"network_access",[132,77,78],"asset has usage views",{"owner_uuid":9,"owner_name":10,"source_url":134,"content_hash":96,"visibility":18,"created_at":135,"updated_at":136},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fgin-high-performance-http-web-framework-go-65c0d201","2026-04-12 13:28:11","2026-05-12 11:45:37",127.20981862960186,[139,140,141,142],"topic-match","same-kind","same-target","same-author",[26,144],"configs",{"id":146,"uuid":147,"slug":148,"title":149,"description":150,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":151,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":152,"tags":153,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":155,"asset_kind":30,"target_tools":156,"install_mode":35,"entrypoint":98,"risk_profile":157,"dependencies":159,"verification":164,"agent_metadata":167,"agent_fit":179,"trust":181,"provenance":184,"created_at":186,"updated_at":187,"__relatedScore":188,"__relatedReasons":189,"__sharedTags":190},1085,"412fe31a-3634-11f1-9bc6-00163e2b0d79","echo-high-performance-minimalist-go-web-framework-412fe31a","Echo — High Performance Minimalist Go Web Framework","Echo is a high performance, minimalist Go web framework. Clean API, automatic TLS, HTTP\u002F2, data binding, middleware, and group routing. A strong alternative to Gin with excellent documentation and built-in features.",115,[],[154],{"id":24,"name":25,"slug":26,"icon":27},"4429811a2bce65a5aa0b2bb0e3b94241c47b26d681c48e57eeaf3f196e56a6e1",[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":158,"uses_absolute_paths":28,"network_access":28},[],{"npm":160,"pip":161,"brew":162,"system":163},[],[],[],[],{"commands":165,"expected_files":166},[],[11],{"asset_kind":30,"target_tools":168,"install_mode":35,"entrypoint":98,"risk_profile":169,"dependencies":171,"content_hash":155,"verification":176},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":170,"uses_absolute_paths":28,"network_access":28},[],{"npm":172,"pip":173,"brew":174,"system":175},[],[],[],[],{"commands":177,"expected_files":178},[],[11],{"target":33,"score":60,"status":61,"policy":62,"why":180,"asset_kind":30,"install_mode":35},[64,65,66,67,68,69,70],{"author_trust_level":72,"verified_publisher":28,"asset_signed_hash":155,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":182,"review_status":75,"signals":183},[],[132,77,78,79],{"owner_uuid":9,"owner_name":10,"source_url":185,"content_hash":155,"visibility":18,"created_at":186,"updated_at":187},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fecho-high-performance-minimalist-go-web-framework-412fe31a","2026-04-12 13:55:48","2026-05-12 09:51:40",127.09668698384039,[139,140,141,142],[26,144],{"id":192,"uuid":193,"slug":194,"title":195,"description":196,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":197,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":198,"tags":199,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":201,"asset_kind":30,"target_tools":202,"install_mode":35,"entrypoint":98,"risk_profile":203,"dependencies":205,"verification":210,"agent_metadata":213,"agent_fit":225,"trust":227,"provenance":230,"created_at":232,"updated_at":233,"__relatedScore":234,"__relatedReasons":235,"__sharedTags":236},1216,"10945b86-373d-11f1-9bc6-00163e2b0d79","grpc-go-high-performance-rpc-framework-go-10945b86","gRPC-Go — High-Performance RPC Framework for Go","gRPC-Go is the Go implementation of gRPC, a high-performance, open-source RPC framework. It uses Protocol Buffers for serialization and HTTP\u002F2 for transport, enabling efficient communication between microservices with strongly-typed contracts.",96,[],[200],{"id":24,"name":25,"slug":26,"icon":27},"96a212724349417d4893220c03705fb16670f85cfc45a146702a65bf21314a7a",[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":204,"uses_absolute_paths":28,"network_access":28},[],{"npm":206,"pip":207,"brew":208,"system":209},[],[],[],[],{"commands":211,"expected_files":212},[],[11],{"asset_kind":30,"target_tools":214,"install_mode":35,"entrypoint":98,"risk_profile":215,"dependencies":217,"content_hash":201,"verification":222},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":216,"uses_absolute_paths":28,"network_access":28},[],{"npm":218,"pip":219,"brew":220,"system":221},[],[],[],[],{"commands":223,"expected_files":224},[],[11],{"target":33,"score":60,"status":61,"policy":62,"why":226,"asset_kind":30,"install_mode":35},[64,65,66,67,68,69,70],{"author_trust_level":72,"verified_publisher":28,"asset_signed_hash":201,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":228,"review_status":75,"signals":229},[],[77,78,79],{"owner_uuid":9,"owner_name":10,"source_url":231,"content_hash":201,"visibility":18,"created_at":232,"updated_at":233},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fgrpc-go-high-performance-rpc-framework-go-10945b86","2026-04-13 21:31:23","2026-05-12 19:45:03",126.98015760139937,[139,140,141,142],[26,144],{"id":238,"uuid":239,"slug":240,"title":241,"description":242,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":243,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":244,"tags":245,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":247,"asset_kind":30,"target_tools":248,"install_mode":35,"entrypoint":98,"risk_profile":249,"dependencies":251,"verification":256,"agent_metadata":259,"agent_fit":271,"trust":273,"provenance":276,"created_at":278,"updated_at":279,"__relatedScore":280,"__relatedReasons":281,"__sharedTags":282},3045,"abf1cbcf-4d35-11f1-9bc6-00163e2b0d79","asset-abf1cbcf","Gorilla Mux — Powerful HTTP Router and URL Matcher for Go","Gorilla Mux is a flexible HTTP request router for Go that supports path variables, host-based routing, middleware chaining, and subrouters for modular URL patterns.",17,[],[246],{"id":24,"name":25,"slug":26,"icon":27},"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":250,"uses_absolute_paths":28,"network_access":28},[],{"npm":252,"pip":253,"brew":254,"system":255},[],[],[],[],{"commands":257,"expected_files":258},[],[],{"asset_kind":30,"target_tools":260,"install_mode":35,"entrypoint":98,"risk_profile":261,"dependencies":263,"content_hash":247,"verification":268,"inferred":58},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":262,"uses_absolute_paths":28,"network_access":28},[],{"npm":264,"pip":265,"brew":266,"system":267},[],[],[],[],{"commands":269,"expected_files":270},[],[],{"target":33,"score":60,"status":61,"policy":62,"why":272,"asset_kind":30,"install_mode":35},[64,65,66,67,68,69,70],{"author_trust_level":72,"verified_publisher":28,"asset_signed_hash":247,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":274,"review_status":75,"signals":275},[],[77,78,79],{"owner_uuid":9,"owner_name":10,"source_url":277,"content_hash":247,"visibility":18,"created_at":278,"updated_at":279},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-abf1cbcf","2026-05-11 20:33:53","2026-05-12 11:43:35",125.88290875765496,[139,140,141,142],[26,144]]