Skip to content
Console
llms.txtUser help

@fkn/lib/cloud

type CloudPermissionRequest = CategoryRequest & object;

One upfront permission category ask on the cloud backend, naming the sites the grant applies to.

hosts: string[];

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

const attachFrame: AttachFrameFunction;

Attaches the render proxy to an iframe the app mounted, or opens it in a window of its own with { window }. A window opens before the first await, so call this directly in a click handler. Serves cookies: 'persistent', the default, and 'ephemeral'; 'native', the browser’s own cookies, is a TypeError before anything is attached or opened (AttachCookies).


const permissions: object;
request: (requests) => Promise<CategoryAnswer[]>;

Asks the FKN cloud consent card for upfront permissions across one or more target host groups, answering one grant per request in request order.

readonly CloudPermissionRequest[]

Promise<CategoryAnswer[]>

function available(): boolean;

boolean


function quota(): Promise<QuotaStatus>;

Promise<QuotaStatus>

Re-exports dgram


Re-exports dns


Re-exports fetch


Renames and re-exports cloud/fs


Re-exports http


Re-exports net