[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-a3d92cb5":3,"seo:featured-workflow:a3d92cb5-4db8-11f1-9bc6-00163e2b0d79:en":82,"workflow-related-asset-a3d92cb5-a3d92cb5-4db8-11f1-9bc6-00163e2b0d79":83},{"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":12,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":14,"tags":21,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":28,"asset_kind":29,"target_tools":30,"install_mode":34,"entrypoint":18,"risk_profile":35,"dependencies":37,"verification":42,"agent_metadata":45,"agent_fit":58,"trust":70,"provenance":79,"created_at":81,"updated_at":81},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,"en",[15],{"id":16,"step_order":17,"title":18,"description":11,"prompt_template":19,"variables":11,"depends_on":20,"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",[22],{"id":23,"name":24,"slug":25,"icon":26},12,"Configs","config","⚙️",false,"7bc06cbe04afc8c5b187c9af5fe6541168a8e2accca6b1517f3a65c966b99cbe","skill",[31,32,33],"claude_code","codex","gemini_cli","single",{"executes_code":27,"modifies_global_config":27,"requires_secrets":36,"uses_absolute_paths":27,"network_access":27},[],{"npm":38,"pip":39,"brew":40,"system":41},[],[],[],[],{"commands":43,"expected_files":44},[],[18],{"asset_kind":29,"target_tools":46,"install_mode":34,"entrypoint":18,"risk_profile":47,"dependencies":49,"content_hash":28,"verification":54,"inferred":57},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":48,"uses_absolute_paths":27,"network_access":27},[],{"npm":50,"pip":51,"brew":52,"system":53},[],[],[],[],{"commands":55,"expected_files":56},[],[18],true,{"target":32,"score":59,"status":60,"policy":61,"why":62,"asset_kind":29,"install_mode":34},98,"native","allow",[63,64,65,66,67,68,69],"target_tools includes codex","asset_kind skill","install_mode single","markdown-only","policy allow","safe markdown-only Codex install","trust established",{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":28,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":73,"review_status":74,"signals":75},"established","hash_only",[],"unreviewed",[76,77,78],"author has published assets","content hash available","no dangerous capability badges",{"owner_uuid":9,"owner_name":10,"source_url":80,"content_hash":28,"visibility":17,"created_at":81,"updated_at":81},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-a3d92cb5","2026-05-12 12:11:24",null,[84,143,189,235],{"id":85,"uuid":86,"slug":87,"title":88,"description":89,"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":90,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":91,"tags":92,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":94,"asset_kind":29,"target_tools":95,"install_mode":34,"entrypoint":96,"risk_profile":97,"dependencies":99,"verification":104,"agent_metadata":107,"agent_fit":119,"trust":126,"provenance":131,"created_at":133,"updated_at":134,"__relatedScore":135,"__relatedReasons":136,"__sharedTags":141},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,[],[93],{"id":23,"name":24,"slug":25,"icon":26},"95c5fe90e3be6a576e5cae1719b229c239e0579c3d43639b1d54400ff6d32b38",[31,32,33],"SKILL.md",{"executes_code":27,"modifies_global_config":27,"requires_secrets":98,"uses_absolute_paths":27,"network_access":57},[],{"npm":100,"pip":101,"brew":102,"system":103},[],[],[],[],{"commands":105,"expected_files":106},[],[11],{"asset_kind":29,"target_tools":108,"install_mode":34,"entrypoint":96,"risk_profile":109,"dependencies":111,"content_hash":94,"verification":116},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":110,"uses_absolute_paths":27,"network_access":57},[],{"npm":112,"pip":113,"brew":114,"system":115},[],[],[],[],{"commands":117,"expected_files":118},[],[11],{"target":32,"score":120,"status":121,"policy":122,"why":123,"asset_kind":29,"install_mode":34},64,"needs_confirmation","confirm",[63,64,65,124,125,69],"policy confirm","risk_profile.network_access is true",{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":94,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":127,"review_status":74,"signals":129},[128],"network_access",[130,76,77],"asset has usage views",{"owner_uuid":9,"owner_name":10,"source_url":132,"content_hash":94,"visibility":17,"created_at":133,"updated_at":134},"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,[137,138,139,140],"topic-match","same-kind","same-target","same-author",[25,142],"configs",{"id":144,"uuid":145,"slug":146,"title":147,"description":148,"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":149,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":150,"tags":151,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":153,"asset_kind":29,"target_tools":154,"install_mode":34,"entrypoint":96,"risk_profile":155,"dependencies":157,"verification":162,"agent_metadata":165,"agent_fit":177,"trust":179,"provenance":182,"created_at":184,"updated_at":185,"__relatedScore":186,"__relatedReasons":187,"__sharedTags":188},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,[],[152],{"id":23,"name":24,"slug":25,"icon":26},"4429811a2bce65a5aa0b2bb0e3b94241c47b26d681c48e57eeaf3f196e56a6e1",[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":156,"uses_absolute_paths":27,"network_access":27},[],{"npm":158,"pip":159,"brew":160,"system":161},[],[],[],[],{"commands":163,"expected_files":164},[],[11],{"asset_kind":29,"target_tools":166,"install_mode":34,"entrypoint":96,"risk_profile":167,"dependencies":169,"content_hash":153,"verification":174},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":168,"uses_absolute_paths":27,"network_access":27},[],{"npm":170,"pip":171,"brew":172,"system":173},[],[],[],[],{"commands":175,"expected_files":176},[],[11],{"target":32,"score":59,"status":60,"policy":61,"why":178,"asset_kind":29,"install_mode":34},[63,64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":153,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":180,"review_status":74,"signals":181},[],[130,76,77,78],{"owner_uuid":9,"owner_name":10,"source_url":183,"content_hash":153,"visibility":17,"created_at":184,"updated_at":185},"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,[137,138,139,140],[25,142],{"id":190,"uuid":191,"slug":192,"title":193,"description":194,"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":195,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":196,"tags":197,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":199,"asset_kind":29,"target_tools":200,"install_mode":34,"entrypoint":96,"risk_profile":201,"dependencies":203,"verification":208,"agent_metadata":211,"agent_fit":223,"trust":225,"provenance":228,"created_at":230,"updated_at":231,"__relatedScore":232,"__relatedReasons":233,"__sharedTags":234},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,[],[198],{"id":23,"name":24,"slug":25,"icon":26},"96a212724349417d4893220c03705fb16670f85cfc45a146702a65bf21314a7a",[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":202,"uses_absolute_paths":27,"network_access":27},[],{"npm":204,"pip":205,"brew":206,"system":207},[],[],[],[],{"commands":209,"expected_files":210},[],[11],{"asset_kind":29,"target_tools":212,"install_mode":34,"entrypoint":96,"risk_profile":213,"dependencies":215,"content_hash":199,"verification":220},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":214,"uses_absolute_paths":27,"network_access":27},[],{"npm":216,"pip":217,"brew":218,"system":219},[],[],[],[],{"commands":221,"expected_files":222},[],[11],{"target":32,"score":59,"status":60,"policy":61,"why":224,"asset_kind":29,"install_mode":34},[63,64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":199,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":226,"review_status":74,"signals":227},[],[76,77,78],{"owner_uuid":9,"owner_name":10,"source_url":229,"content_hash":199,"visibility":17,"created_at":230,"updated_at":231},"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,[137,138,139,140],[25,142],{"id":236,"uuid":237,"slug":238,"title":239,"description":240,"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":241,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":242,"tags":243,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":245,"asset_kind":29,"target_tools":246,"install_mode":34,"entrypoint":96,"risk_profile":247,"dependencies":249,"verification":254,"agent_metadata":257,"agent_fit":269,"trust":271,"provenance":274,"created_at":276,"updated_at":277,"__relatedScore":278,"__relatedReasons":279,"__sharedTags":280},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,[],[244],{"id":23,"name":24,"slug":25,"icon":26},"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":248,"uses_absolute_paths":27,"network_access":27},[],{"npm":250,"pip":251,"brew":252,"system":253},[],[],[],[],{"commands":255,"expected_files":256},[],[],{"asset_kind":29,"target_tools":258,"install_mode":34,"entrypoint":96,"risk_profile":259,"dependencies":261,"content_hash":245,"verification":266,"inferred":57},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":260,"uses_absolute_paths":27,"network_access":27},[],{"npm":262,"pip":263,"brew":264,"system":265},[],[],[],[],{"commands":267,"expected_files":268},[],[],{"target":32,"score":59,"status":60,"policy":61,"why":270,"asset_kind":29,"install_mode":34},[63,64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":245,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":272,"review_status":74,"signals":273},[],[76,77,78],{"owner_uuid":9,"owner_name":10,"source_url":275,"content_hash":245,"visibility":17,"created_at":276,"updated_at":277},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-abf1cbcf","2026-05-11 20:33:53","2026-05-12 11:43:35",125.88290875765496,[137,138,139,140],[25,142]]