Skip to content

@fkn/lib/cloud

type QuotaStatus = object;
bitsPerSecond: number;

current effective egress rate cap, bits per second (for display)

bytesPerSecond: number;

current effective egress rate cap, bytes per second

limitBytes: number;

free-tier daily volume before throttling kicks in

overQuota: boolean;

today’s free-tier volume is spent (true even for premium, see throttled)

premium: boolean;

the user has a paid subscription, throttle never applies

remainingBytes: number;

bytes of free-tier volume left today

throttled: boolean;

transfers are actually being rate-limited right now (overQuota and not premium)

usedBytes: number;

bytes egressed through FKN relays today (per connected account or anonymized IP), saturates at limitBytes: consumption past the free-tier volume is private and never reported

function attachFrame(__namedParameters): Promise<Frame>;

AttachFrameOptions

Promise<Frame>


function available(): boolean;

boolean


function fetch(input, init?): Promise<Response>;

string | URL | Request

RequestInit & object

Promise<Response>


function quota(): Promise<QuotaStatus>;

Promise<QuotaStatus>

Re-exports dgram


Re-exports dns


Renames and re-exports cloud/fs


Re-exports http


Re-exports net