{"id":17161924,"url":"https://github.com/gkbrk/rust-ipfs-api","last_synced_at":"2025-04-06T04:14:51.332Z","repository":{"id":25688288,"uuid":"106021742","full_name":"gkbrk/rust-ipfs-api","owner":"gkbrk","description":"Rust crate for interfacing with the IPFS API","archived":false,"fork":false,"pushed_at":"2022-10-01T01:00:14.000Z","size":38,"stargazers_count":122,"open_issues_count":5,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T03:08:53.981Z","etag":null,"topics":["api","client","ipfs","p2p","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/gkbrk.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":"2017-10-06T15:39:51.000Z","updated_at":"2025-01-08T07:48:28.000Z","dependencies_parsed_at":"2022-07-27T05:32:03.416Z","dependency_job_id":null,"html_url":"https://github.com/gkbrk/rust-ipfs-api","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/gkbrk%2Frust-ipfs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkbrk%2Frust-ipfs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkbrk%2Frust-ipfs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkbrk%2Frust-ipfs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gkbrk","download_url":"https://codeload.github.com/gkbrk/rust-ipfs-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430963,"owners_count":20937875,"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","client","ipfs","p2p","rust"],"created_at":"2024-10-14T22:44:12.685Z","updated_at":"2025-04-06T04:14:51.309Z","avatar_url":"https://github.com/gkbrk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust IPFS API Client\n\n[![Crates.io](https://img.shields.io/crates/v/ipfsapi.svg)](https://crates.io/crates/ipfsapi) [![Docs.rs](https://img.shields.io/badge/docs-ipfsapi-brightgreen.svg)](https://docs.rs/ipfsapi)\n\nA client library for the IPFS API.\n\nThis library allows you to use the local IPFS daemon from Rust.\n\n## Usage\n```toml\n[dependencies]\nipfsapi = \"0.4\"\n```\n\n## Examples\n\n### Reading a file from IPFS\nHere's an example that gets the contents of a file from IPFS and displays it.\n\n```rust\nlet api = IpfsApi::new(\"127.0.0.1\", 5001);\n\nlet bytes = api.cat(\"QmWATWQ7fVPP2EFGu71UkfnqhYXDYH566qy47CnJDgvs8u\").unwrap();\nlet data = String::from_utf8(bytes.collect()).unwrap();\n\nprintln!(\"{}\", data);\n```\n\nThe code gets the content of the IPFS hash and displays \"Hello World\".\n\n### Subsribing to messages on IPFS Pubsub\n\n```rust\nlet api = IpfsApi::new(\"127.0.0.1\", 5001);\n\nlet messages = api.pubsub_subscribe(\"chat\").unwrap();\n\nfor message in messages {\n    println!(\"{:?}\", message);\n}\n```\n\n## Implemented Functionality\n\n* Getting file contents from IPFS (cat)\n* Pubsub\n* IPNS publish and resolve\n* Object/Hash stats (size, etc.)\n* Version information of the daemon\n* Pinning and unpinning files\n* Shut down IPFS daemon\n* Get and put blocks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkbrk%2Frust-ipfs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgkbrk%2Frust-ipfs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkbrk%2Frust-ipfs-api/lists"}