svas
Installation
SKILL.md
svas — Svelte Async Stores
Stores that fetch lazily, cache, revalidate, and persist. Every store emits one of three types:
type Maybe<T, E extends Error = Error> = null | T | E
// null → no data yet (loading / cleared / not fetched)
// T → resolved value
// E → fetch error (errors are values, never thrown)
import {
value, values, collection, // stores
ok, ensure, having, awaited, once, // guards & awaiting
combined, sync, Async, // compose & render
type Maybe
} from 'svas'