{"id":13590858,"url":"https://github.com/saucesteals/mimic","last_synced_at":"2026-01-24T06:50:18.203Z","repository":{"id":39741222,"uuid":"494690797","full_name":"saucesteals/mimic","owner":"saucesteals","description":"Mimic chromium's HTTP/HTTP2 and TLS implementations.","archived":false,"fork":false,"pushed_at":"2024-01-17T03:45:39.000Z","size":55,"stargazers_count":81,"open_issues_count":0,"forks_count":13,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-06T11:44:57.951Z","etag":null,"topics":["fingerprint","http2","ja3","tls"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saucesteals.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2022-05-21T05:35:52.000Z","updated_at":"2024-11-04T16:25:42.000Z","dependencies_parsed_at":"2024-01-14T04:35:27.159Z","dependency_job_id":"7959e3a5-4b24-4151-888e-f39350f3afde","html_url":"https://github.com/saucesteals/mimic","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucesteals%2Fmimic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucesteals%2Fmimic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucesteals%2Fmimic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucesteals%2Fmimic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saucesteals","download_url":"https://codeload.github.com/saucesteals/mimic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247860773,"owners_count":21008350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["fingerprint","http2","ja3","tls"],"created_at":"2024-08-01T16:00:51.205Z","updated_at":"2026-01-24T06:50:18.197Z","avatar_url":"https://github.com/saucesteals.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Mimic\n\n[![GoDoc](https://godoc.org/github.com/saucesteals/mimic?status.svg)](https://godoc.org/github.com/saucesteals/mimic)\n\nMimic chromium's HTTP/HTTP2 and TLS implementations.\n\n### Documentation\n\n- [API Reference](https://godoc.org/github.com/saucesteals/mimic)\n- [Example](https://github.com/saucesteals/mimic/blob/main/examples/chrome/main.go)\n\n### Installation\n\n```sh\ngo get github.com/saucesteals/mimic\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\thttp \"github.com/saucesteals/fhttp\"\n\t\"github.com/saucesteals/mimic\"\n)\n\nfunc main() {\n\ttransport, _ := mimic.NewTransport(mimic.TransportOptions{\n\t\tVersion:   \"137.0.0.0\",\n\t\tBrand:     mimic.BrandChrome,     // or mimic.BrandBrave, mimic.BrandEdge\n\t\tPlatform:  mimic.PlatformWindows, // or mimic.PlatformMac, mimic.PlatformLinux\n\t\tTransport: \u0026http.Transport{Proxy: http.ProxyFromEnvironment},\n\t})\n\n\tclient := \u0026http.Client{Transport: transport}\n\n\treq, _ := http.NewRequest(http.MethodGet, \"https://tls.peet.ws/api/clean\", nil)\n\n\treq.Header.Add(\"rtt\", \"50\")\n\treq.Header.Add(\"accept\", \"text/html,*/*\")\n\treq.Header.Add(\"x-requested-with\", \"XMLHttpRequest\")\n\treq.Header.Add(\"downlink\", \"3.9\")\n\treq.Header.Add(\"ect\", \"4g\")\n\treq.Header.Add(\"sec-fetch-site\", \"same-origin\")\n\treq.Header.Add(\"sec-fetch-mode\", \"cors\")\n\treq.Header.Add(\"sec-fetch-dest\", \"empty\")\n\treq.Header.Add(\"accept-encoding\", \"gzip, deflate, br\")\n\treq.Header.Add(\"accept-language\", \"en,en_US;q=0.9\")\n\t// mimic automatically sets: user-agent, sec-ch-ua, sec-ch-ua-mobile, sec-ch-ua-platform\n\n\t// optional header order\n\t// req.Header[http.HeaderOrderKey] = []string{\n\t// \t\"user-agent\", \"sec-ch-ua\", \"sec-ch-ua-mobile\", ...\n\t// }\n\n\tres, _ := client.Do(req)\n\n\tbody, _ := io.ReadAll(res.Body)\n\tfmt.Println(string(body))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaucesteals%2Fmimic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaucesteals%2Fmimic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaucesteals%2Fmimic/lists"}