{"id":18308693,"url":"https://github.com/ardriveapp/ardrive_http","last_synced_at":"2026-02-28T04:46:37.065Z","repository":{"id":97740402,"uuid":"573483033","full_name":"ardriveapp/ardrive_http","owner":"ardriveapp","description":"A Dart/Flutter package to perform network calls. It uses Isolates to perform network calls on Dart VM environments and WebWorkers on Web.","archived":false,"fork":false,"pushed_at":"2024-09-25T12:44:21.000Z","size":34819,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-01T00:18:27.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ardriveapp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-02T15:11:25.000Z","updated_at":"2024-09-25T12:44:23.000Z","dependencies_parsed_at":"2025-04-12T17:22:00.153Z","dependency_job_id":null,"html_url":"https://github.com/ardriveapp/ardrive_http","commit_stats":null,"previous_names":["ardriveapp/ardrive_http"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ardriveapp/ardrive_http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive_http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive_http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive_http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive_http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardriveapp","download_url":"https://codeload.github.com/ardriveapp/ardrive_http/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive_http/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29924848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"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":[],"created_at":"2024-11-05T16:08:58.473Z","updated_at":"2026-02-28T04:46:37.033Z","avatar_url":"https://github.com/ardriveapp.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArDriveHTTP\n\nArDriveHTTP is a package to perform network calls for ArDrive Web. It uses Isolates to perform network calls on Dart VM environments and WebWorkers on Web.\n\n### Features\n\n- Standarized network calls\n- Support retries\n- Use Isolates and WebWorkers to reduce impact on UI process\n\n### Implemented methods\n\n- get()\n- getJson()\n- getAsBytes()\n\n## Getting started\n\nIn order to use this package you need to copy `ardrive-http.js` and `workers.js` from `js/dist` folder to your project's `web` folder so they can be dynamic imported when some `ArDriveHTTP` method is called.\n\n## Usage\n\nSimply create a new instance of `ArDriveHTTP` and pass the follow optional params:\n\n- `retries`: amount of retry attempts\n- `retryDelayMs`: base retry delay in ms\n- `noLogs`: to hide logs\n\n```dart\n// Using defaults\nfinal http = ArDriveHTTP()\n\n// Setting params\n// Retry 4 times\n// Initial delay of 100ms\n// Don't log requests\nfinal http = ArDriveHTTP(\n  retries: 4,\n  retryDelayMs: 100,\n  noLog: true,\n);\n```\n\nCall the intended method like:\n\n```dart\n// Get raw response\nfinal response = await ArDriveHTTP().get(url: 'https://url');\n\n// Get JSON response\nfinal jsonResponse = await ArDriveHTTP().get(\n  url: 'https://url',\n  isJson: true,\n);\n// OR\nfinal getJsonResponse = await ArDriveHTTP().getJson('https://url');\n\n// Get bytes\nfinal bytesResponse = await ArDriveHTTP().get(\n  url: 'https://url',\n  asBytes: true,\n);\n// OR\nfinal getBytesResponse = await ArDriveHTTP().getAsBytes('https://url');\n```\n\n## Building\n\n### Typescript\n\nThis project uses NodeJS version 18 and Yarn.\nAll the typescript code used by ArDriveHTTP to run network calls in the browser lives in the `js` folder.\n\n#### Getting dependencies\n\n```sh\nyarn\n```\n\n#### Building\n\n```sh\nyarn build\n```\n\nThis command will transpile and bundle all typescript code to a minified javascript file called `ardrive-http.js` in `dist` folder.\n\n#### Watching\n\nYou can use the following command to automatically rebuild the javascript file whenever a change in the code happens:\n\n```sh\nyarn watch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardriveapp%2Fardrive_http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardriveapp%2Fardrive_http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardriveapp%2Fardrive_http/lists"}