{"id":13495978,"url":"https://github.com/jbenet/ipfs-paste","last_synced_at":"2025-04-28T10:40:58.891Z","repository":{"id":34582426,"uuid":"38529233","full_name":"jbenet/ipfs-paste","owner":"jbenet","description":"paste stdin and clipboard to ipfs","archived":false,"fork":false,"pushed_at":"2015-11-18T15:46:46.000Z","size":10,"stargazers_count":32,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-09T15:49:47.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ipfs.io","language":"Shell","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/jbenet.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":"2015-07-04T09:40:32.000Z","updated_at":"2023-09-08T16:59:18.000Z","dependencies_parsed_at":"2022-09-14T16:50:47.083Z","dependency_job_id":null,"html_url":"https://github.com/jbenet/ipfs-paste","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/jbenet%2Fipfs-paste","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbenet%2Fipfs-paste/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbenet%2Fipfs-paste/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbenet%2Fipfs-paste/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbenet","download_url":"https://codeload.github.com/jbenet/ipfs-paste/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235186500,"owners_count":18949432,"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":[],"created_at":"2024-07-31T19:01:40.356Z","updated_at":"2025-01-25T16:06:21.509Z","avatar_url":"https://github.com/jbenet.png","language":"Shell","funding_links":[],"categories":["Shell","Tools","工具"],"sub_categories":[],"readme":"# ipfs-paste - paste to ipfs\n\nPaste stuff to [IPFS](http://ipfs.io).\n\n1. `ipfs add` stdin (or clipboard with `--paste`)\n2. print + copy url to the HTTP gateway\n3. prefetch on the gateway\n\n(note: Today, clipboard only on {OSX, Linux}. Tomorrow, cross platform).\n\n## Install\n\n```sh\n# install from ipfs\nipfs cat QmSKVENxxkS3QGkFJDofWgcPySdCHZ3sbrU5onXAzhWZdz \u003e/usr/local/bin/ipfs-paste\nchmod +x /usr/local/bin/ipfs-paste\n\n# install from http\ncurl -s https://github.com/jbenet/ipfs-paste/blob/master/ipfs-paste \u003e/usr/local/bin/ipfs-paste\nchmod +x /usr/local/bin/ipfs-paste\n```\n\nNote: requires running IPFS daemon.\n\n## Usage\n\n```sh\n\u003e ipfs-paste -h\nipfs-paste [-v] [--paste] [\u003cname\u003e]\npublish stdin (or pasteboard) to ipfs\n```\n\n## Examples\n\n```sh\n# stdin to ipfs\n\u003e echo hello mars | ipfs-paste\nhttp://gateway.ipfs.io/ipfs/QmZd56pN6zKvFrqp3ojRHHJQ2x2NWKTLmsEQbni37cDgvx/paste\n\n# clipboard to ipfs\n\u003e echo hello mars | pbcopy\n\u003e pbpaste\nhello mars\n\u003e ipfs-paste --paste\nhttp://gateway.ipfs.io/ipfs/QmV3pQbmx9ziGt4r7i6wyJuSg7hovT6Znxo9PAEoo6M8qB/paste\n\n# set a name to file\n\u003e head -c 1024 /dev/random | ipfs-paste rand-kb\nhttp://gateway.ipfs.io/ipfs/QmctPRXHkmoQfZSKExNvcpPS7g1BQciarzWVM7QYdzS6eJ/rand-kb\n\n# verbose\n\u003e cat ipfs-paste | ipfs-paste -v\nstdin to ipfs... QmbSV3f1T5qbdfxfhSgrudRSv3YiJBxKFGthPAEDZVEhpj\nconstructing dir... QmYXNKmW7vyvpcTEtAUXGjJ8X9wmh1BgqmZLutFQYLhUev\ncopying url to clipboard... copied\nhttp://gateway.ipfs.io/ipfs/QmYXNKmW7vyvpcTEtAUXGjJ8X9wmh1BgqmZLutFQYLhUev/paste\npreloading on the gateways... ok\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbenet%2Fipfs-paste","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbenet%2Fipfs-paste","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbenet%2Fipfs-paste/lists"}