[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-abf1cbcf":3,"seo:featured-workflow:abf1cbcf-4d35-11f1-9bc6-00163e2b0d79:en":82,"workflow-related-asset-abf1cbcf-abf1cbcf-4d35-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},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.","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},3608,1,"Gorilla Mux Overview","# Gorilla Mux — Powerful HTTP Router and URL Matcher for Go\n\n## Quick Use\n```bash\ngo get github.com\u002Fgorilla\u002Fmux\n```\n```go\nr := mux.NewRouter()\nr.HandleFunc(\"\u002Fusers\u002F{id:[0-9]+}\", GetUser).Methods(\"GET\")\nhttp.ListenAndServe(\":8080\", r)\n```\n\n## Introduction\nGorilla Mux is one of the most widely adopted HTTP routers for Go. It extends the standard net\u002Fhttp ServeMux with path variables, regex constraints, host matching, and middleware support, while remaining fully compatible with the http.Handler interface.\n\n## What Gorilla Mux Does\n- Matches routes by path, HTTP method, headers, query parameters, and host\n- Supports named path variables with optional regex validation\n- Groups related routes using subrouters for cleaner URL organization\n- Chains middleware at the router or subrouter level\n- Generates URLs from named routes for reverse routing\n\n## Architecture Overview\nGorilla Mux implements the http.Handler interface. Internally it stores routes in a list and matches requests sequentially against registered criteria (path pattern, method, host, headers, query values). Path variables are extracted via regex groups and stored in the request context. Subrouters inherit parent matchers and allow hierarchical route grouping without a separate framework.\n\n## Self-Hosting & Configuration\n- Install with `go get github.com\u002Fgorilla\u002Fmux`\n- Create a router with `mux.NewRouter()` and register handlers\n- Use `r.PathPrefix(\"\u002Fapi\").Subrouter()` to scope middleware to route groups\n- Enable CORS or logging via standard middleware functions\n- Pass the router directly to `http.ListenAndServe` or wrap with TLS\n\n## Key Features\n- Regex-constrained path variables like `{id:[0-9]+}` for type-safe URL matching\n- Named routes with `r.Name(\"user\")` enable reverse URL generation via `r.URL()`\n- Subrouters scope middleware and path prefixes to logical groups\n- Fully compatible with http.Handler, so any standard middleware works\n- Walks registered routes for documentation or debugging with `r.Walk()`\n\n## Comparison with Similar Tools\n- **Chi** — Tree-based router with similar API; slightly faster but no regex constraints built-in\n- **Gin** — Full framework with JSON binding and validation; Gorilla Mux is a pure router\n- **http.ServeMux** — Standard library default; lacks path variables, methods, and middleware\n- **Echo** — Framework with its own context; Gorilla Mux uses standard request context\n- **httprouter** — Faster radix-tree router but less flexible matching and no subrouters\n\n## FAQ\n**Q: Is Gorilla Mux still maintained?**\nA: After a brief archival in 2022, the Gorilla toolkit was revived by community maintainers and is actively developed again.\n\n**Q: Is Gorilla Mux slower than alternatives like Chi or httprouter?**\nA: Its linear route matching is slightly slower than tree-based routers for very large route tables, but the difference is negligible for most applications.\n\n**Q: Can I use Gorilla Mux with middleware like Alice or negroni?**\nA: Yes. Because it implements http.Handler, it works with any standard middleware solution.\n\n**Q: How do I extract path variables in a handler?**\nA: Use `mux.Vars(r)` which returns a `map[string]string` of named parameters from the matched route.\n\n## Sources\n- https:\u002F\u002Fgithub.com\u002Fgorilla\u002Fmux\n- https:\u002F\u002Fgorilla.github.io","0",[22],{"id":23,"name":24,"slug":25,"icon":26},12,"Configs","config","⚙️",false,"b63e96279316f768392a54b3bc3cd09ebfb782f09e785832d0deb6808afdfaa0","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-abf1cbcf","2026-05-11 20:33:53",null,[84,140,196,242],{"id":85,"uuid":86,"slug":87,"title":88,"description":89,"author_id":90,"author_name":91,"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":13,"steps":93,"tags":94,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":100,"asset_kind":29,"target_tools":101,"install_mode":34,"entrypoint":102,"risk_profile":103,"dependencies":105,"verification":110,"agent_metadata":113,"agent_fit":125,"trust":127,"provenance":130,"created_at":132,"updated_at":133,"__relatedScore":134,"__relatedReasons":135,"__sharedTags":139},2120,"1f62c989-40c3-11f1-9bc6-00163e2b0d79","chi-lightweight-composable-http-router-go-1f62c989","Chi — Lightweight Composable HTTP Router for Go","Chi is a lightweight, idiomatic HTTP router for Go built on net\u002Fhttp, offering middleware composition, subrouting, and context-based request handling.","8a910e34-3180-11f1-9bc6-00163e2b0d79","Script Depot",51,[],[95],{"id":96,"name":97,"slug":98,"icon":99},11,"Scripts","script","📜","796f1141e2ba474a8e40b25362d8d2bf341844ddd8f96a7de032d23df132162d",[31,32,33],"Chi Router Overview",{"executes_code":27,"modifies_global_config":27,"requires_secrets":104,"uses_absolute_paths":27,"network_access":27},[],{"npm":106,"pip":107,"brew":108,"system":109},[],[],[],[],{"commands":111,"expected_files":112},[],[102],{"asset_kind":29,"target_tools":114,"install_mode":34,"entrypoint":102,"risk_profile":115,"dependencies":117,"content_hash":100,"verification":122},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":116,"uses_absolute_paths":27,"network_access":27},[],{"npm":118,"pip":119,"brew":120,"system":121},[],[],[],[],{"commands":123,"expected_files":124},[],[102],{"target":32,"score":59,"status":60,"policy":61,"why":126,"asset_kind":29,"install_mode":34},[63,64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":100,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":128,"review_status":74,"signals":129},[],[76,77,78],{"owner_uuid":90,"owner_name":91,"source_url":131,"content_hash":100,"visibility":17,"created_at":132,"updated_at":133},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fchi-lightweight-composable-http-router-go-1f62c989","2026-04-26 00:23:41","2026-05-11 16:21:06",106.5740050154522,[136,137,138],"topic-match","same-kind","same-target",[],{"id":141,"uuid":142,"slug":143,"title":144,"description":145,"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":146,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":147,"tags":148,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":150,"asset_kind":29,"target_tools":151,"install_mode":34,"entrypoint":152,"risk_profile":153,"dependencies":155,"verification":160,"agent_metadata":163,"agent_fit":175,"trust":182,"provenance":187,"created_at":189,"updated_at":190,"__relatedScore":191,"__relatedReasons":192,"__sharedTags":194},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.",126,[],[149],{"id":23,"name":24,"slug":25,"icon":26},"95c5fe90e3be6a576e5cae1719b229c239e0579c3d43639b1d54400ff6d32b38",[31,32,33],"SKILL.md",{"executes_code":27,"modifies_global_config":27,"requires_secrets":154,"uses_absolute_paths":27,"network_access":57},[],{"npm":156,"pip":157,"brew":158,"system":159},[],[],[],[],{"commands":161,"expected_files":162},[],[11],{"asset_kind":29,"target_tools":164,"install_mode":34,"entrypoint":152,"risk_profile":165,"dependencies":167,"content_hash":150,"verification":172},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":166,"uses_absolute_paths":27,"network_access":57},[],{"npm":168,"pip":169,"brew":170,"system":171},[],[],[],[],{"commands":173,"expected_files":174},[],[11],{"target":32,"score":176,"status":177,"policy":178,"why":179,"asset_kind":29,"install_mode":34},64,"needs_confirmation","confirm",[63,64,65,180,181,69],"policy confirm","risk_profile.network_access is true",{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":150,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":183,"review_status":74,"signals":185},[184],"network_access",[186,76,77],"asset has usage views",{"owner_uuid":9,"owner_name":10,"source_url":188,"content_hash":150,"visibility":17,"created_at":189,"updated_at":190},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fgin-high-performance-http-web-framework-go-65c0d201","2026-04-12 13:28:11","2026-05-11 20:42:17",103.15570558143393,[136,137,138,193],"same-author",[25,195],"configs",{"id":197,"uuid":198,"slug":199,"title":200,"description":201,"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":202,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":203,"tags":204,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":206,"asset_kind":29,"target_tools":207,"install_mode":34,"entrypoint":152,"risk_profile":208,"dependencies":210,"verification":215,"agent_metadata":218,"agent_fit":230,"trust":232,"provenance":235,"created_at":237,"updated_at":238,"__relatedScore":239,"__relatedReasons":240,"__sharedTags":241},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.",107,[],[205],{"id":23,"name":24,"slug":25,"icon":26},"4429811a2bce65a5aa0b2bb0e3b94241c47b26d681c48e57eeaf3f196e56a6e1",[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":209,"uses_absolute_paths":27,"network_access":27},[],{"npm":211,"pip":212,"brew":213,"system":214},[],[],[],[],{"commands":216,"expected_files":217},[],[11],{"asset_kind":29,"target_tools":219,"install_mode":34,"entrypoint":152,"risk_profile":220,"dependencies":222,"content_hash":206,"verification":227},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":221,"uses_absolute_paths":27,"network_access":27},[],{"npm":223,"pip":224,"brew":225,"system":226},[],[],[],[],{"commands":228,"expected_files":229},[],[11],{"target":32,"score":59,"status":60,"policy":61,"why":231,"asset_kind":29,"install_mode":34},[63,64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":206,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":233,"review_status":74,"signals":234},[],[186,76,77,78],{"owner_uuid":9,"owner_name":10,"source_url":236,"content_hash":206,"visibility":17,"created_at":237,"updated_at":238},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fecho-high-performance-minimalist-go-web-framework-412fe31a","2026-04-12 13:55:48","2026-05-11 22:03:05",98.05013563323043,[136,137,138,193],[25,195],{"id":243,"uuid":244,"slug":245,"title":246,"description":247,"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":248,"parent_id":12,"parent_uuid":11,"lang_type":13,"steps":249,"tags":250,"has_voted":27,"visibility":17,"share_token":11,"is_featured":12,"content_hash":252,"asset_kind":29,"target_tools":253,"install_mode":34,"entrypoint":254,"risk_profile":255,"dependencies":257,"verification":262,"agent_metadata":265,"agent_fit":277,"trust":279,"provenance":282,"created_at":284,"updated_at":285,"__relatedScore":286,"__relatedReasons":287,"__sharedTags":288},2537,"94abdd1a-46a7-11f1-9bc6-00163e2b0d79","asset-94abdd1a","Gorilla WebSocket — Production-Grade WebSocket Library for Go","A well-tested, complete implementation of the WebSocket protocol for Go that passes the Autobahn test suite and powers real-time applications at scale.",23,[],[251],{"id":23,"name":24,"slug":25,"icon":26},"25eeb0093b04dc2e47bf01298e77425a09f4515d6d3c2b349a1cf04d5fd4d599",[31,32,33],"Gorilla WebSocket Overview",{"executes_code":27,"modifies_global_config":27,"requires_secrets":256,"uses_absolute_paths":27,"network_access":27},[],{"npm":258,"pip":259,"brew":260,"system":261},[],[],[],[],{"commands":263,"expected_files":264},[],[254],{"asset_kind":29,"target_tools":266,"install_mode":34,"entrypoint":254,"risk_profile":267,"dependencies":269,"content_hash":252,"verification":274},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":268,"uses_absolute_paths":27,"network_access":27},[],{"npm":270,"pip":271,"brew":272,"system":273},[],[],[],[],{"commands":275,"expected_files":276},[],[254],{"target":32,"score":59,"status":60,"policy":61,"why":278,"asset_kind":29,"install_mode":34},[63,64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":27,"asset_signed_hash":252,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":280,"review_status":74,"signals":281},[],[76,77,78],{"owner_uuid":9,"owner_name":10,"source_url":283,"content_hash":252,"visibility":17,"created_at":284,"updated_at":285},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-94abdd1a","2026-05-03 12:21:39","2026-05-10 11:53:59",96.07031686256741,[136,137,138,193],[25,195]]