{"adoption": {"forks": 112, "observed_at": "2026-08-28T04:06:27.345453+00:00", "stars": 2218}, "canonical_url": "https://ross.abutalabs.com/products/gock", "card": {"archived": false, "artifact_type": "library", "description": "HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽", "domain": ["testing", "developer-tools", "apis", "web-development"], "enriched": true, "function": ["mocking", "testing", "http-client"], "health_score": 20, "homepage": "https://pkg.go.dev/github.com/h2non/gock", "language": "Go", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["h2non/gock"], "name": "h2non/gock", "platform": ["go", "cross-platform"], "pushed_at": "2024-09-24T10:01:06+00:00", "repo": "h2non/gock", "stars": 2218, "tags": ["http-mocking", "http-interceptor", "nock-inspired", "stubbing", "net-http", "roundtripper", "api-testing"], "topics": ["http", "mocking", "interception", "expectations", "assertions", "http-transactions", "mock", "stubs", "testing", "api", "http-server", "http-api", "go", "https"], "urls": [], "use_cases": ["mock http responses in go tests", "stub external api calls in unit tests", "intercept net/http requests during testing", "simulate network timeouts and delays in go", "test http clients without hitting real servers", "mock  api responses in go"], "what_it_is": "gock is a Go library for declarative HTTP traffic mocking that intercepts outgoing requests via http.RoundTripper and matches them against defined expectations. It offers a fluent DSL for stubbing responses with matching by method, URL, headers, and body, inspired by JavaScript's nock.", "when_to_avoid": ["you need to mock gRPC or non-HTTP protocols", "you prefer running a real mock server over in-process interception", "your project is not written in Go"], "when_to_choose": ["you write Go tests that make outbound HTTP calls via net/http", "you want a nock-style fluent DSL for declaring HTTP expectations", "you need regex-based request matching or TTL-limited mocks"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/gock", "repo": "h2non/gock", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:27.345453+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:45:54.193592+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "24a4bfae4c1c14b8eb3d7148331e52dc1c8052d50dc2ab1e0e11b8fcbe027c13", "fetched_at": "2026-08-28T04:06:27.345453+00:00", "kind": "readme", "missing": false, "url": "https://github.com/h2non/gock"}, {"content_hash": "c57f404f6ee65d2816c66817b9217f079b4d226c1fa2062a501d6919f89db988", "fetched_at": "2026-08-29T10:26:03.266637+00:00", "kind": "homepage", "missing": false, "url": "https://pkg.go.dev/github.com/h2non/gock"}, {"content_hash": "75785202787982b0473b4d3670a3a27d75ac579d845d284ac1c5eb57ab52ce15", "fetched_at": "2026-08-29T10:26:03.656693+00:00", "kind": "site_page", "missing": false, "url": "https://pkg.go.dev/about"}, {"content_hash": "d5ca00bb378b3176005edcb1536e3eac5a43d18a9370fe9acade241faac7a003", "fetched_at": "2026-08-29T10:26:03.671738+00:00", "kind": "site_page", "missing": false, "url": "https://go.dev/project"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3836, "days_push": 708, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}