{"id":17677512,"url":"https://github.com/dvcol/base-http-client","last_synced_at":"2025-03-12T11:30:45.398Z","repository":{"id":239346665,"uuid":"799267105","full_name":"dvcol/base-http-client","owner":"dvcol","description":"Generic http client with caching and cancel support","archived":false,"fork":false,"pushed_at":"2024-08-26T16:36:27.000Z","size":542,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T22:17:37.617Z","etag":null,"topics":["abstract","client","fetch","http","library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dvcol.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-11T16:12:40.000Z","updated_at":"2024-10-07T12:17:30.000Z","dependencies_parsed_at":"2024-06-18T20:27:13.040Z","dependency_job_id":"669cc48b-1001-4a06-b759-f55c9335bdd4","html_url":"https://github.com/dvcol/base-http-client","commit_stats":null,"previous_names":["dvcol/base-http-client"],"tags_count":31,"template":false,"template_full_name":"dvcol/typescript-lib-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvcol%2Fbase-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvcol%2Fbase-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvcol%2Fbase-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvcol%2Fbase-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvcol","download_url":"https://codeload.github.com/dvcol/base-http-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243208746,"owners_count":20254095,"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":["abstract","client","fetch","http","library"],"created_at":"2024-10-24T07:28:54.460Z","updated_at":"2025-03-12T11:30:44.667Z","avatar_url":"https://github.com/dvcol.png","language":"TypeScript","funding_links":["https://paypal.me/dvcol/5"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e@dvcol/base-http-client\u003c/h1\u003e\n\u003cp\u003e\n  \u003cimg src=\"https://img.shields.io/badge/pnpm-%3E%3D9.0.0-blue.svg\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/node-%3E%3D20.0.0-blue.svg\" /\u003e\n  \u003ca href=\"https://paypal.me/dvcol/5\" target=\"_blank\"\u003e\n    \u003cimg alt=\"donate\" src=\"https://img.shields.io/badge/Donate%20€-PayPal-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Simple HTTP client wrapping fetch API to add basic caching, abort signal and proxy support.\n\n## Prerequisites\n\n- pnpm \u003e=9.0.0\n- node \u003e=20.0.0\n\n## Install\n\n```sh\npnpm install\n```\n\n## Usage\n\n```sh\npnpm add @dvcol/base-http-client\n```\n\n### Features\n\n* [Modular endpoint typing](https://github.com/dvcol/base-http-client/blob/ed17c369f3cdf93656568373fc2dba841050e427/lib/client/base-client.test.ts#L20-L138) (both request and response)\n* [Built-in cache support](https://github.com/dvcol/base-http-client/blob/ed17c369f3cdf93656568373fc2dba841050e427/lib/client/base-client.test.ts#L235-L484) (per client, endpoint, or query)\n* [Extensible cache store](https://github.com/dvcol/base-http-client/blob/ed17c369f3cdf93656568373fc2dba841050e427/lib/client/base-client.test.ts#L186-L194) (in-memory, local storage, etc.)\n* [Event observer](https://github.com/dvcol/base-http-client/blob/ed17c369f3cdf93656568373fc2dba841050e427/lib/client/base-client.test.ts#L486-L575) (request, query, auth)\n* [Built-in cancellation support](https://github.com/dvcol/base-http-client/blob/ed17c369f3cdf93656568373fc2dba841050e427/lib/client/base-client.test.ts#L691-L758)\n* [Built-in cors proxy support](https://github.com/dvcol/base-http-client/blob/ed17c369f3cdf93656568373fc2dba841050e427/lib/models/base-client.model.ts#L14)\n\n## Author\n\n* Github: [@dvcol](https://github.com/dvcol)\n\n## 📝 License\n\nThis project is [MIT](https://github.com/dvcol/trakt-extension/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvcol%2Fbase-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvcol%2Fbase-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvcol%2Fbase-http-client/lists"}