OptionaldefaultMax age (Date.now() - lastFetched) for evicting entities with zero subscribers during GC.
OptionaldefaultOptionalgcInterval between GC passes when the collector is active (default 60s).
OptionalglobalAttach window focus/reconnect listeners for SWR revalidation (default: true).
OptionalmaxOptionalretryOptionalrevalidateOptionalrevalidate
Svelte app bootstrap helpers.
Call
initEntityGraph()once at the root of your Svelte app (e.g. in+layout.svelteorApp.svelte) to configure the engine and attach global focus/reconnect listeners that trigger SWR revalidation.This is a thin facade over the core engine's public API — no logic is reimplemented here.