Build event sourced svelte applications and use localstorage backed svelte stores for persistence using CloudNativeEntrepreneur/sourced. Typescript.
See CloudNativeEntrepreneur/sveltekit-eventsourced-funnel for example