{"id":41744832,"url":"https://github.com/tinh-tinh/fetch","last_synced_at":"2026-01-25T00:48:08.356Z","repository":{"id":261355327,"uuid":"864366995","full_name":"tinh-tinh/fetch","owner":"tinh-tinh","description":"🌐 HTTP client for the Tinh Tinh Framework","archived":false,"fork":false,"pushed_at":"2025-12-28T09:07:17.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-30T14:14:04.129Z","etag":null,"topics":["framework","http-client"],"latest_commit_sha":null,"homepage":"https://tinh-tinh.github.io/docs/docs/intergrations/fetch","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinh-tinh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-28T03:30:05.000Z","updated_at":"2025-12-28T09:07:21.000Z","dependencies_parsed_at":"2025-01-16T08:29:12.243Z","dependency_job_id":"7d7eb88a-989a-436b-88c1-f300798c2495","html_url":"https://github.com/tinh-tinh/fetch","commit_stats":null,"previous_names":["tinh-tinh/fetch"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tinh-tinh/fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Ffetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Ffetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Ffetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Ffetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinh-tinh","download_url":"https://codeload.github.com/tinh-tinh/fetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Ffetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28740271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["framework","http-client"],"created_at":"2026-01-25T00:48:07.719Z","updated_at":"2026-01-25T00:48:08.342Z","avatar_url":"https://github.com/tinh-tinh.png","language":"Go","readme":"# HTTP Fetch for Tinh Tinh\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/tinh-tinh/fetch\"\u003e\n\u003cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/tinh-tinh/fetch\"\u003e\n\u003ca href=\"https://codecov.io/gh/tinh-tinh/fetch\" \u003e \n \u003cimg src=\"https://codecov.io/gh/tinh-tinh/fetch/graph/badge.svg?token=VK57E807N2\"/\u003e \n \u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/tinh-tinh/fetch\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/tinh-tinh/fetch.svg\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://avatars.githubusercontent.com/u/178628733?s=400\u0026u=2a8230486a43595a03a6f9f204e54a0046ce0cc4\u0026v=4\" width=\"200\" alt=\"Tinh Tinh Logo\"\u003e\n\u003c/div\u003e\n\n## Overview\n\nA flexible, type-safe HTTP client for the Tinh Tinh Framework, inspired by fetch/axios, supporting full-featured requests, easy configuration, and integration with Tinh Tinh modules.\n\n## Install\n\n```bash\ngo get -u github.com/tinh-tinh/fetch/v2\n```\n\n## Features\n\n- Simple and chainable syntax for all HTTP verbs (GET, POST, PUT, PATCH, DELETE, etc.)\n- Base URL and per-request configuration\n- Automatic JSON encoding/decoding (customizable)\n- Query parameter and header support\n- Timeout and cancellation (context-based)\n- Cookie and credential management\n- Response formatting with type inference\n- Full integration as a Tinh Tinh module/provider\n\n## Quick Usage\n\n### Create a Fetch Instance\n\n```go\nimport \"github.com/tinh-tinh/fetch/v2\"\n\nclient := fetch.Create(\u0026fetch.Config{\n    BaseUrl: \"https://jsonplaceholder.typicode.com\",\n    Headers: map[string][]string{\n        \"x-api-key\": {\"abcd\", \"efgh\"},\n    },\n    Timeout: 5 * time.Second,\n    ResponseType: \"json\",\n})\n```\n\n### Make HTTP Requests\n\n```go\n// GET with query params\ntype Query struct {\n    PostID int `query:\"postId\"`\n}\nres := client.Get(\"comments\", \u0026Query{PostID: 1})\n\n// POST with body and query\ntype Post struct {\n    UserID int    `json:\"userId\"`\n    Title  string `json:\"title\"`\n    Body   string `json:\"body\"`\n}\nres = client.Post(\"posts\", \u0026Post{UserID: 1, Title: \"foo\", Body: \"bar\"}, \u0026Query{PostID: 1})\n\n// PUT, PATCH, DELETE\nclient.Put(\"posts/1\", \u0026Post{UserID: 1, Title: \"updated\", Body: \"new\"}, \u0026Query{PostID: 1})\nclient.Patch(\"posts/1\", \u0026Post{UserID: 1, Title: \"patch\", Body: \"body\"}, \u0026Query{PostID: 1})\nclient.Delete(\"posts/1\", \u0026Query{PostID: 1})\n```\n\n## Contributing\n\nWe welcome contributions! Please feel free to submit a Pull Request.\n\n## Support\n\nIf you encounter any issues or need help, you can:\n- Open an issue in the GitHub repository\n- Check our documentation\n- Join our community discussions\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinh-tinh%2Ffetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinh-tinh%2Ffetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinh-tinh%2Ffetch/lists"}