@drupflare/spool - v0.1.0
    Preparing search index...

    Type Alias SwConfig

    what the server compiles into the worker script: routes, templates and the tag to inject

    type SwConfig = {
        assets?: AssetMode;
        beacons: string[];
        clientTag: string;
        collectors?: CollectorConfig[];
        logout?: string[];
        manifest?: string;
        mode?: Mode;
        protocol: typeof PROTOCOL_VERSION;
        provision?: ProvisionConfig;
        routes: SerializedRoute[];
        shadowSample?: number;
        templates: Record<string, CompiledTemplate>;
        thirdParty?: ThirdPartyConfig;
        version: string;
        views?: boolean;
    }
    Index
    assets?: AssetMode

    how same-origin subresources are handled; cache when absent

    beacons: string[]

    same-origin POST paths the worker queues and flushes in one request

    clientTag: string

    the exact script tag the server injects, so a local render matches a network one

    collectors?: CollectorConfig[]

    cross-origin analytics collectors the worker holds and delivers later

    logout?: string[]

    same-origin paths whose request ends the session: the worker wipes the principal store first

    manifest?: string

    The URL of a spool.json. Present, the worker has no spool server: it takes its routes from that file, checks it for changes in place of /.spool/sync, and sends no request to /.spool/*.

    mode?: Mode

    the mode for routes that do not name one; serve when absent

    protocol: typeof PROTOCOL_VERSION
    provision?: ProvisionConfig

    what the worker assumes before telemetry says otherwise, and which pages to warm

    routes: SerializedRoute[]
    shadowSample?: number

    the share of views, 0 to 1, that run in shadow while the mode is serve; 0 when absent

    templates: Record<string, CompiledTemplate>

    compiled templates keyed by route pattern

    thirdParty?: ThirdPartyConfig

    the opt-in cache for versioned cross-origin files

    version: string
    views?: boolean

    whether the worker queues a spool.view per page view; true when absent