{"id":51317978,"url":"https://github.com/thisago/unifetch","last_synced_at":"2026-07-01T09:31:46.614Z","repository":{"id":190686478,"uuid":"683154939","full_name":"thisago/unifetch","owner":"thisago","description":"Multi backend HTTP fetching","archived":false,"fork":false,"pushed_at":"2023-11-26T18:35:51.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-02T04:17:55.538Z","etag":null,"topics":["fetch","httpclient","library","multi-backend","nim","seamless"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/thisago.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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}},"created_at":"2023-08-25T18:22:10.000Z","updated_at":"2023-09-29T18:33:27.000Z","dependencies_parsed_at":"2023-11-10T10:18:24.985Z","dependency_job_id":"dc8934e2-9e05-4912-a223-d817ca5971c9","html_url":"https://github.com/thisago/unifetch","commit_stats":null,"previous_names":["thisago/unifetch"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/thisago/unifetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Funifetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Funifetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Funifetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Funifetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisago","download_url":"https://codeload.github.com/thisago/unifetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Funifetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35001648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fetch","httpclient","library","multi-backend","nim","seamless"],"created_at":"2026-07-01T09:31:46.051Z","updated_at":"2026-07-01T09:31:46.609Z","avatar_url":"https://github.com/thisago.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\n# Unifetch\n\n#### Multi backend HTTP fetching\n\n**[About](#about) - [Features](#features) - [Why?](#why) - [Usage](#usage)** - [License](#license)\n\n\u003e **Warning**\n\u003e Not all backends are implemented.\n\n\u003c/div\u003e\n\n## About\n\nUnified fetching\n\n## Features\n\n- Supported backends\n  - [x] C-like\n  - [x] Javascript\n    - [x] Web (async XMLHttpRequest)\n    - [x] NodeJS (std http/https)\n    - [ ] Userscript (GM API)\n- [x] Sharable request caching over backends and others binaries\n- [x] Request Curl representation\n\n## Why?\n\nCompile the same code to any backend with extra features!\n\n### Development features\n\nAlso, Unifetch provides you helpful features for development purposes\n\n#### Curl representation\n\nIf some request isn't worked as expected for some reason, you can enable this\nfeature with `-d:unifetchShowCurlRepr` and analyze the curl request externally!\n\n#### Persistent caching\n\nYou can enable a persistent request caching with `-d:unifetchCache=/tmp/unifetchCache`.\nAll requests would be saved into specified directory and skip when the parameters\nis exactly the same and cache exists.\n\nIn JS-web backend the cache is stored in LocalStorage, every request saves a new\nentry\n\n## Usage\n\n```nim\nimport pkg/unifetch\n\necho fetch \"https://example.com\"\n```\n\nor\n\n```nim\nimport pkg/unifetch\n\nlet\n  uni = newUniClient()\n  resp = await uni.get(\"https://example.com\")\n\necho resp.body\n```\n\n## TODO\n\n- [ ] Javascript Backend\n  \u003c!-- - [ ] Use fetch for web --\u003e\n  - [ ] Userscript (GM API)\n  - [ ] Implement proxy at NodeJS backend\n- [ ] Add tests\n- [ ] Production ready caching (without response parameters or encrypting it) with optional expiration\n  - [ ] Optional runtime only cache\n- [ ] Disable SSL checking option for NodeJS\n\n## License\n\nThis library is licensed over MIT license!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Funifetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisago%2Funifetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Funifetch/lists"}