kenspeckle docs
kenspeckle (Scots): easily recognized, familiar at sight. Svelte 5 utilities shaped the way Svelte shapes its own APIs — singletons and classes with current, attachments for element behavior, no use prefix.
See the roadmap for what’s shipped and what’s coming, and the recipes for what Svelte and the platform already cover. View transitions span two entry points, so they have a guide of their own.
Classes
- FiniteStateMachine — fully typed FSM with reactive context
- Countdown — milliseconds left until a deadline
- PersistedState — a value synced to localStorage or sessionStorage
Attachments
- scrollEdges — which scroll edges an element has reached
- viewTransitionName — name an element for the transition it takes part in
Functions
- viewTransition — a view transition around a DOM update
- enableViewTransitions — a view transition on every SvelteKit navigation
- debounce — debounce any function, with a shared promise
- throttle — throttle any function, leading and trailing