{"id":15152814,"url":"https://github.com/ipfs/go-ipfs-provider","last_synced_at":"2025-09-30T01:31:05.066Z","repository":{"id":40660157,"uuid":"146819259","full_name":"ipfs/go-ipfs-provider","owner":"ipfs","description":null,"archived":true,"fork":false,"pushed_at":"2023-06-14T11:15:19.000Z","size":254,"stargazers_count":17,"open_issues_count":2,"forks_count":15,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-01-19T15:45:21.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/ipfs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2018-08-30T23:59:30.000Z","updated_at":"2023-10-11T23:22:46.000Z","dependencies_parsed_at":"2024-06-18T15:22:01.741Z","dependency_job_id":"9380f988-537e-42b6-b160-d9b83287b1ae","html_url":"https://github.com/ipfs/go-ipfs-provider","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfs","download_url":"https://codeload.github.com/ipfs/go-ipfs-provider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234681038,"owners_count":18870859,"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-09-26T16:40:21.567Z","updated_at":"2025-09-30T01:31:04.732Z","avatar_url":"https://github.com/ipfs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ipfs-provider\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Coverage Status](https://codecov.io/gh/ipfs/go-ipfs-provider/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs/go-ipfs-provider)\n[![Travis CI](https://travis-ci.org/ipfs/go-ipfs-provider.svg?branch=master)](https://travis-ci.org/ipfs/go-ipfs-provider)\n\n## ❗ This repo is no longer maintained.\n👉 We highly recommend switching to the maintained version at https://github.com/ipfs/boxo/tree/main/provider.\n🏎️ Good news!  There is [tooling and documentation](https://github.com/ipfs/boxo#migrating-to-boxo) to expedite a switch in your repo. \n\n⚠️ If you continue using this repo, please note that security fixes will not be provided (unless someone steps in to maintain it).\n\n📚 Learn more, including how to take the maintainership mantle or ask questions, [here](https://github.com/ipfs/boxo/wiki/Copied-or-Migrated-Repos-FAQ).\n\n## Background\n\nThe provider system is responsible for announcing and reannouncing to the ipfs network that a node has content.\n\n## Install\n\nVia `go get`:\n\n```sh\n$ go get github.com/ipfs/go-ipfs-provider\n```\n\n\u003e Requires Go 1.12\n\n## Usage\n\nHere's how you create, start, interact with, and stop the provider system:\n\n```golang\nimport (\n\t\"context\"\n\t\"time\"\n\n\t\"github.com/ipfs/go-ipfs-provider\"\n\t\"github.com/ipfs/go-ipfs-provider/queue\"\n\t\"github.com/ipfs/go-ipfs-provider/simple\"\n)\n\nrsys := (your routing system here)\ndstore := (your datastore here)\ncid := (your cid to provide here)\n\nq := queue.NewQueue(context.Background(), \"example\", dstore)\n\nreprov := simple.NewReprovider(context.Background(), time.Hour * 12, rsys, simple.NewBlockstoreProvider(dstore))\nprov := simple.NewProvider(context.Background(), q, rsys)\nsys := provider.NewSystem(prov, reprov)\n\nsys.Run()\n\nsys.Provide(cid)\n\nsys.Close()\n```\n\n## License\n\nThis library is dual-licensed under Apache 2.0 and MIT terms.\n\nCopyright 2019. Protocol Labs, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs%2Fgo-ipfs-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfs%2Fgo-ipfs-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs%2Fgo-ipfs-provider/lists"}