helia
    Preparing search index...

    Module helia

    Exports a createHelia function that returns an object that implements the Helia API.

    Pass it to other modules like @helia/unixfs to make files available on the distributed web.

    import { createHelia } from 'helia'
    import { unixfs } from '@helia/unixfs'
    import { CID } from 'multiformats/cid'

    const helia = await createHelia()

    const fs = unixfs(helia)
    fs.cat(CID.parse('bafyFoo'))

    Classes

    InsufficientProvidersError
    InvalidCodecError
    NoRoutersAvailableError
    UnknownCodecError
    UnknownHashAlgorithmError

    Interfaces

    AddOptions
    BlockAnnounceOptions
    BlockBroker
    BlockRetrievalOptions
    Blocks
    CodecLoader
    CreateSessionOptions
    DAGWalker
    DefaultLibp2pServices
    GCOptions
    GetOfflineOptions
    HasherLoader
    Helia
    HeliaEvents
    HeliaInit
    InputPair
    IsPinnedOptions
    Libp2pDefaultsOptions
    LsOptions
    Pair
    Pin
    Pins
    Provider
    ProviderOptions
    RmOptions
    Routing
    RoutingOptions
    SessionBlockstore

    Type Aliases

    AddPinEvents
    Await
    AwaitIterable
    DeleteBlockProgressEvents
    DeleteManyBlocksProgressEvents
    GcEvents
    GetAllBlocksProgressEvents
    GetBlockProgressEvents
    GetManyBlocksProgressEvents
    HasBlockProgressEvents
    PinType
    PutBlockProgressEvents
    PutManyBlocksProgressEvents

    Variables

    DEFAULT_SESSION_MAX_PROVIDERS
    DEFAULT_SESSION_MIN_PROVIDERS

    Functions

    createHelia
    heliaDefaults
    libp2pDefaults