{"id":19294559,"url":"https://github.com/web3-storage/minibus-client","last_synced_at":"2026-05-12T23:31:50.366Z","repository":{"id":43941737,"uuid":"511515335","full_name":"web3-storage/minibus-client","owner":"web3-storage","description":"Minibus API client and CLI tool.","archived":false,"fork":false,"pushed_at":"2022-07-12T13:00:55.000Z","size":300,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-25T09:38:33.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web3-storage.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-07T12:17:26.000Z","updated_at":"2022-07-07T12:22:12.000Z","dependencies_parsed_at":"2022-09-09T18:45:26.516Z","dependency_job_id":null,"html_url":"https://github.com/web3-storage/minibus-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/web3-storage/minibus-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fminibus-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fminibus-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fminibus-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fminibus-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3-storage","download_url":"https://codeload.github.com/web3-storage/minibus-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fminibus-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: 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":[],"created_at":"2024-11-09T22:38:43.144Z","updated_at":"2026-05-12T23:31:50.349Z","avatar_url":"https://github.com/web3-storage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minibus client\n\n[![Build](https://github.com/web3-storage/minibus-client/actions/workflows/build.yml/badge.svg)](https://github.com/alanshaw/miniswap/actions/workflows/build.yml)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nMinibus API client and CLI tool.\n\n## Install\n\n```\nnpm install @web3-storage/minibus\n```\n\n## Usage\n\n```js\nimport { Minibus } from '@web3-storage/minibus'\nimport { fromString } from 'uint8arrays'\nimport { sha256 } from 'multiformats/hashes/sha2'\nimport { CID } from 'multiformats/cid'\nimport * as raw from 'multiformats/codecs/raw'\nimport fetch from '@web-std/fetch'\n\nconst minibus = new Minibus({\n  endpoint: `https://minibus.web3.storage`,\n  headers: { Authorization: `Basic ${token}` },\n  fetch\n})\n\nconst data = fromString(`TEST DATA ${Date.now()}`)\nconst hash = await sha256.digest(data)\nconst cid = CID.create(1, raw.code, hash)\n\nawait minibus.put(cid, data)\n\nconst dataOrUndefined = await minibus.get(cid)\nif (!dataOrUndefined) throw new Error('not found')\n```\n\n### CLI\n\nInstall the module globally to use as a CLI tool:\n\n```\nnpm install -g @web3-storage/minibus\n```\n\n```console\n$ minibus --help\n\n  Usage\n    $ minibus \u003ccommand\u003e [options]\n\n  Available Commands\n    token      Save an API token to use for all requests.\n    put-car    Upload blocks from a CAR file to Minibus.\n    get        Fetch a block from Minibus\n\n  For more info, run any command with the `--help` flag\n    $ minibus token --help\n    $ minibus put-car --help\n\n  Options\n    -v, --version    Displays current version\n    -h, --help       Displays this message\n\n  Examples\n    $ minibus get bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy\n    $ minibus put-car path/to/file.car\n```\n\n## Contributing\n\nFeel free to join in. All welcome. [Open an issue](https://github.com/web3-storage/minibus-client/issues)!\n\n## License\n\nDual-licensed under [MIT + Apache 2.0](https://github.com/web3-storage/minibus-client/blob/main/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3-storage%2Fminibus-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3-storage%2Fminibus-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3-storage%2Fminibus-client/lists"}