{"id":45190283,"url":"https://github.com/kasperrt/wiretyped","last_synced_at":"2026-02-20T12:02:10.890Z","repository":{"id":327308684,"uuid":"1107998901","full_name":"kasperrt/wiretyped","owner":"kasperrt","description":"A universal fetch-based, typed HTTP client with error-first ergonomics, retries, caching, SSE, and Standard Schema validation.","archived":false,"fork":false,"pushed_at":"2026-02-03T10:00:22.000Z","size":872,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-03T22:29:41.628Z","etag":null,"topics":["api-client","cache","error-first","error-handling","fetch","fetch-api","fetch-client","http-client","rest-client","retry","schema-validation","sse","standard-schema","type-safe","typecript","universal"],"latest_commit_sha":null,"homepage":"https://wiretyped.io/","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/kasperrt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2025-12-01T22:19:41.000Z","updated_at":"2026-02-03T10:00:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kasperrt/wiretyped","commit_stats":null,"previous_names":["kasperrt/wiretyped"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/kasperrt/wiretyped","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasperrt%2Fwiretyped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasperrt%2Fwiretyped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasperrt%2Fwiretyped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasperrt%2Fwiretyped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasperrt","download_url":"https://codeload.github.com/kasperrt/wiretyped/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasperrt%2Fwiretyped/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29650504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"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":["api-client","cache","error-first","error-handling","fetch","fetch-api","fetch-client","http-client","rest-client","retry","schema-validation","sse","standard-schema","type-safe","typecript","universal"],"created_at":"2026-02-20T12:02:05.611Z","updated_at":"2026-02-20T12:02:10.884Z","avatar_url":"https://github.com/kasperrt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# WireTyped\n\u003cbr /\u003e\n\u003cimg src=\"./docs/public/wiretyped.png\" alt=\"WireTyped logo\" width=\"200\" /\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003c/div\u003e\n\n\u003e Small and easy-to-use fetch based client with runtime validation\n\n[![CI](https://github.com/kasperrt/wiretyped/actions/workflows/ci.yml/badge.svg)](https://github.com/kasperrt/wiretyped/actions/workflows/ci.yml)\n[![Coverage](https://codecov.io/gh/kasperrt/wiretyped/branch/main/graph/badge.svg)](https://codecov.io/gh/kasperrt/wiretyped)\n[![minzip](https://deno.bundlejs.com/badge?q=wiretyped@latest)](https://bundlejs.com/?q=wiretyped@latest)\n\n\n[![npm](https://img.shields.io/npm/v/wiretyped.svg)](https://www.npmjs.com/package/wiretyped) [![JSR](https://jsr.io/badges/@kasperrt/wiretyped)](https://jsr.io/@kasperrt/wiretyped)\n\nUniversal fetch-based, typed HTTP client with error-first ergonomics, retries, caching, SSE, and Standard Schema validation.\n\nhttps://wiretyped.io\n\n\n## Installation\n\n```sh\npnpm add wiretyped\n# or: npm install wiretyped\n# or: npx jsr add @kasperrt/wiretyped\n```\n\n## What is it?\n\nWireTyped is a small, composable HTTP client for fetch-based runtimes (browser, Node, Bun, Deno, workers). You define your API as typed endpoint definitions and call it with a consistent, error-first API.\n\n## Quick taste\n\n```ts\nimport { z } from 'zod'; // Or your standard-schema/spec of choice\nimport { RequestClient, type RequestDefinitions } from 'wiretyped';\n\nconst endpoints = {\n  '/users/{id}': {\n    get: { response: z.object({ id: z.string(), name: z.string() }) },\n  },\n} satisfies RequestDefinitions;\n\nconst client = new RequestClient({\n  hostname: 'https://api.example.com',\n  baseUrl: '/api',\n  endpoints,\n  validation: true,\n});\n\nconst [err, user] = await client.get('/users/{id}', { id: '123' });\nif (err) {\n  return err;\n}\nconsole.log(user.name);\n```\n\n## Guide\n\n- [Getting Started](https://wiretyped.io/guide/getting-started)\n- [Endpoints](https://wiretyped.io/guide/endpoints)\n- [Client](https://wiretyped.io/guide/client)\n- [Methods](https://wiretyped.io/guide/methods)\n- [Caching](https://wiretyped.io/guide/caching)\n- [Retries](https://wiretyped.io/guide/retries)\n- [SSE](https://wiretyped.io/guide/sse)\n- [Error Handling](https://wiretyped.io/guide/errors)\n- [FAQ](https://wiretyped.io/faq)\n- [Changelog](https://wiretyped.io/changelog)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasperrt%2Fwiretyped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasperrt%2Fwiretyped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasperrt%2Fwiretyped/lists"}