A set of libraries for building IPFS applications and implementations in GO.
Boxo is a component library for building IPFS applications and implementations in Go.
Some scenarios in which you may find Boxo helpful:
Boxo powers Kubo, which is the most popular IPFS implementation, so its code has been battle-tested on the IPFS network for years, and is well-understood by the community.
TL;DR The goal of this repo is to help people build things. Previously users struggled to find existing useful code or to figure out how to use what they did find. We observed many running Kubo and using its HTTP RPC API. This repo aims to do better. We're taking the libraries that many were already effectively relying on in production and making them more easily discoverable and usable.
The maintainers primarily aim to help people trying to build with IPFS in Go that were previously either giving up or relying on the Kubo HTTP RPC API. Some of these people will end up being better served by IPFS tooling in other languages (e.g., Javascript, Rust, Java, Python), but for those who are either looking to write in Go or to leverage the set of IPFS tooling we already have in Go we’d like to make their lives easier.
We’d also like to make life easier on ourselves as the maintainers by reducing the maintenance burden that comes from being the owners on many repos and then use that time to contribute more to the community in the form of easier to use libraries, better implementations, improved protocols, new protocols, etc.
Boxo is not exhaustive nor comprehensive--there are plenty of useful IPFS protocols, specs, libraries, etc. that are not in Boxo. The goal of Boxo is to provide cohesive and well-maintained components for common IPFS use cases.
More details can also be found in the Rationale FAQ.
Boxo includes high-quality components useful for interacting with IPFS protocols, public and private IPFS networks, and content-addressed data, such as:
Boxo aims to provide a cohesive interface into these components. Note that not all of the underlying components necessarily reside in this repository.
No. This repo houses some IPFS functionality written in Go that has been useful in practice, and is maintained by a group that has long term commitments to the IPFS project
No. Not everything related to IPFS is intended to be in Boxo. View it as a starter toolbox (potentially among multiple). If you’d like to build an IPFS implementation with Go, here are some tools you might want that are maintained by a group that has long term commitments to the IPFS project. There are certainly repos that others maintain that aren't included here (e.g., ipfs/go-car) which are still useful to IPFS implementations. It's expected and fine for new IPFS functionality to be developed that won't be part of Boxo.
See examples.
If you are migrating to Boxo, see Migrating to Boxo.
Many Go modules under github.com/ipfs have moved here. Boxo provides a tool to ease this migration, which does most of the work for you:
cd
into the root directory of your module (where the go.mod
file is)go run github.com/ipfs/boxo/cmd/boxo-migrate@latest update-imports
go run github.com/ipfs/boxo/cmd/boxo-migrate@latest check-dependencies
This tool only upgrades your module to Boxo v0.8.0, to minimize backwards-incompatible changes. Depending on the versions of IPFS modules before the upgrade, your code may require additional changes to build.
We recommend upgrading to v0.8.0 first, and then upgrading to the latest Boxo release.
If you encounter any challenges, please open an issue and Boxo maintainers will help you.
See RELEASE.md.
We happily accept external contributions! However, Boxo maintains a high quality bar, so code accepted into Boxo must meet some minimum maintenance criteria:
If you have some experimental component that you think would benefit the IPFS community, we suggest you build the component in your own repository until it's clear that there's community demand for it, and then open an issue/PR in this repository to discuss including it in Boxo.
See RELEASE.md.
The code coverage of this repo is not currently representative of the actual test coverage of this code. Much of the code in this repo is currently covered by integration tests in Kubo. We are in the process of moving those tests here, and as that continues the code coverage will significantly increase.
If you suspect a bug or have technical questions, feel free to open an issue.
For regular support, try Community chat's #ipfs-implementers
room or help/boxo at IPFS discussion forums.
New issues and PRs to this repo are usually looked at on a weekly basis as part of Shipyard's GO Triage triage. However, the response time may vary.
The exhaustive list is https://github.com/ipfs/boxo/network/dependents. Some notable projects include:
See CODEOWNERS for the current maintainers list. Governance for graduating additional maintainers hasn't been established. Repo permissions are all managed through ipfs/github-mgmt.
See https://github.com/ipfs/boxo/issues/215.
See the wiki.