Categorygithub.com/hsanjuan/ipfs-lite
modulepackage
1.8.2
Repository: https://github.com/hsanjuan/ipfs-lite.git
Documentation: pkg.go.dev

# README

IPFS-Lite

ipfs-lite

Build Status Go Reference

IPFS-Lite is an embeddable, lightweight IPFS peer which runs the minimal setup to provide an ipld.DAGService and UnixFS-files addition and retrieval.

It can:

  • Add, Get, Remove IPLD Nodes to/from the IPFS Network (remove is a local blockstore operation).
  • Add single files (chunk, build the DAG and Add) from a io.Reader.
  • Get single files given a their CID.

It needs:

Some helper functions are provided to initialize these quickly.

It provides:

The goal of IPFS-Lite is to run the bare minimal functionality for any IPLD-based application to interact with the IPFS Network by getting and putting blocks to it, rather than having to deal with the complexities of using a full IPFS daemon, and with the liberty of sharing the needed libp2p Host and DHT for other things.

License

Apache 2.0

# Packages

No description provided by the author

# Functions

DefaultBootstrapPeers returns the default bootstrap peers (for use with NewLibp2pHost.
New creates an IPFS-Lite Peer.
NewInMemoryDatastore provides a sync datastore that lives in-memory only and is not persisted.
SetupLibp2p returns a routed host and DHT instances that can be used to easily create a ipfslite Peer.

# Variables

Libp2pOptionsExtra provides some useful libp2p options to create a fully featured libp2p host.

# Structs

AddParams contains all of the configurable parameters needed to specify the importing process of a file.
Config wraps configuration options for the Peer.
Peer is an IPFS-Lite peer.