{"id":25161106,"url":"https://github.com/kao-xiang/bunios","last_synced_at":"2026-05-15T13:34:42.520Z","repository":{"id":276373247,"uuid":"929098738","full_name":"kao-xiang/bunios","owner":"kao-xiang","description":"Axios Alternative But For Bun","archived":false,"fork":false,"pushed_at":"2025-02-07T20:03:03.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-30T23:42:53.434Z","etag":null,"topics":["axios","bun","fetch"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kao-xiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-07T20:02:30.000Z","updated_at":"2025-02-07T20:05:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"e07d4062-23fb-4166-8935-930d6a13d278","html_url":"https://github.com/kao-xiang/bunios","commit_stats":null,"previous_names":["kao-xiang/bunios"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kao-xiang/bunios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kao-xiang%2Fbunios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kao-xiang%2Fbunios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kao-xiang%2Fbunios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kao-xiang%2Fbunios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kao-xiang","download_url":"https://codeload.github.com/kao-xiang/bunios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kao-xiang%2Fbunios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["axios","bun","fetch"],"created_at":"2025-02-09T02:18:01.396Z","updated_at":"2026-05-15T13:34:42.515Z","avatar_url":"https://github.com/kao-xiang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bunios\n\nBunios is an Axios alternative or fetch wrapper for Bun with a predefined authPlugin that supports refresh tokens.\n\n## Features\n\n- Simple and intuitive API similar to Axios\n- Built-in authentication plugin with refresh token support\n- Lightweight and fast\n- Fully compatible with Bun\n\n## Installation\n\n```bash\nbun add bunios\n```\n\n## Usage\n\n```javascript\nimport bunios from \"bunios\";\n\n// Initialize bunios with your configuration\nconst apiClient = bunios;\n\napiClient.use(\n  buniosAuth({\n    getAccessToken: () =\u003e localStorage.getItem(\"accessToken\"),\n    setAccessToken: (res) =\u003e\n      localStorage.setItem(\"accessToken\", res.data.access_token),\n    getRefreshToken: () =\u003e localStorage.getItem(\"refreshToken\"),\n    setRefreshToken: (res) =\u003e\n      localStorage.setItem(\"refreshToken\", res.data.refresh_token),\n    maxRefresh: 1,\n    onError: console.error,\n    onRefreshError: console.error,\n    loginPath: \"/auth/login\",\n    refreshPath: \"/auth/refresh\",\n  })\n);\n\n// Make a request\napiClient\n  .get(\"/endpoint\")\n  .then((response) =\u003e {\n    console.log(response.data);\n  })\n  .catch((error) =\u003e {\n    console.error(error);\n  });\n```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkao-xiang%2Fbunios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkao-xiang%2Fbunios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkao-xiang%2Fbunios/lists"}