{"id":20617679,"url":"https://github.com/stefanmaric/cloudflare-bread","last_synced_at":"2025-08-10T19:25:54.237Z","repository":{"id":63355298,"uuid":"567266280","full_name":"stefanmaric/cloudflare-bread","owner":"stefanmaric","description":"JavaScript fetch API client for Cloudflare's API with TypeScript definitions generated from the new Cloudflare's OpenAPI schema.","archived":false,"fork":false,"pushed_at":"2023-09-18T08:30:32.000Z","size":2363,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T19:37:45.476Z","etag":null,"topics":["api","browser","cloudflare","fetch","node","openapi","typescript"],"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/stefanmaric.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}},"created_at":"2022-11-17T12:35:21.000Z","updated_at":"2023-10-31T19:10:54.000Z","dependencies_parsed_at":"2022-11-17T13:46:11.760Z","dependency_job_id":null,"html_url":"https://github.com/stefanmaric/cloudflare-bread","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanmaric%2Fcloudflare-bread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanmaric%2Fcloudflare-bread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanmaric%2Fcloudflare-bread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanmaric%2Fcloudflare-bread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanmaric","download_url":"https://codeload.github.com/stefanmaric/cloudflare-bread/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249060974,"owners_count":21206432,"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":["api","browser","cloudflare","fetch","node","openapi","typescript"],"created_at":"2024-11-16T12:05:38.881Z","updated_at":"2025-04-15T11:33:21.789Z","avatar_url":"https://github.com/stefanmaric.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudflare-bread\n\nJavaScript fetch API client for Cloudflare's API with TypeScript definitions generated from the new Cloudflare's OpenAPI schema.\n\n## Project status\n\nAlpha: being used in certain non-critical applications\n\n## Usage\n\nInstall with your package manager of choice:\n\n```shell\nnpm install cloudflare-bread\n\n# or...\n\nyarn add cloudflare-bread\n\n# or...\n\npnpm install cloudflare-bread\n```\n\nUse the API and get type definitions:\n\n```typescript\nimport { createClient } from 'cloudflare-bread'\n\nconst client = createClient({ token: process.env.CLOUDFLARE_API_TOKEN })\n\nconst response = await client.zones.zoneIdentifier('example.com').dns_records.$get({\n  searchParams: {\n    type: 'CNAME',\n  },\n})\n\nif (response.status === 200) {\n  const results = await response.json()\n  //    ^? this will be typed\n}\n```\n\n## TODO\n\n- [ ] Collapse different params on the same position into a single one.\n- [x] Fix `searchParams` being required even tho none of the params are actually required\n- [ ] Improve types of middleware\n\n## License\n\nMIT, see [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanmaric%2Fcloudflare-bread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanmaric%2Fcloudflare-bread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanmaric%2Fcloudflare-bread/lists"}